input
stringlengths
10
828
output
stringlengths
5
107
public boolean remove binding binding binding return bindings remove binding remove validation status provider binding
removes the given binding
public update list strategy set converter iconverter converter this converter converter return this
sets the converter to be invoked when converting added elements from the
public boolean equals object obj if this obj return true if obj null return false if get class obj get class return false final validation status other validation status obj if get severity other get severity return false if get message null if other get message null return false else if get message equals other get message return false if get exception null if other get exception null return false else if get exception equals other get exception return false return true
equality is based upon instance equality rather than identity
protected istatus do remove iobservable list observable list int index try observable list remove index catch exception ex return validation status error binding messages get string binding messages valuebinding error while setting value ex return status ok status
removes the element at the given index from the given observable list
protected boolean use move and replace return get class update list strategy class
returns whether list binding should call
public object convert object value return converter null value converter convert value
converts the value from the source type to the destination type
public void add observable iobservable observable managed observables add observable
adds the given observable to this manager
public void exclude observable iobservable observable excluded observables add observable
adds the given observable to this managers exclusion list
public void run and collect runnable runnable iobservable collected observable tracker run and collect runnable for int i 0 i collected length i add observable collected i
executes the specified runnable and adds to this manager all observables
public void enqueue object o entry old last last last new entry o if old last null old last next last else first last
adds the given object to the end of the queue
protected ivalidator create validator object from type object to type if from type null to type null return new ivalidator public istatus validate object value return status ok status return find validator from type to type
tries to create a validator that can validate values of type from type
public object dequeue entry old first first if old first null throw new illegal state exception first old first next if first null last null old first next null return old first object
returns the first object in the queue
public void add istatus status if status get severity get severity set message status get message null status get message non nls 1 set exception status get exception set plugin status get plugin set code status get code super add status
adds the status to the multi status
public update value strategy set after convert validator ivalidator validator this after convert validator validator return this
sets the validator to be invoked after the source value is converted to
public update value strategy set after get validator ivalidator validator this after get validator validator return this
sets the validator to be invoked after the source value is retrieved at
public update value strategy set converter iconverter converter this converter converter return this
sets the converter to be invoked when converting from the source type to
public iobservable value observe validated value iobservable value target check observable target return new validated observable value target get validation status
returns a wrapper
public iobservable list observe validated list iobservable list target check observable target return new validated observable list target get validation status
returns a wrapper
public istatus validate after convert object value return after convert validator null status ok status after convert validator validate value
validates the value after it is converted
protected date format get date format int index if index 0 index formatters length throw new illegal argument exception index index is out of bounds non nls 1 non nls 2 return formatters index
returns the date format for the provided code index code
public iobservable set observe validated set iobservable set target check observable target return new validated observable set target get validation status
returns a wrapper
public parse position get position return position
parse position if an error occurred while parsing
public istatus validate after get object value return after get validator null status ok status after get validator validate value
validates the value after it is retrieved from the source
public iobservable map observe validated map iobservable map target check observable target return new validated observable map target get validation status
returns a wrapper
public istatus validate before set object value return before set validator null status ok status before set validator validate value
validates the value before it is set on the destination
protected string stem string term use lowercase for medium stemming term term to lower case if is stemmable term return term reset the string buffer sb delete 0 sb length sb insert 0 term stemming starts here substitute sb strip sb optimize sb resubstitute sb remove particle denotion sb return sb to string
stemms the given term to an unique tt discriminator tt
protected istatus do set iobservable value observable value object value try observable value set value value catch exception ex return validation status error binding messages get string binding messages valuebinding error while setting value ex return status ok status
sets the current value of the given observable to the given value
private void optimize string buffer buffer additional step for female plurals of professions and inhabitants if buffer length 5 buffer substring buffer length 5 buffer length equals erin buffer delete char at buffer length 1 strip buffer additional step for irregular plural nouns like matrizen matrix if buffer char at buffer length 1 z buffer set char at buffer length 1 x
does some optimizations on the term
private void remove particle denotion string buffer buffer if buffer length 4 for int c 0 c buffer length 3 c if buffer substring c c 4 equals gege buffer delete c c 2 return
removes a particle denotion ge from a term
private ivalidator get object from class object to class ivalidator result ivalidator validators get new pair from class to class if result null return result if from class null to class null from class to class return new ivalidator public istatus validate object value return status ok status return new ivalidator public istatus validate object value return status ok status
return an ivalidator for a specific from class and to class
public value list get value list string name value list id id map get name if id null dont know the id cant use cache id value list dao get value list name if id null id map put name id return id
no rights check on this for performance
public boolean has parent category gadget if parent null return false return parent equals gadget parent has parent gadget
to check if drop is allowed
public mailing list script page form editor editor super editor mailing list script page messages get string mailing list script page script non nls 1 non nls 2 set properties editor
create the form page
public mailing list preview page form editor editor super editor mailing list preview page messages get string mailing list preview page preview non nls 1 non nls 2
create the form page
public void create initial layout ipage layout layout string editor area layout get editor area add fast views layout add view shortcuts layout add perspective shortcuts layout layout add view accounts view id ipage layout left 0 25f editor area
creates the initial layout for a page
public boolean is empty return adjacency map is empty
determines if this graph contains no vertices
public int size return adjacency map size
determines the number of vertices in this graph
public int get edge count int count 0 iterate over the hashmap s keys counting edges iterator object it adjacency map key set iterator while it has next list object edges array list object adjacency map get it next count edges size return count 2
returns the number of edges in this graph object
public boolean add vertex object vertex if adjacency map contains key vertex return false adjacency map put vertex new array list object return true
adds a specified object as a vertex
public boolean remove vertex object vertex if adjacency map contains key vertex return false for object node get nodes list object neighbors adjacency map get node if neighbors contains vertex remove edge node vertex adjacency map remove vertex return true
removes a node from the graph and all cooresponding edges
public boolean add edge object v1 object v2 if is edge v1 v2 add vertex v1 add vertex v2 adjacency map get v1 add v2 adjacency map get v2 add v1 return true return false
adds an edge and vertices if not already present
public boolean remove edge object v1 object v2 if this is edge v1 v2 remove edge from v1 adjacency map get v1 remove v2 remove edge from v2 adjacency map get v2 remove v1 return true return false
removes an edge from the graph undirected
public boolean is edge object v1 object v2 if get nodes contains v1 get nodes contains v2 return get neighbors v1 contains v2 return false
tests to see if 2 vertices are connected by exacted one edge
public boolean is path for object node get nodes if this get neighbors node size 2 return false return true
tests to see if the given graph is a path
public work flow get work flow throws dbexception return work flow get work flow get field int fld workflow
get this activities workflow
public boolean is project enabled throws dbexception return get field boolean fld enabled
is project enabled
public boolean is project type public throws dbexception return get field fld type equals pub
is project public
public boolean is project type registered throws dbexception return get field fld type equals reg
is project public for registered only
public boolean is project type private throws dbexception return get field fld type equals pri
is project environment private
public vector get all valid value activities throws dbexception vector ret new vector activity temp get all activities for int i 0 i temp length i valid value vv new valid value temp i get field int activity fld id temp i get field activity fld name ret add vv return ret
get this wf activities for drop downs
public boolean is leader int uid throws dbexception allowed user au new allowed user au set field allowed user fld pid get field int fld pid au set field allowed user fld uid uid if au find return au get field allowed user fld group equals pvn leader return false
is given user leader in this project
public boolean is member int uid throws dbexception allowed user au new allowed user au set field allowed user fld pid get field int fld pid au set field allowed user fld uid uid if au find return au get field allowed user fld group equals pvn member return false
is given user member in this project
public array list get all possible commands int uid throws dbexception array list ret new array list if uid get field int fld owner return ret ok give me all possible commands command c new command array list all recs c search and retrieve list iterator all recs iterator all recs iterator while all recs iterator has next c command all recs iterator next if c get field command fld pre state equals get field fld state ret add new valid value c get field command fld code c get field command fld name return ret
get all possible commands for this workflow
public boolean is observer int uid throws dbexception allowed user au new allowed user au set field allowed user fld pid get field int fld pid au set field allowed user fld uid uid if au find return au get field allowed user fld group equals pvn obsrvr return false
is given user observer in this project
public void add int uid throws dbexception set field fld createdby uid add
add setting uid
public void update int uid throws dbexception set field fld updatedby uid update
update setting uid
public metodology work flow get work flow throws dbexception return metodology work flow get work flow get field int fld workflow
get this activities workflow
public string get version return 0 9
developing version of application
public void add mapping int cat string cmpnnt int foreign cat throws dbexception category mapper cmp new category mapper cmp set field fld component cmpnnt cmp set field fld category id cat cmp set field fld components category id foreign cat cmp add
add category mapping
public array list get project users string role throws dbexception member m new member m set field member fld group role m set field member fld pid get field int fld pid array list all m search and retrieve list count valid ones array list valid new array list for int i 0 i all size i member cur member all get i int uid cur get field int member fld uid natural subject ns natural subject get subject by uid uid if ns null valid add ns return valid
get project users by role
public array list get project users throws dbexception member m new member m set field member fld pid get field int fld pid array list all m search and retrieve list count valid ones array list valid new array list for int i 0 i all size i member cur member all get i int uid cur get field int member fld uid natural subject ns natural subject get subject by uid uid if ns null valid add ns return valid
get all project users
public boolean is leader int uid throws dbexception member au new member au set field member fld pid get field int fld pid au set field member fld uid uid if au find return au get field member fld group equals pvn leader return false
is given user leader in this project
public boolean is in project team int uid throws dbexception if get field fld type equals pub return true if get field fld type equals reg uid 3 return true member au new member au set field member fld pid get field int fld pid au set field member fld uid uid return au find
true if user is in project team
public ipvnfacade get facade by key name string key name ipvnfacade all get all facades for int i 0 i all length i if all i get component key name equals key name return all i return null
get facade by key name
public void init filter config filter config throws servlet exception this filter config filter config this encoding filter config get init parameter encoding
place this filter into service
public void set navigation forward and back string forward string back this forward forward this back back
set up default navigation forward and back buttons
public void stop ticking stop ticking true
method for stopping ticker job
public term quick holder get from term throws dbexception array list ret new array list term c new term array list all recs c search and retrieve list iterator i all recs iterator while i has next c term i next term quick holder tqh new term quick holder c if tqh id get field int from id return tqh if vocabulary schema observer log is info enabled vocabulary schema observer log info location term null term returned in link from get field int from id return null
get term on from side of the link
public term quick holder get to term throws dbexception array list ret new array list term c new term array list all recs c search and retrieve list iterator i all recs iterator while i has next c term i next term quick holder tqh new term quick holder c if tqh id get field int to id return tqh if vocabulary schema observer log is info enabled vocabulary schema observer log info location term null term returned in link to get field int to id return null
get term on to side of the link
public void add int uid throws dbexception set field created uid uid add
add setting uid
public void update int uid throws dbexception set field updated uid uid update
update setting uid
public string get user name throws dbexception try return natural subject get subject by uid uid to string catch exception exc return uid
get username with specified uid
public int get terms count throws dbexception int ret 0 term c new term array list all recs c search and retrieve list iterator i all recs iterator while i has next c term i next term quick holder cqh new term quick holder c if get field int id cqh category ret return ret
how many terms are in this category
public array list get all terms throws dbexception array list ret new array list term c new term array list all recs c search and retrieve list iterator i all recs iterator while i has next c term i next term quick holder cqh new term quick holder c if get field int id cqh category ret add cqh return ret
get all terms in this category
public boolean is visible throws dbexception category quick holder current new category quick holder this if current visible return false category quick holder all s this get super categories for int i 0 i all s length i if all s i visible return false return true
is category visible and all supercategories are visible
public string get version return get string edocs version
developing version of application
public void add throws dbexception string my name new string this class add set field created date time get date time for db super add
override the method add and add the record
public dbobject get this dbobj throws dbexception return new activity
return this dbobject
public dbobject get this dbobj throws dbexception return new document vote coment
return this dbobject
public void update throws dbexception string my name new string this class update super update
override the method update and update the record
public dbobject get this dbobj throws dbexception return new document history
return this dbobject
public dbobject get this dbobj throws dbexception return new author
return this dbobject
public void add throws dbexception string my name new string this class add set string filter file title raw filter set string filter file desc raw filter set field created date time get date time for db set field updated date time get date time for db super add
override the method add and add the record
public void delete throws dbexception string my name new string this class delete super delete
override the method delete and delete the record
public void update throws dbexception string my name new string this class update set field updated date time get date time for db super update
override the method update and update the record
public void add throws dbexception string my name new string this class add set field created date time get date time for db set field updated date time get date time for db super add
override the method add and add the record
public dbobject get this dbobj throws dbexception return new toc
return this dbobject
public dbobject get this dbobj throws dbexception return new document file
return this dbobject
public dbobject get this dbobj throws dbexception return new document file history
return this dbobject
public dbobject get this dbobj throws dbexception return new document vote option
return this dbobject
public void update aproved throws dbexception activity type true update
method is for external controller states for update for approver
public void update check out throws dbexception activity type true update
method is for external controller states for update for check out
public void delete throws dbexception string my name new string this class delete string id get field vote id super delete document vote coment coments new document vote coment coments set field vote id id array list files array coments search and retrieve list iterator iterator j files array iterator while iterator j has next coments document vote coment iterator j next coments delete
override the method delete and delete the record
public dbobject get this dbobj throws dbexception return new document vote
return this dbobject
public void update throws dbexception string my name new string this class update set field updated date time get date time for db super update if activity type check out activity activity new activity activity set field document id get field document id activity set field created uid 3 activity set field activity type 2 activity add
override the method update and update the record
public dbobject get this dbobj throws dbexception return new category
return this dbobject
public boolean allowed for user int user id int category id string method throws dbexception group members gm new group members gm set field exp uid user id array list all records gm search and retrieve list iterator i all records iterator while i has next gm group members i next string group member gm get field group name category security sec new category security sec set field category id category id sec set field group name group member sec set field method code method if sec count 0 return false else return true return false
override the method get values to provide specific values for our
public dbobject get this dbobj throws dbexception return new document
return this dbobject
public int get category project throws dbexception if is field null project id return 1 return get field int project id
get project id for this category
public void set locale locale locale this my locale locale
set up locale for meesagess