input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
private string get initial config form if keys null throw new illegal state exception initial config form make config form null null return initial config form
|
gets the initial blank form
|
public traversal manager get traversal manager throws repository exception logger info get traversal manager return new sharepoint traversal manager connector sharepoint client context
|
for getting the traversal manager form the current connector context
|
public int size if documents null return 0 else return documents size
|
adding methods to get the count of the documents in the list
|
public void clear excluded urllogs logger log level info cleaning all the excluded url logs final file file new file excluded url parent dir if file null file exists file is directory logger log level warning excluded url parent directory not found return final file logs file list files if logs null return for file element logs if element null element exists continue logger log level info deleting element get absolute path status element delete logger log level info deleting excluded url parent dir status file delete
|
deletes all the excluded url logs
|
public traversal context get traversal context return traversal context
|
returns the traversal context
|
public void set all attributes final list attribute lst attributes if lst attributes null attrs add all lst attributes
|
for setting document properties
|
public configure response get config form final locale locale logger config locale locale this edit mode false collator util get collator locale rb resource bundle get bundle sharepoint connector resources locale set config strings final configure response result new configure response get initial config form return result
|
called by connector manager to display the connector configuration page
|
public boolean equals final object obj if obj instanceof spdocument final spdocument doc spdocument obj if doc null doc id null doc id equals doc get doc id url null url equals doc get url return true return false
|
for spdocument equality comparison
|
public void set doc id final string doc id this doc id doc id
|
for setting document id required while submitting document for feed
|
protected string get sql query query query return query provider get sql query query
|
shorthand for getting queries through
|
private boolean is required final string config key if collator equals config key spconstants sharepoint url collator equals config key spconstants username collator equals config key spconstants password collator equals config key spconstants included urls return true else return false
|
desc returns true if the config key is a mandatory field
|
public void cleanup cache logger log level info current cache size before cleanup uds cache size uds cache clear cache logger log level info current cache size after cleanup uds cache size
|
to cleanup the cache
|
public void is use cache boolean use cache if use cache uds cache null
|
cache can be disabled using this
|
private void remove all cached collection user group membership memberships iterator user group membership itr memberships iterator while itr has next user group membership membership itr next if uds cache contains membership itr remove
|
removes all those elements from the passed in collection that are found in
|
private boolean is in fqdn final string val logger config checking val for fqdn try final url url new url val final string host url get host if host index of 1 return false catch final exception e return false return true
|
checks if the value is in fqdn
|
private void check object param if null parameters param length 0 return if param length parameters length throw new illegal argument exception no of expected parameters parameters length is not equal to the passed in values param length
|
checks if the no
|
public boolean contains t t if null t return false return cache map contains key new spsoft reference t t
|
checks if the element is in cache
|
public void add t t if null t return set view views get views t cache map put new spsoft reference t t cache ref queue views for view view views set spweak reference t referents if view refs map contains key view referents view refs map get view if null referents referents new hash set spweak reference t view refs map put view referents else referents new hash set spweak reference t view refs map put view referents referents add new spweak reference t t
|
adds an element into the cache and updates the views
|
public void remove t t if null t return cache map remove new spsoft reference t t
|
removes the element from cache
|
protected void remove using view view view set spweak reference t refs view refs map get view if null refs return for spweak reference t ref refs remove ref get
|
removes all the elements which satisfies one view
|
public void clear cache reference extends t ref cache ref queue poll while null ref cache map remove ref ref cache ref queue poll
|
calling this will delete all the references whose referent has been garbage
|
private boolean is url final string url logger config checking url for malformed url try final url chk url new url url check for port value greater then allowed range is added beacuse of a bug in axis where a null pointer exception was being returned as a vlaue during web service call if null chk url chk url get port spconstants max port value return false catch final malformed urlexception e final string log message malformed url logger log level warning log message e return false return true
|
checks if the url is a malformed url
|
public void remove using user namespace view t t user namespace view view new user namespace view t remove using view view
|
removal of memberships from cache based on user namespace view
|
public void remove using group namespace view t t group namespace view view new group namespace view t remove using view view
|
removal of memberships from cache based on user namespace view
|
public void remove using namespace view t t namespace view view new namespace view t remove using view view
|
removal of memberships from cache based on user namespace view
|
private void remove expired object from cache final k name cache store remove name expire remove name
|
removes a specific object from the cache
|
public long get expire return this refresh interval
|
returns the default expiration time for the objects in the cache
|
public void put k key v obj this put key obj this refresh interval
|
put an object into the cache
|
private void put k key v obj final long expire time try this cache store put key obj long current time system current time millis expire time 1000 this expire put key current time logger log level info updated cache for the search user key with expiry time in seconds current time and now the cache size is this get size catch throwable t logger log level warning exception is thrown while updating cache for the key key t
|
put an object into the cache with a custom expiration date
|
private string check connectivity final string endpoint logger config checking connectivity for endpoint if endpoint null is url endpoint return rb get string spconstants endpoint not found try sharepoint client context set site url endpoint final webs ws webs ws new webs ws sharepoint client context return webs ws check connectivity catch final exception e final string log message problem while connecting logger log level warning log message e return e get localized message
|
checks if the endpoint provided is a sharepoint url and is connectable
|
public void set next value java lang string next value this next value next value
|
sets the next value value for this get user profile by index result
|
public void set user profile com google enterprise connector sharepoint generated sp2003 userprofileservice property data user profile this user profile user profile
|
sets the user profile value for this get user profile by index result
|
public void set endpoint address java lang string port name java lang string address throws javax xml rpc service exception if user profile service soap equals port name set user profile service 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
|
private string make ldap url string url method connect method settings get connect method if connect method method ssl url ldaps for ssl else url ldap for non ssl construct the full url url url settings get hostname if settings get port 0 url url settings get port logger info complete ldap url url return url
|
makes an ldap or ldaps url
|
private string check gsconnectivity final string endpoint logger config checking google services connectivity for endpoint if endpoint null is url endpoint return rb get string spconstants endpoint not found try sharepoint client context set site url endpoint final gsbulk authorization ws test bulk auth new gsbulk authorization ws sharepoint client context return test bulk auth check connectivity catch final exception e final string log message problem while connecting logger log level warning log message e return e get localized message
|
check for the connectivtity to the google services for share point
|
private boolean validate ipaddress string ip if ip matches 0 255 0 255 0 255 0 255 if ip matches 0 9 1 9 0 9 1 0 9 2 2 0 4 0 9 25 0 5 3 0 9 1 9 0 9 1 0 9 2 2 0 4 0 9 25 0 5 return true else return false
|
validates the string to check whether it represents an ip address or not
|
public string get use spsearch visibility return use spsearch visibility
|
returns the flag if share point search visibility options are to be fetched
|
public void set web urls java lang string web urls this web urls web urls
|
sets the web urls value for this get web crawl info in batch
|
private boolean check for integer string number try integer parse int number catch number format exception ne logger log level warning exception thrown while parsing ldap port number ne return false return true
|
parses the string argument as a signed decimal integer
|
public void set list guid java lang string list guid this list guid list guid
|
sets the list guid value for this is crawlable list
|
public void set list guids java lang string list guids this list guids list guids
|
sets the list guids value for this get list crawl info
|
public boolean is no crawl return no crawl
|
gets the no crawl value for this list crawl info
|
public void set no crawl boolean no crawl this no crawl no crawl
|
sets the no crawl value for this list crawl info
|
public void set check connectivity result java lang string check connectivity result this check connectivity result check connectivity result
|
sets the check connectivity result value for this check connectivity response
|
public boolean is is crawlable list result return is crawlable list result
|
gets the is crawlable list result value for this is crawlable list response
|
public void set is crawlable list result boolean is crawlable list result this is crawlable list result is crawlable list result
|
sets the is crawlable list result value for this is crawlable list response
|
public void set web key java lang string web key this web key web key
|
sets the web key value for this web crawl info
|
public boolean is crawl aspx pages return crawl aspx pages
|
gets the crawl aspx pages value for this web crawl info
|
public void set crawl aspx pages boolean crawl aspx pages this crawl aspx pages crawl aspx pages
|
sets the crawl aspx pages value for this web crawl info
|
public void set endpoint address java lang string port name java lang string address throws javax xml rpc service exception if site discovery soap12 equals port name set site discovery soap12 endpoint address address else if site discovery soap equals port name set site discovery 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 account name java lang string account name this account name account name
|
sets the account name value for this update pinned link
|
public void set data com google enterprise connector sharepoint generated userprofileservice pinned link data data this data data
|
sets the data value for this update pinned link
|
public void set property name java lang string property name this property name property name
|
sets the property name value for this get property choice list
|
public void set get common colleagues result com google enterprise connector sharepoint generated userprofileservice contact data get common colleagues result this get common colleagues result get common colleagues result
|
sets the get common colleagues result value for this get common colleagues response
|
public void set data com google enterprise connector sharepoint generated userprofileservice quick link data data this data data
|
sets the data value for this update link
|
public void set get in common result com google enterprise connector sharepoint generated userprofileservice in common data get in common result this get in common result get in common result
|
sets the get in common result value for this get in common response
|
public void set privacy com google enterprise connector sharepoint generated userprofileservice privacy privacy this privacy privacy
|
sets the privacy value for this property data
|
public void set values com google enterprise connector sharepoint generated userprofileservice value data values this values values
|
sets the values value for this property data
|
public boolean is is privacy changed return is privacy changed
|
gets the is privacy changed value for this property data
|
public void set is privacy changed boolean is privacy changed this is privacy changed is privacy changed
|
sets the is privacy changed value for this property data
|
public boolean is is value changed return is value changed
|
gets the is value changed value for this property data
|
public void set colleague account name java lang string colleague account name this colleague account name colleague account name
|
sets the colleague account name value for this add colleague
|
public void set is value changed boolean is value changed this is value changed is value changed
|
sets the is value changed value for this property data
|
public void set user profile com google enterprise connector sharepoint generated userprofileservice property data user profile this user profile user profile
|
sets the user profile value for this get user profile by index result
|
public void set membership info com google enterprise connector sharepoint generated userprofileservice membership data membership info this membership info membership info
|
sets the membership info value for this add membership
|
public boolean is is in work group return is in work group
|
gets the is in work group value for this add colleague
|
public void set colleagues com google enterprise connector sharepoint generated userprofileservice contact data colleagues this colleagues colleagues
|
sets the colleagues value for this get user profile by index result
|
public void set is in work group boolean is in work group this is in work group is in work group
|
sets the is in work group value for this add colleague
|
public void set manager com google enterprise connector sharepoint generated userprofileservice contact data manager this manager manager
|
sets the manager value for this in common data
|
public void set quick links com google enterprise connector sharepoint generated userprofileservice quick link data quick links this quick links quick links
|
sets the quick links value for this get user profile by index result
|
private boolean check for special characters string name format pattern pattern pattern compile a z a z0 9 matcher matcher pattern matcher name format if matcher find return false return true
|
checks if the given name consist of special characters or not and returns
|
public void set memberships com google enterprise connector sharepoint generated userprofileservice membership data memberships this memberships memberships
|
sets the memberships value for this in common data
|
public void set source internal java lang string source internal this source internal source internal
|
sets the source internal value for this member group data
|
public void set pinned links com google enterprise connector sharepoint generated userprofileservice pinned link data pinned links this pinned links pinned links
|
sets the pinned links value for this get user profile by index result
|
public void set source reference java lang string source reference this source reference source reference
|
sets the source reference value for this member group data
|
public void set get user links result com google enterprise connector sharepoint generated userprofileservice quick link data get user links result this get user links result get user links result
|
sets the get user links result value for this get user links response
|
public void set add link result com google enterprise connector sharepoint generated userprofileservice quick link data add link result this add link result add link result
|
sets the add link result value for this add link response
|
public void set add pinned link result com google enterprise connector sharepoint generated userprofileservice pinned link data add pinned link result this add pinned link result add pinned link result
|
sets the add pinned link result value for this add pinned link response
|
public void set new privacy com google enterprise connector sharepoint generated userprofileservice privacy new privacy this new privacy new privacy
|
sets the new privacy value for this update membership privacy
|
public void set get user colleagues result com google enterprise connector sharepoint generated userprofileservice contact data get user colleagues result this get user colleagues result get user colleagues result
|
sets the get user colleagues result value for this get user colleagues response
|
public void set get common manager result com google enterprise connector sharepoint generated userprofileservice contact data get common manager result this get common manager result get common manager result
|
sets the get common manager result value for this get common manager response
|
public void set group type com google enterprise connector sharepoint generated userprofileservice membership group type group type this group type group type
|
sets the group type value for this membership data
|
public void set get user memberships result com google enterprise connector sharepoint generated userprofileservice membership data get user memberships result this get user memberships result get user memberships result
|
sets the get user memberships result value for this get user memberships response
|
public void set add membership result com google enterprise connector sharepoint generated userprofileservice membership data add membership result this add membership result add membership result
|
sets the add membership result value for this add membership response
|
public void set source com google enterprise connector sharepoint generated userprofileservice membership source source this source source
|
sets the source value for this membership data
|
public void set member group com google enterprise connector sharepoint generated userprofileservice member group data member group this member group member group
|
sets the member group value for this membership data
|
public void set get common memberships result com google enterprise connector sharepoint generated userprofileservice membership data get common memberships result this get common memberships result get common memberships result
|
sets the get common memberships result value for this get common memberships response
|
public void set mail nickname java lang string mail nickname this mail nickname mail nickname
|
sets the mail nickname value for this membership data
|
public void set user profile id java lang string user profile id this user profile id user profile id
|
sets the user profile id value for this contact data
|
public boolean is is multi value return is multi value
|
gets the is multi value value for this property info
|
public void set is multi value boolean is multi value this is multi value is multi value
|
sets the is multi value value for this property info
|
public void set choice type com google enterprise connector sharepoint generated userprofileservice choice types choice type this choice type choice type
|
sets the choice type value for this property info
|
public void set new data com google enterprise connector sharepoint generated userprofileservice property data new data this new data new data
|
sets the new data value for this modify user property by account name
|
public void set add colleague result com google enterprise connector sharepoint generated userprofileservice contact data add colleague result this add colleague result add colleague result
|
sets the add colleague result value for this add colleague response
|
public long get member group id return member group id
|
gets the member group id value for this membership data
|
public void set member group id long member group id this member group id member group id
|
sets the member group id value for this membership data
|
public void set current user java lang string current user this current user current user
|
sets the current user value for this alert info
|
public void set endpoint address java lang string port name java lang string address throws javax xml rpc service exception if alerts soap12 equals port name set alerts soap12 endpoint address address else if alerts soap equals port name set alerts 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 alert server name java lang string alert server name this alert server name alert server name
|
sets the alert server name value for this alert info
|
public void set alert server url java lang string alert server url this alert server url alert server url
|
sets the alert server url value for this alert info
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.