input
stringlengths
10
828
output
stringlengths
5
107
public void set error com google enterprise connector sharepoint generated alerts error type error this error error
sets the error value for this delete failure
public void set alert server type java lang string alert server type this alert server type alert server type
sets the alert server type value for this alert info
public void set alert for title java lang string alert for title this alert for title alert for title
sets the alert for title value for this alert
public void set alerts management url java lang string alerts management url this alerts management url alerts management url
sets the alerts management url value for this alert info
public void set alert for url java lang string alert for url this alert for url alert for url
sets the alert for url value for this alert
public void set alert web title java lang string alert web title this alert web title alert web title
sets the alert web title value for this alert info
public void set edit alert url java lang string edit alert url this edit alert url edit alert url
sets the edit alert url value for this alert
public void set new alert url java lang string new alert url this new alert url new alert url
sets the new alert url value for this alert info
public void set delivery channels com google enterprise connector sharepoint generated alerts delivery channel delivery channels this delivery channels delivery channels
sets the delivery channels value for this alert
public void set alert web id java lang string alert web id this alert web id alert web id
sets the alert web id value for this alert info
public void set container com google enterprise connector sharepoint generated gsbulkauthorization container container this container container
sets the container value for this auth data
public void set alerts com google enterprise connector sharepoint generated alerts alert alerts this alerts alerts
sets the alerts value for this alert info
public boolean is is allowed return is allowed
gets the is allowed value for this auth data
public void set endpoint address java lang string port name java lang string address throws javax xml rpc service exception if bulk authorization soap12 equals port name set bulk authorization soap12 endpoint address address else if bulk authorization soap equals port name set bulk authorization soap endpoint address address else unknown port name throw new javax xml rpc service exception cannot set endpoint address for unknown port port name
set the endpoint address for the specified port name
public void set type com google enterprise connector sharepoint generated gsbulkauthorization container type type this type type
sets the type value for this container
public void set is allowed boolean is allowed this is allowed is allowed
sets the is allowed value for this auth data
public void set auth data array com google enterprise connector sharepoint generated gsbulkauthorization auth data auth data array this auth data array auth data array
sets the auth data array value for this auth data packet
public void set complex doc id java lang string complex doc id this complex doc id complex doc id
sets the complex doc id value for this auth data
public boolean is is done return is done
gets the is done value for this auth data
public void set is done boolean is done this is done is done
sets the is done value for this auth data
public void set type com google enterprise connector sharepoint generated gsbulkauthorization entity type type this type type
sets the type value for this auth data
public string get primary key return web id
get the primary key
public void set primary key final string new key if new key null web id new key
sets the primary key
public boolean is existing return exists
checks of the web is existing or deleted
public void set existing final boolean existing exists existing if exists false for each list state set not existing as the webstate is not existing final iterator list state it all list state set iterator while it has next final list state list list state it next list set existing false
marks the web as existing non existing
public int compare to final stateful object o if equals o return 0 final web state other web state o if other null return 1 anything is greater than null if insertion time null other insertion time null flipping the way comparison is being done in order to achieve descending ordering of webstates the tree set descending iterator is in jdk 1 6 final int insert comparison other insertion time compare to this insertion time return insert comparison return web id compare to other web id
compares this web state to another for the comparable interface
public boolean equals final object obj if null obj obj instanceof web state final web state tmp web web state obj if null web id null tmp web web id equals tmp web get primary key return true return false
for web state equality comparison
public list state lookup list final string key final list state ls key map get key return ls
lookup a list state by its key
public date time get last mod return util calendar to joda last mod
get the last mod time
public void start recrawl recrawling true if b full re crawl true logger config recrawling setting all web states is is exist flag to false for clean up purpose mark all as non existent final iterator web state it date map iterator while it has next final web state webs web state it next webs set existing false
signal that a complete recrawl cycle is beginning where all lists are
public void set last mod final date time in last mod last mod util joda to calendar in last mod
set the last mod time
public string get last mod string return util format date last mod
return last mod in string form
public list state lookup list final string webid final string listid final web state ws key map get webid if null ws final list state ls ws lookup list listid if null ls return ls return null
lookup a list state by its key
public void set primary key final string new key primary key cannot be null if new key null key new key
sets the primary key
public web state get current web return current web
get the current list state
public void set existing boolean existing exists existing
mark the list as existing non existing
private file get state file location file f if work dir null logger warning no working directory was given using cwd f new file spconstants connector name spconstants connector prefix else f new file work dir spconstants connector name spconstants connector prefix return f
return the location for our state file
public int compare to final stateful object o list state other null if o instanceof list state other list state o if other null other last mod null return 1 anything is greater than null if last mod null return 1 final int last mod comparison last mod get time compare to other last mod get time if last mod comparison 0 return last mod comparison else return key compare to other key
compares this list state to another for the comparable interface
public boolean equals final object obj if obj null return false list state other null if obj instanceof list state other list state obj if key equals other get primary key return true return false
for list equality comparison
public calendar get date for wsrefresh calendar date util joda to calendar get last mod our default check if there was some doc that was last sent and use its last modified date in case if it is later than that of the list if get last doc for wsrefresh null final calendar last crawl queue date get last doc for wsrefresh get last mod if last crawl queue date before date date last crawl queue date return date
return the date which should be passed to web services the
public spdocument get last doc for wsrefresh spdocument last doc from crawl queue get last doc in crawl queue of action type add if null last doc from crawl queue return last doc processed else if last doc from crawl queue compare to last doc processed 0 return last doc from crawl queue else return last doc processed
return the most suitable document to start the crawl
private spdocument get last doc in crawl queue of action type add if null crawl queue crawl queue size 0 return null else for int i crawl queue size 1 i 0 i spdocument last doc crawl queue get i if action type add equals last doc get action return last doc return null
returns the last document in crawl queue which was sent as add feed
public void dump crawl queue if crawl queue null crawl queue size 0 logger config crawl queue for get list url for int i doc 0 i doc crawl queue size i doc final spdocument doc spdocument crawl queue get i doc logger config doc get last mod get time doc get url doc dump all attrs else logger config empty crawl queue for get list url
debug routine dump the crawl queue to stdout
public void commit acl change token logger log level config before commit current acl change token current acl change token next acl change token next acl change token this current acl change token next acl change token next acl change token null
the saved next changetoken will be committed as the current change token to
private void set change token for wscall string in change token current change token in change token
must not be exposed to the clients
public string get next change token for subsequect wscalls return next change token
return a change token value which can be safely committed as current change
public boolean commit change token for wscall if null next change token next change token equals current change token return false logger log level config committing next change token next change token as current changetoken current change token next change token next change token null this changed folders clear return true
commits the internally saved next change token value as the
public set get all extra ids set id set new hash set string id pattern d pattern pat pattern compile id pattern matcher match pat matcher extra ids while match find string id part match group pattern pat2 pattern compile d matcher match2 pat2 matcher id part if match2 find string id match2 group if util is numeric id id set add id return id set
returns all the stored extra ids
public void update list final list state in list if key equals in list get primary key attrs in list get attrs base template in list get base template list url in list get list url type in list get type list title in list get list title list const in list get list const send list as document in list is send list as document inherited security in list is inherited security no crawl in list is no crawl
update the list only if the primary key matches
public boolean is in delete cache final string delete id if cached deleted ids null cached deleted ids contains delete id return true else return false
checks an item id if it exists in the local delete cache
public void add to delete cache final string delete id if cached deleted ids null util is numeric delete id cached deleted ids add delete id
adds an item id into the local delete cache
public void remove from delete cache final string delete id if cached deleted ids null util is numeric delete id cached deleted ids remove delete id
removes an item id from the locval delete cache
public void clear delete cache cached deleted ids new hash set string
clears the local deleted cache store
public void reset state current change token next change token null set last doc processed null set crawl queue null end acl crawl
resets the state of this list to initiate a complete re crawl
public void start acl crawl if is acl changed return acl changed tmp acl changed true last doc id crawled for acl tmp last doc id crawled for acl 0
marks a list for a candidate for acl based crawling
public void commit acl crawl status acl changed tmp acl changed last doc id crawled for acl tmp last doc id crawled for acl
commits the updated info about acl based crawling to be used latter
private void validate stack trace http exception exception string stack trace assert true starts with exception string stack trace starts with exception to string throwable cause exception get cause if cause null assert true contains cause stack trace to lower case index of cause 1 assert true contains cause to string stack trace index of cause to string 1
make sure an http exception stack trace has the right info in it
public void process challenge final string challenge throws malformed challenge exception string s auth challenge parser extract scheme challenge log trace enter process challenge if s equals ignore case get scheme name throw new malformed challenge exception invalid ntlm challenge challenge int i challenge index of if i 1 s challenge substring i challenge length this challenge challenge this ntlmchallenge s trim this state type2 msg received log trace type2 msg received else this ntlmchallenge if this state uninitiated log trace initiated this state initiated else this state failed
processes the ntlm challenge
public type2 message parse type2 message string message throws ioexception decode the message first byte msg base64 decode base64 encoding util get bytes message default charset type2 message t2m new type2 message msg t2m set flag ntlm ssp ntlmssp negotiate sign true t2m set flag ntlm ssp ntlmssp negotiate seal true t2m set flag ntlm ssp ntlmssp negotiate ntlm2 true t2m set flag ntlm ssp ntlmssp negotiate 128 true return t2m
extracts the server nonce out of the given message type 2
public boolean is armed return false
overide to change
private void fill col with d hash map tile integer map tile t integer d map put t 0 run on col with val t map d action down run on col with val t map d action up t label set tool tip text fill col with d on row dist from row col d
just a helper for dist from sentry
private void add agent agent agent string color send message agent agent get name color agent get orientation transform agent get row agent get col agents add agent map agent get row agent get col a
agent agent name color orientation cell initialize agent in the grid
public void init panel create panel manager create message dialog panel create grid grid set dotsize 1 0 grid set dot color new color 153 0 128
initiates default settings fo the game
public void init panel create panel manager create message dialog panel create grid
initiates default settings fo the game
public void add table model listener table model listener l
adds a listener to the list that is notified each time a change
public void action performed action event e if e get source history btn e get source history mi toggle history else if e get source exec btn e get source address tf execute else if e get source exit mi system exit 0
invoked when an action occurs
public string get column name int index return col names index
returns the name of the column at code column index code
public int get row count return 3
returns the number of rows in the model
public object get value at int row index int column index return
returns the value for the cell at code column index code and
public void remove table model listener table model listener l
removes a listener from the list that is notified each time a
public void set value at object a value int row index int column index
sets the value in the cell at code column index code and
public boolean is platform version return get location null
returns true if the jre version is a java platform version
public url get location return location
returns the jre version string
public string get maximum heap size return maximum heap size
returns the maximum heap size in bytes
public void add argument string arg array list list new array list arrays as list arguments list add arg arguments string list to array arguments
add an argument to the end of the arguments
public string get initial heap size return initial heap size
returns the initial heap size in bytes
public list get resources desc return resources
returns the resources defined for this jre
public void set classpath enabled boolean enabled classpath true
sets whether to include the calling the classpath in
public boolean is classpath enabled return classpath
returns whether externally launched applications will
public void set update policy update policy policy if policy null throw new illegal argument exception r lnull update policy this update policy policy
sets the update policy used by launched applications
public update policy get update policy return update policy
returns the update policy used when launching applications
protected void add part string ext part string part boolean lazy ext to part put ext part part if lazy part null part length 0 eager ext parts add ext part
adds an extension part to be downloaded when the specified
public void set security policy security policy policy if policy null throw new illegal argument exception r lnull security policy this security policy policy
sets the security policy used by launched applications
public void launch error launch exception exception print message exception
called when the application could not be launched due to a
public void resolve throws parse exception ioexception if file null file new jnlpfile location if jnlpruntime is debug system out println resolve file get information get title check for it being an extension descriptor if file is component file is installer throw new parse exception jnlpruntime get message jinvalid extension descriptor new object name location
resolves the extension by creating a jnlpfile from the file
public boolean launch warning launch exception warning print message warning return true
called when launching the application can not be launched
public security policy get security policy return security policy
returns the security policy used when launching applications
public jnlpfile get jnlpfile return file
returns a jnlpfile for the extension or null if the jnlp
public boolean validation error launch exception security print message security return true
called when a security validation error occurs while
public string get part return part
returns the part name or null if not specified in the jnlp
public void launch completed application instance application
called when an application applet or installer has been
public void set create app context boolean enabled this create context enabled
sets whether to launch the application in a new app context
public object get security type return type
returns the permissions type one of all permissions
protected void print message launch exception ex string buffer result new string buffer result append netx result append ex get category if ex get summary null result append result append ex get summary if jnlpruntime is debug if ex get cause null ex get cause print stack trace else ex print stack trace throwable causes ex get causes for int i 0 i causes length i result append result append causes i get class get name result append result append causes i get message result append system out println result
print a message to stdout
public permission collection get permissions return get permissions type
returns a permission collection containing the basic
public boolean is eager return is lazy
returns true if the jar file should be downloaded before
public boolean is create app context return this create context
returns whether applications are launched in their own
public boolean is lazy not technically correct but we ensure the main jar is not lazy we re going to snag the manifest when the classloader is initialized so it s much easier for the launcher to figure out the main class if main return false return lazy
returns true if the jar file should be downloaded on demand
public boolean is main return main
returns true if the jnlp file defined this jar as containing
public application instance launch jnlpfile file throws launch exception tg thread tg new tg thread file tg start try tg join catch interrupted exception ex throw launch warning new launch exception file ex r lsminor r lcsystem r lthread interrupted r lthread interrupted info if tg get exception null throw tg get exception passed to handler when first created if handler null handler launch completed tg get application return tg get application
launches a jnlp file by calling the launch method for the