input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
protected void log audit string log msg string user obj get logger audit log msg user obj
|
log an audit message to the system log file
|
public void set text marking enabled boolean text marking enabled this text marking enabled text marking enabled if text marking enabled tm container context put text marker array text marker js generator load file as jscommands string text marker file dom id alias mode else clear the intervals which run endlessly to textmark text in inframes tm container context put text marker array o tm clear all running intervals
|
enable disable the text marking temporary
|
public portlet tool controller get tools user request ureq window control w control return null
|
this must be overriden if there are any tools to be exposed
|
protected void initialize run component user request ureq this run component this portlet get initial run component get window control ureq this portlet container vc put portlet run component controller additional portlet tools portlet get tools ureq get window control if additional portlet tools null toolbox container context put has additional boolean true toolbox container put additional tools additional portlet tools get initial component
|
initializes the portlet runtime view
|
protected void deactivate run component portlet dispose run component portlet container vc remove run component run component null
|
dispose the portlets run component without disposing the container
|
public portlet tool controller get portlet tools controller return portlet tools controller
|
exposes the portlet tool controller for the current portlet
|
public void event user request ureq controller source event event if source portlet tools controller if event get command equals portlet tool sorting controller impl command auto sorting sorting criteria portlet tools controller get sorting criteria reload model ureq sorting criteria save sorting configuration ureq sorting criteria else if event get command equals portlet tool sorting controller impl command manual sorting list portlet entry sorted items portlet tools controller get sorted items reload model ureq sorted items save manually sorted items ureq sorted items sorting criteria new sorting criteria portlet tools controller set sorting criteria sorting criteria
|
handles portlet tools controller events
|
protected sorting criteria get persistent sorting configuration user request ureq sorting criteria return sorting criteria null preferences gui preferences ureq get user session get gui preferences object stored prefs gui preferences get map class get preference key sorting criteria pref if stored prefs null return sorting criteria new sorting criteria map string integer stored prefs this sorting terms list else return sorting criteria new sorting criteria this sorting terms list return return sorting criteria
|
retrieves the persistent sorting criteria for the current portlet for the current user
|
protected void save manually sorted items user request ureq list portlet entry sorted items preferences gui preferences ureq get user session get gui preferences store manual sorting type sorting criteria manual sorting criteria new sorting criteria gui preferences put and save map class get preference key sorting criteria pref manual sorting criteria get persistable store the sorted items gui preferences put and save map class get preference key sorted items pref get sorted items map sorted items
|
stores the manually sorted items
|
protected string get preference key string prefix return prefix portlet name
|
generates preference keys
|
protected list get sorted list list item list sorting criteria sorting criteria comparator item comparator get comparator sorting criteria collections sort item list item comparator check here is asscending or descending and return the first max entries int max entries sorting criteria get max entries list return list item list sub list 0 math min item list size max entries return return list
|
sorts the item list according with the sorting criteria
|
protected comparator get portlet entry comparator final map long integer sorted items return new comparator public int compare final object o1 final object o2 portlet entry portlet entry1 portlet entry o1 portlet entry portlet entry2 portlet entry o2 int comparison result 0 integer portlet entry1 index sorted items get portlet entry1 get key integer portlet entry2 index sorted items get portlet entry2 get key comparison result portlet entry1 index compare to portlet entry2 index return comparison result
|
compares portlet entrys
|
public void set is edit mode boolean edit mode enabled update porlet container edit mode edit mode enabled this portal vc context put mode edit edit mode enabled
|
enable disable the edit mode of the portal
|
private void update porlet container edit mode boolean edit mode iterator portlets iter this portlets configurations key set iterator while portlets iter has next string portlet name string portlets iter next portlet container pc this portlet containers get portlet name pc set is edit mode edit mode
|
updates all portles using the given mode
|
protected long get long config parameter string parameter name long default value string string value module config get child value parameter name if string value null string value equals try return long parse long string value catch exception ex tracing log warn cannot parse to long conf parameter parameter name value string value this get class tracing log info take default value for long conf parameter parameter name value default value this get class return default value
|
return a long value for certain config parameter
|
protected boolean get boolean config parameter string parameter name boolean default value string string value module config get child value parameter name if string value null string value equals ignore case true return true if string value null string value equals ignore case false return false tracing log info take default boolean conf parameter parameter name value string value only true false supported take default value this get class return default value
|
return a boolean value for certain config parameter
|
public void set modules map modules inj this modules modules inj
|
called only by spring
|
public map get modules return this modules
|
key value pairs br
|
public void set portlets configurations map string map string string config this portlets configurations config
|
bean method used by spring
|
public map get dispatchers return dispatchers
|
key value pairs br
|
public void set dispatchers map dispatchers this dispatchers dispatchers
|
called only by spring
|
public void set default dispatcher name string default dispatcher name path default default dispatcher name
|
used by spring
|
public string register class global name class mapper mapper string global name settings get version id global name class get name if path to mapper contains key global name throw new assert exception could not register global named mapper name already used global name path to mapper put global name mapper string contextpath webapp helper get servlet context path return contextpath dispatcher action path globalmapped global name
|
register a named global mapper
|
public void deregister mapper mapper boolean removed path to mapper values remove mapper if removed throw new assert exception trying to remove a mapper that was never registered
|
remove a registered mapper if it is no longer needed
|
public void destroy version v version core spring factory get bean org olat core version log info log info log info shutdowm log info log info application v get application name log info stop time stamp new date log info log info
|
called by configuration manager
|
public void deregister mapper mapper map values remove mapper
|
remove a registered mapper if it is no longer needed
|
public object get object key return lhm get key
|
get the value for the supplied key
|
public preferences get preferences for identity identity boolean use transient preferences return preferences storage get preferences for identity use transient preferences
|
factory method to create a preferences object for a given identity
|
public object remove object key object o lhm get key lhm remove key return o
|
remove a key value tupel
|
private void log startup version v version core spring factory get bean org olat core version log info log info log info startup log info log info application v get application name log info version v get full version log info start time stamp new date log info log info
|
either the version of the core or the webapps provided version gets printed
|
public urihelper add parameter string name string value ignore undefined values if name null value null return this modified true params put name value return this
|
add a single parameter
|
public urihelper remove parameter string name if params null params is empty don t reset the modification state because of initial construction modified params remove name null return this
|
remove a single parameter if exists
|
public string get parameter string name if params null params is empty return null else return string params get name
|
return the value of a single parameter
|
public string format date date d date format df date format get date instance date format short locale df set lenient false string da df format d return da
|
formats the given date so it is friendly to read
|
public string format time date d date format df date format get time instance date format medium locale df set lenient false string da df format d return da
|
formats the given time period so it is friendly to read
|
public string format date and time date d date format df date format get date time instance date format short date format short locale df set lenient false string da df format d return da
|
formats the given date so it is friendly to read
|
public string format time short date d date format df date format get time instance date format short locale df set lenient false string da df format d return da
|
formats the given time period so it is friendly to read
|
public string builder escape with br string source if source null return null string builder sb new string builder 300 int len source length char cs source to char array for int i 0 i len i char c cs i switch c case sb append lt break case sb append gt break case check on first entities don t escape if i len 1 cs i 1 we have as next char sb append else sb append amp break case r sb append br break case n sb append br break default sb append c return sb
|
same as escape but n also get transformed to lt br gt
|
public string builder replace string source string delim string replacement if source null return null string builder sb new string builder 300 string tokenizer st new string tokenizer source delim while st has more tokens string tok st next token sb append tok sb append replacement return sb
|
replace a given string with a different string
|
public void put entry in non cleared store object key object o non cleared store put key o
|
put an entry in the usersession that even survives login logouts from the
|
public void set locale locale locale identity environment set locale locale
|
sets the locale
|
public void set identity identity identity identity environment set identity identity
|
sets the identity
|
public void set roles roles roles identity environment set roles roles
|
sets the roles
|
public void value unbound http session binding event be try identity ident identity environment get identity user sessions cnt sign off and clear if tracing is debug enabled user session class tracing log debug closed user session identity ident null n a ident get name user session class catch exception e safely retrieve identity ident identity environment get identity tracing log error exception while session was unbound e user session class called by tomcat s timer thread we need to close since the next unbound will be called from the same tomcat thread finally dbfactory get instance false close session
|
called only when the servlet container tomcat invalidates the session
|
public string get user agent return user agent
|
get the user agent
|
public void set user agent string user agent this user agent user agent
|
set the user agent
|
public void visit all user request ureq do visit root ureq
|
do visit with specified root component at component traverser creation time
|
public void set last click time this timestmp system current time millis
|
record business relevant click time
|
public long get last click time return this timestmp
|
last time a business relevant click was made
|
public string encode byte binary data if binary data length 16 return null char buffer new char 32 for int i 0 i 16 i int low binary data i 0x0f int high binary data i 0xf0 4 buffer i 2 hexadecimal high buffer i 2 1 hexadecimal low return new string buffer
|
encodes the 128 bit 16 bytes md5 into a 32 character string
|
public void update info for integer node id bus listener info info synchronized node bus infos cluster ok node bus infos put node id info
|
overrides replace any previous buslistener info for the given node id
|
public string to string return mue com get command
|
should be overridden by subclasses for debug info
|
public set get listening identity names synchronized listeners cluster ok collection string c listeners values set string distinct ids new hash set string c return distinct ids
|
use only for administrative purposes
|
public void init if root config null throw new assert exception root config property must not be null root cache wrapper impl new cluster cache wrapper impl this this get class get name root config event bus register for this null ores this
|
used by spring
|
public void set event bus event bus event bus this event bus event bus
|
used by spring
|
public void set root config cache config root config this root config root config
|
used by spring
|
public void set cluster config cluster config cluster config this cluster config cluster config
|
used by spring
|
protected cache wrapper create child cache wrapper string child name cache config aconfig return new cache wrapper impl child name aconfig
|
creates a new child instance
|
public void set memory store eviction policy memory store eviction policy memory store eviction policy this memory store eviction policy memory store eviction policy
|
set the memory style eviction policy for this cache
|
public void set disk store path string disk store path this disk store path disk store path
|
set the location of temporary files for the disk store of this cache
|
public void set children config map string cache config children config this children config children config
|
used by spring
|
public cache delivery get cache for class owning class olatresourceable ores string subkey cache delivery cd string builder key new string builder if owning class null key append owning class get name key append if ores null key append ores get resourceable type name ores get resourceable id null values are ok todo faster key append if subkey null key append subkey string rkey key to string synchronized cache o cluster nok cd cache delivery cache get rkey if cd null gc ed create new cd new cache delivery impl cache put rkey cd return cd
|
get a cache delivery for the given attributes
|
public reference map get cache for admin only return cache
|
use for admin panel purposes only
|
public void set core settings core settings core settings this core settings core settings
|
used by spring
|
public void add item vfsitem vfs item children add vfs item
|
add a vfsitem to this cirtual container
|
protected void set basefile file new basefile basefile new basefile
|
used only to overcome the java rename bug
|
public int get number of images return number of images
|
returns the number of images in the examined file
|
public void add container vfscontainer container vfscontainer new container container if is container name taken new container get name string new name new container get name code helper get ramunique id new container new named container impl new name container new container set parent container this merged containers add new container
|
add container to this merge source
|
public void add containers children vfscontainer container boolean enable write container set parent container this merged containers children add container if enable write root write container container
|
add all children of this container to the root of this merge source
|
public void fire event to listeners of multi user event event olatresourceable ores do fire event ores
|
this impl directly fires the event to all listeners
|
public int get listening identity cnt for olatresourceable ores return get listening identity names for ores size
|
this imple simply counts the identities on this bus
|
public void release lock lock result lock result if the lock has not been acquired then nothing is to be released return silently to make cleaning up easier if lock result is success return lock entry le lock result impl lock result get lock entry release lock le
|
releases the lock
|
public void set cacher cacher cacher this cacher cacher
|
used by spring
|
private string create file system safe string representing olatresourceable ores return ores get resourceable type name ores get resourceable id
|
converts a olatresourceable to a file system safe string
|
public void set root dir string root dir this root dir root dir
|
used by spring
|
public object get synch lock for olatresourceable ores object synch lock string key ores get resourceable type name ores get resourceable id synchronized synch lock hashmap o clusterok since this class is only used by implementations of syncer and those provide correct singlevm cluster code synch lock synch lock hashmap get key if synch lock null synch lock new object synch lock hashmap put key synch lock end of synchronized return synch lock
|
only to be used by implementations of syncer
|
public void add child generic traversal node n if children add n throw new runtime exception duplicate child in list
|
add the child
|
public object get item return item
|
returns the item
|
public void set depth int depth this depth depth
|
sets the depth
|
public void set item object item this item item
|
sets the item
|
public int get visit number return visit number
|
returns the visit number
|
public void set visit number int visit number this visit number visit number
|
sets the visit number
|
public string to string return buffer to string
|
retrieve generated xml
|
public void write property string namespace string name string value write element namespace name opening buffer append value write element namespace name closing
|
write property to the xml
|
public void set virtual doc base vfsitem vfs item base vfs item
|
set the document root
|
public void write property string namespace string name write element namespace name no content
|
write property to the xml
|
public void set webdav provider list list webdav providers if webdav providers null throw new assert exception null value for webdav providers not allowed for iterator iter webdav providers iterator iter has next web davprovider provider web davprovider iter next add webdav provider provider
|
set the list of webdav providers
|
public void add webdav provider web davprovider provider if webdav providers null webdav providers new hash map if webdav providers contains key provider get mount point throw new assert exception may not add two providers with the same mount point webdav providers put provider get mount point provider tracing log info adding webdav mountpoint provider get mount point web davprovider factory class
|
add a new webdav provider
|
public void set doc base string doc base disabled for vfsdir context implementation throw new illegal argument exception set doc base string not supported by vfsdir context
|
set the document root
|
protected string normalize string s string builder str new string builder int len s null s length 0 for int i 0 i len i char ch s char at i switch ch case str append lt break case str append gt break case str append amp break case str append quot break case r case n if canonical str append str append integer to string ch str append break else default append char default str append ch return str to string normalize string string
|
normalizes the given string
|
public void set case sensitive boolean case sensitive this case sensitive case sensitive
|
set case sensitivity
|
public void set allow linking boolean allow linking this allow linking allow linking
|
set allow linking
|
public list get email to contact lists array list ret val new array list enumeration enumeration this contact lists elements while enumeration has more elements ret val add enumeration next element return ret val
|
a list with contact lists as elements is returned
|
public boolean get allow linking return allow linking
|
is linking allowed
|
public void update template from form mail template template template set subject template subject elem get value template set body template body elem get value
|
update the given templates with the values entered in the form
|
public void release case sensitive true allow linking false absolute base null base null super release
|
release any resources allocated for this directory context
|
public object lookup string name throws naming exception vfsitem item resolve file name if item null throw new naming exception smgr get string resources not found name if item instanceof vfscontainer vfsdir context temp context new vfsdir context env temp context set virtual doc base item return temp context else return new vfsresource item
|
retrieves the named object
|
public boolean is email prio institutional return email prio institutional
|
check the priority of the institutional mail is set
|
public void set email prio institutional boolean email prio institutional this email prio institutional email prio institutional
|
set the priority of the institutional mail
|
public void add string email address string emails put key from email address email address
|
contribute a contact as a string email address
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.