input
stringlengths
10
828
output
stringlengths
5
107
public void set folder block string value folder block value
set the folder block property
public string get folder block return folder block
get the folder block property
public void set uid string value uid value
set the uid property
public void set change date long value change date value
set the change date property
public long get change date return change date
get the change date property
public void set parent entry entry value parent entry value if parent entry null parent entry id parent entry get id else parent entry id null
set the group property
public void set parent group id string value set parent entry id value
set the parent id property
public string xxxget parent group id return get parent entry id
get the parent id property
public void set metadata list metadata value metadata value
set the metadata property
public void set associations list association value associations value
set the associations property
public void set comments list comment value comments value
set the comments property
public void set permissions list permission value permissions value permission map new hashtable if permissions null for permission permission permissions permission map put permission get action permission get roles
set the permissions property
public void set data type string value data type value
set the type property
public void set rows int value rows value
set the rows property
public void set columns int value columns value
set the columns property
public void set values list value values value
set the values property
public void set display category string value this display category value
set the display category property
public string get display category return this display category
get the display category property
public void set default string value dflt value
set the dflt property
public void set admin only boolean value this admin only value
set the admin only property
public boolean get admin only return this admin only
get the admin only property
public void set thumbnail boolean value this thumbnail value
set the thumbnail property
public boolean get thumbnail return this thumbnail
get the thumbnail property
public void set browsable boolean value this browsable value
set the browsable property
public boolean get browsable return this browsable
get the browsable property
public void set for user boolean value this for user value
set the for user property
public boolean get searchable return this searchable
get the searchable property
public boolean get for user return this for user
get the for user property
public void set entry id string value entry id value
set the entry id property
public string get entry id return entry id
get the entry id property
public void set handler metadata handler value this handler value
set the handler property
public metadata handler get handler return this handler
get the handler property
public void set attr1 string value check length value attr1 value
set the attr1 property
public string get attr1 return get value 1 attr1
get the attr1 property
public void set attr2 string value check length value attr2 value
set the attr2 property
public string get attr2 return get value 2 attr2
get the attr2 property
public void set attr3 string value check length value attr3 value
set the attr3 property
public string get attr3 return get value 3 attr3
get the attr3 property
public void set attr4 string value check length value attr4 value
set the attr4 property
public string get attr4 return get value 4 attr4
get the attr4 property
public void set inherited boolean value inherited value
set the inherited property
public boolean get inherited return inherited
get the inherited property
private double get value directory dir int tag throws exception try rational comps dir get rational array tag if comps length 3 int deg comps 0 int value float min comps 1 float value float sec comps 2 float value sec min 1 60 return deg min 60 sec 60 60 catch exception exc ignore this return dir get double tag
get the value of a tag as a double
public void set subject string value subject value
set the subject property
public void set show in html boolean value this show in html value
set the show in html property
public boolean get show in html return this show in html
get the show in html property
public string get template string type return templates get type
get the template property
public void set is index boolean value is index value
set the is index property
public boolean get is index return is index
get the is index property
public void set can show boolean value can show value
set the can show property
public void set is enumerated boolean value is enumerated value
set the is enumerated property
public boolean get is enumerated return is enumerated
get the is enumerated property
public boolean get can show if is type datatype password return false return can show
get the can show property
public void set can search boolean value can search value
set the is searchable property
public void set entry entry value entry value if value null entry id value get id
set the entry property
public boolean get can search return can search
get the is searchable property
public void set extra string value this extra value
set the extra property
public string get extra string tmp this extra if tmp null if extra map null return null tmp map to extra extra map this extra tmp return tmp
get the extra property
public void set can list boolean value can list value
set the is listable property
public boolean get can list return can list
get the is listable property
public temp dir make temp dir string dir boolean should scour temp dir tmp dir new temp dir ioutil join dir get tmp dir dir ioutil make dir recursive tmp dir get dir if should scour add temp dir tmp dir return tmp dir
make a temporary directory
public void set values list value enum values value
set the values property
public list get values return enum values
get the values property
public void set dflt string value dflt value
set the dflt property
public void add user authenticator user authenticator user authenticator user authenticators add user authenticator if user authenticator instanceof user authenticator impl user authenticator impl user authenticator set repository get repository
add the user authenticator
public void set name string value name value if name null name
set the name property
public void set admin boolean value admin value
set the admin property
public void set output stream output stream value output stream value
set the output stream property
public boolean get admin return admin
get the admin property
public void set anonymous boolean value anonymous value
set the anonymous property
public void set action string value action value
set the action property
public void set roles list string value roles value
set the roles property
public boolean get anonymous if misc equals user manager user anonymous id return true return anonymous
get the anonymous property
public boolean can harvest file file f if harvest pattern null if the pattern has file delimiters then use the whole path if harvest pattern index of 0 if f to string matches harvest pattern return true else else just use the name if f get name matches harvest pattern return true return false
does this type match the file being harvester
public void set email string value email value if email null email
set the email property
public void set question string value question value if question null question
set the question property
public string hash password string password if get property prop password oldmd5 false return repository util hash password for old md5 password else return repository util hash password password
hash the given raw text password for storage into the database
public void set answer string value answer value if answer null answer
set the answer property
public void set password string value set hashed password value
set the password property
public string get password return get hashed password
get the password property
public void set hashed password string value hashed password value if hashed password null hashed password
set the hashed password property
public void set raw password string value raw password value
set the raw password property
public string get raw password return raw password
get the raw password property
private void check entry file time entry entry throws exception if true return don t do this because many harvested files get a date range set for them if entry null entry is file return if entry get resource is stored file return file f entry get resource get the file if f null f exists return if entry get start date entry get end date return long file time f last modified if file time entry get start date return entry set start date file time entry set end date file time store entry entry update entry entry
if this entry is a harvested or local file i
public void set template string value template value
set the template property
public string get template if template null return return template
get the template property
public void set favorites list favorite entry value favorites value
set the favorites property
public void set is local boolean value this is local value
set the is local property
public boolean get is local return this is local
get the is local property
public void set is guest boolean value is guest value
set the is gues property
public boolean get is guest return is guest
get the is gues property
public void set can change password boolean value put property prop can change password value
set the can change password property
public boolean get can change password string v string get property prop can change password if v null misc equals v true return true return false
get the can change password property
public void set entry entry value entry value
set the entry property
public void set need to write boolean value need to write value
set the need to write property
public boolean get need to write return need to write
get the need to write property
public void set content byte value content value
set the content property
public void set create date date value create date value
set the create date property
public void set should decorate boolean value should decorate value
set the should decorate property
public boolean get should decorate if should decorate mime type null mime type length 0 mime type index of html 0 return false return should decorate
get the should decorate property