input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
private void set depot filename string depot filename this depot filename depot filename
|
sets the depot filename
|
private void set action string action this action action
|
sets the action
|
public icounters result get result return result
|
returns the result of the operation
|
private void set refreshed boolean refreshed this refreshed refreshed
|
sets the value of the refreshed flag
|
public input stream get result return new byte array input stream result to byte array
|
call this method to retrieve the result of the print operation
|
public boolean is open return client api null client api dropped
|
checks whether the connection is open or not
|
public void close if client api null client api dispose client api null
|
call this method to close the connection to the perforce server
|
private folder sync info get cached project sync iproject project throws perforce exception try folder sync info result folder sync info project get session property project sync key if result null cache store cache store get cache store for resource project result cache store get project sync info project if result null result null folder sync info project set session property project sync key result return result catch core exception e throw new perforce exception e get status
|
called to retrieve cached folder sync info for the given project
|
private boolean is valid return valid
|
checks if the connection is still valid
|
public void startup throws perforce exception load state
|
called to perform startup operations like loading the known server
|
public void shutdown throws perforce exception save state
|
called to perform shutdown operations like storing the servers
|
public void perform snapshot throws perforce exception save state
|
called to save the server managers current state
|
private void load state throws perforce exception ipath plugin state location perforce core plugin get plugin get state location file file plugin state location append state file to file if file exists try data input stream dis new data input stream new file input stream file try read state dis finally dis close catch ioexception e perforce core plugin log new status status error perforce core plugin id team exception unable policy bind perforce server manager io exception e non nls 1 catch perforce exception e perforce core plugin log e get status
|
called to load the last saved state of the server manager from disk
|
public int get file count return files length
|
returns the number of affected files
|
public object get result if result null return result else return integer result
|
returns the result of the operation
|
private void perforce server added iperforce server server for iperforce listener listener listeners listener perforce server added server
|
called to fire a perforce server added event notification
|
private void perforce server removed iperforce server server for iperforce listener listener listeners listener perforce server removed server
|
called to fire a perforce server removed event notification
|
private cache store get cache store for resource iresource resource throws perforce exception iperforce server manager manager perforce core plugin get server manager iperforce server server manager get perforce server resource if server null status status new status status error perforce core plugin id status error failed to find perforce server for resource to string null non nls 1 throw new perforce exception status cache store store server to cache store get server if store null store new cache store server server to cache store put server store return store
|
returns the cache store for the given resource
|
private string get display name ipath path string segments path segments if segments length 4 return path to osstring string builder result new string builder for int i segments length 3 i segments length i result append file separator char append segments i return result to string
|
generates the display name for the given path
|
public boolean get delete affects changelist return delete affects changelist
|
returns whether deletes should be performed the perforce way
|
public void set delete affects changelist boolean new delete affects changelist delete affects changelist new delete affects changelist
|
changes the way delete operations are performed
|
public boolean get show tasks on add return show tasks on add
|
returns whether tasks should be generated or not
|
public void set show tasks on add boolean new show tasks on add show tasks on add new show tasks on add
|
sets whether tasks should be generated or not
|
public void set error string string the error string error string the error string
|
sets the error string
|
public int get background update interval return background update interval
|
gets the interval for background updates
|
public void set level char the info level info level the info level
|
sets the info level
|
public void set info string string the info string info string the info string
|
sets the info string
|
public void set background update interval int interval background update interval interval
|
sets the background update interval
|
private void update map lru map string externalizable map if map null return lru maps remove map lru maps add map while lru maps size lru threshold lru maps remove 0
|
called to update the lru list
|
public boolean should monitor changelists return should monitor changelists
|
checks whether the background update thread should watch changelists
|
public void set should monitor changelists boolean new value should monitor changelists new value
|
changes the background update monitors behavior concerning the monitoring
|
private void refresh resources iresource resources iprogress monitor monitor refresh state resources iresource depth infinite monitor todo mki changed this from depth one
|
called to refresh the given resources and their resource states
|
public boolean should monitor opened files return should monitor opened files
|
checks whether the background update thread should watch opened files
|
public void verify assert assert equals total work worked assert assert true iprogress monitor done wasn t called total work 1 done called
|
called to verify the progress monitor at the end of the operation
|
public void set should monitor opened files boolean new value should monitor opened files new value
|
changes the background update monitors behavior concerning the monitoring
|
private folder sync info get cached folder sync icontainer folder throws perforce exception icontainer parent folder get parent map string externalizable children get map from session property parent folder sync key policy assert not null children return folder sync info children get folder get name
|
called to retrieve the cached folder sync info for the given folder
|
public void test invalid or unset password throws exception input stream script get class get resource as stream invalid or unset password xml execute script script client user assert true client user get status is ok assert equals istatus error client user get status get severity
|
tests the client user with unspecified password
|
public void test permission denied throws exception input stream script get class get resource as stream permission denied xml execute script script client user assert true client user get status is ok assert equals istatus error client user get status get severity
|
tests the client user without permissions
|
public void test valid result throws exception input stream script get class get resource as stream depots valid result xml execute script script client user assert true client user get status is ok string result client user get result string expected depot eclipse p4eclipse projects se assert equals expected length result length for int i 0 i result length i assert equals expected i result i
|
tests the client user with a valid result
|
public void add resource state change listener iresource state change listener listener resource state change listener list add listener
|
adds the given iresource state change listener to the notification list
|
private resource sync info get cached resource sync iresource resource throws perforce exception icontainer parent resource get parent map string externalizable children get map from session property parent resource sync key policy assert not null children return resource sync info children get resource get name
|
method is called to retrieve the cached resource sync info for the given
|
public void remove resource state change listener iresource state change listener listener resource state change listener list remove listener
|
removes the specified iresource state change listener from the notification
|
public void dispose destruct
|
disposes the error object freeing native resources
|
public void dispose this delegate null destruct
|
destroys the native client user
|
public string input data ierror error return delegate input data error
|
delegates callback to iclient user delegate
|
public void output error string error string delegate output error error string
|
delegates callback to iclient user delegate
|
public istatus broadcast resource state changes final iresource state delta deltas final multi status result new multi status perforce core plugin id istatus ok null non nls 1 for int i 0 length resource state change listener list size i length i final iresource state change listener listener resource state change listener list get i isafe runnable runnable new isafe runnable public void handle exception throwable exception log error error in broadcast resource state changes exception public void run try listener resource state changed deltas catch throwable e handle exception e platform run runnable return result
|
call this method to notify registers iresource state change listeners that the
|
public void output info char level string info string delegate output info level info string
|
delegates callback to iclient user delegate
|
public void output binary byte data delegate output binary data
|
delegates callback to iclient user delegate
|
public void output text byte data delegate output text data
|
delegates callback to iclient user delegate
|
public void output stat map string data delegate output stat data
|
delegates callback to iclient user delegate
|
public void handle error ierror error delegate handle error error
|
delegates callback to iclient user delegate
|
public void message ierror error delegate message error
|
delegates callback to iclient user delegate
|
public void resolve client merge client merge todo throw new unsupported operation exception
|
delegates callback to iclient user delegate
|
public string prompt string msg boolean no echo error error todo throw new unsupported operation exception
|
delegates callback to iclient user delegate
|
public void finished delegate finished
|
delegates callback to iclient user delegate
|
public void broadcast changelist state changes final ichangelist changelists for int i 0 length resource state change listener list size i length i final iresource state change listener listener resource state change listener list get i isafe runnable runnable new isafe runnable public void handle exception throwable exception log error error in broadcast changelist state changes exception public void run throws exception listener changelist state changed changelists safe runner run runnable
|
call this method to notify registered iresource state change listeners about
|
public void broadcast changelist state changes final iperforce server servers for int i 0 length resource state change listener list size i length i final iresource state change listener listener resource state change listener list get i isafe runnable runnable new isafe runnable see isafe runnable handle exception throwable public void handle exception throwable exception log error error in broadcast changelist state changes exception public void run throws exception listener changelist state changed servers safe runner run runnable
|
call this method to notify registered listeners about changes to the
|
public void add changelist listener ichangelist listener listener changelist listener list add listener
|
adds the given listener to the changelist notification list
|
public void remove changelist listener ichangelist listener listener changelist listener list remove listener
|
removes the specified listener from the changelist notification list
|
public void add client user listener iclient user listener listener client user listener list add listener
|
adds the given iclient user listener to the listener list
|
public void remove client user listener iclient user listener listener client user listener list remove listener
|
removes the given iclient user listener from the listener list
|
public void broadcast changelist changes for int i 0 length changelist listener list size i length i final ichangelist listener listener changelist listener list get i isafe runnable runnable new isafe runnable public void handle exception throwable exception log error error in broadcast changelist changes exception public void run throws exception listener notify change safe runner run runnable
|
notifies that registered listeners that one or more changelist have been
|
public void update cache throws perforce exception update cache user password true password null
|
called to update the password cache
|
private string get depot file name string path throws perforce exception iwhere result where result where path return where result null where result get depot filename null
|
retrieves the depot pathname of the specified path
|
private string get local file name string path throws perforce exception iwhere result where result where path return where result get local filename
|
retrieves the local filename of the specified path
|
private void simple cmd string file names string cmd throws perforce exception simple cmd client user simple cmd new instance cmd run file names client user null if client user get status get severity istatus error throw new perforce exception client user get status
|
performs a simple file base perforce operation
|
private void simple cmd list string file names string cmd throws perforce exception simple cmd client user simple cmd new instance cmd run file names to array new string file names size client user null if client user get status get severity istatus error throw new perforce exception client user get status
|
performs a simple file base perforce operation
|
public ipath get client root throws perforce exception if client root null update client info return client root
|
returns the current clients perforce root
|
private void update server info throws perforce exception iinfo result result info null server address result get server address server root result get server root server date result get server date server version result get server version server license result get server license
|
called to update the internal info about the server
|
private void update client info throws perforce exception iinfo result result info null if result get client root null client root null else if result get client root equals ignore case null client root path empty else client root new path result get client root if client root null connection set client root client root
|
called to update the internal info about the client
|
private string get active changelist string if active changelist equals ichangelist default return default non nls 1 else return active changelist to string
|
called to retrieve the changelist string of the currently active
|
public string get error notes return notes
|
should contain a human readable description of the problem
|
public void clear property qname name resource r set property name null r
|
just calls set property
|
public string sanitise name string s s s replace all return s
|
replace spaces with underscores
|
public boolean is complete in memory return temp file null
|
returns true if the data is completely held in memory
|
private void append string value try writer write value catch ioexception ex throw new runtime exception ex
|
append the given raw string to the ouput
|
private void append char c try writer write int c catch ioexception ex throw new runtime exception ex
|
append the given character to the output
|
public void write property string namespace string namespace info string name string value write element namespace namespace info name type opening append value write element namespace namespace info name type closing
|
convenience method to write a single element containing a piece of text
|
public void close string name write element null name type closing
|
write a closing tag for the given name
|
public element write text string text return write text text true
|
write the text into the element
|
public element open return open true
|
completes the opening tag which is started in the constructor
|
public void set extra source property source source this add source
|
allows you to add an extra source to the default list
|
public element close return close false
|
closes the tag by determining its current state
|
public element no content append n return parent
|
write a self closing tag eg
|
public element begin string name return begin null name
|
start a new element completing the open tag if required
|
public boolean supports resource r return true
|
this returns true for all resources but it actually depends on the
|
public void write text string text append text
|
append plain text
|
public display name formatter get display name formatter return display name formatter
|
generates the displayname element text
|
public boolean check expects http11 response handler response handler request request response response if enable expect continue string s request get expect header if s null s length 0 response set status response status sc continue return false else return true else return true
|
checks the expect header and responds if necessary
|
public string get realm string host if realm null return realm else if host null host length 0 return host else return read only realm
|
will return the configured realm if it is not null
|
public string find content types request request string new name string ct request get content type header if ct null return ct return content type utils find content types new name
|
returns a textual representation of the list of content types for the
|
public void apply partial update getable resource replacee request request range range output stream temp out throws not authorized exception bad request exception try replacee send content temp out null null null catch ioexception ex throw new runtime exception ex
|
copy the current content of the resource to the outputstream except
|
public boolean is not compatible resource r method m if r instanceof conditional compatible resource conditional compatible resource ccr conditional compatible resource r return ccr is compatible m return false
|
returns true to indicate that the given resource must not handle the
|
private boolean check conditional getable resource resource request request if max age seconds is null then we do not cache if resource get max age seconds request get authorization null log trace resource has null max age so not modified response is disabled return false if check if match resource request return true if check if modified since resource request log trace is not modified since return true if check if none match resource request return true return false
|
return true if the resource has not been modified
|
public object authenticate request request for authentication handler h authentication handlers if h supports null request object o h authenticate null request if o null log warn authentication failed by authentication handler h get class return o log warn no authentication handler supports scheme request get authorization get scheme return null
|
looks for an authentication handler which supports the given resource and
|
public string generate digest digest response dr string password throws illegal argument exception log debug user dr get user realm dr get realm password string p password null password string a1 md5 encode password in a1 format dr get user dr get realm p return generate digest with encrypted password dr a1 md5
|
computes the code response code portion of a digest authentication header
|
public string get response digest return response digest
|
this is the response to the challenge
|
public boolean is enable nonce count checking return enable nonce count checking
|
ie seems to send nc nonce count parameters out of order
|
public void write value xml writer writer qname qname string prefix value and type vat string href map string string ns prefixes for value writer vw writers if vw supports qname get namespace uri qname get local part vat get type vw write value writer qname get namespace uri prefix qname get local part vat get value href ns prefixes break
|
find the first value writer which supports the given property and use it
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.