Class VelocityRtCache
java.lang.Object
de.uplanet.lucy.server.rtcache.scripting.velocity.VelocityRtCache
@VelocityVariable("RtCache")
@VelocityCallable("instance")
public final class VelocityRtCache
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classfinal class -
Constructor Summary
ConstructorsConstructorDescriptionVelocityRtCache(de.uplanet.lucy.server.rtcache.IRtCacheProvider p_rtCacheProvider, de.uplanet.lucy.server.i18n.ILanguageConstantsProvider p_languageConstantsProvider, String p_strDefaultLanguage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsApplication(String p_strGuid) Check if the application with the given unique identifier exists.booleanexistsControl(String p_strGuid) Check if the control with the given unique identifier exists.booleanexistsDataGroup(String p_strGuid) Check if the data group with the given unique identifier exists.booleanexistsDataRangeChildControl(String p_strGuid) Check if the data range with the given unique identifier exists.booleanexistsDataRangeControl(String p_strGuid) Check if the data range with the given unique identifier exists.booleanexistsField(String p_strGuid) Check if the field with the given unique identifier exists.booleanexistsPage(String p_strGuid) Check if the page with the given unique identifier exists.booleanexistsReference(String p_strGuid) Check if the reference with the given unique identifier exists.getApplication(String p_strGuid) Get the application with the given unique identifier.Get all applications.getApplications(IFilter<ApplicationInfo> p_filter) Get applications that match a given filter.getControl(String p_strGuid) Get the control with the given unique identifier.Get all controls.getControls(IFilter<ControlInfo> p_filter) Get allControlInfoobjects that are accepted by the given filter.getDataGroup(String p_strGuid) Get the data group with the given unique identifier.Get all data groups.getDataGroups(IFilter<DataGroupInfo> p_filter) Get data groups that match a given filter.de.uplanet.lucy.server.rtcache.DataRangeChildControlInfogetDataRangeChildControl(String p_strGuid) Get the data range child control with the given unique identifier.List<de.uplanet.lucy.server.rtcache.DataRangeChildControlInfo> getDataRangeChildControlInfos(IFilter<de.uplanet.lucy.server.rtcache.DataRangeChildControlInfo> p_filter) Get data range controls that match a given filter.Get all data groups.de.uplanet.lucy.server.rtcache.DataRangeControlInfogetDataRangeControl(String p_strGuid) Get the data range control with the given unique identifier.List<de.uplanet.lucy.server.rtcache.DataRangeControlInfo> getDataRangeControlInfos(IFilter<de.uplanet.lucy.server.rtcache.DataRangeControlInfo> p_filter) Get data range controls that match a given filter.Get all data groups.Get the field with the given unique identifier.Get all fields.Get allFieldInfoobjects that are accepted by the given filter.Get an object to create different types of filters.getFirstApplication(IFilter<ApplicationInfo> p_filter) Get first application that matches a given filter.getFirstControl(IFilter<ControlInfo> p_filter) Get the firstControlInfoobject that is accepted by the given filter.getFirstDataGroup(IFilter<DataGroupInfo> p_filter) Get first data group that matchesIFilter.de.uplanet.lucy.server.rtcache.DataRangeChildControlInfogetFirstDataRangeChildControl(IFilter<de.uplanet.lucy.server.rtcache.DataRangeChildControlInfo> p_filter) Get first data range child control that matchesIFilter.de.uplanet.lucy.server.rtcache.DataRangeControlInfogetFirstDataRangeControl(IFilter<de.uplanet.lucy.server.rtcache.DataRangeControlInfo> p_filter) Get first data range control that matchesIFilter.getFirstField(IFilter<FieldInfo> p_filter) Get the firstFieldInfoobject that is accepted by the given filter.getFirstPage(IFilter<PageInfo> p_filter) Get the firstPageInfoobject that is accepted by the given filter.getFirstReference(IFilter<ReferenceInfo> p_filter) Get the firstReferenceInfoobject that is accepted by the given filter.getOrder()Get an object to create different types of comparators.Get the page with the given unique identifier.getPages()Get all pages.Get allPageInfoobjects that are accepted by the given filter.getReference(String p_strGuid) Get the reference with the given unique identifier.Get all references.getReferences(IFilter<ReferenceInfo> p_filter) Get allReferenceInfoobjects that are accepted by the given filter.
-
Constructor Details
-
VelocityRtCache
public VelocityRtCache(de.uplanet.lucy.server.rtcache.IRtCacheProvider p_rtCacheProvider, de.uplanet.lucy.server.i18n.ILanguageConstantsProvider p_languageConstantsProvider, String p_strDefaultLanguage)
-
-
Method Details
-
getFilter
Get an object to create different types of filters.Example
$RtCache.filter.application.getAccessible() $RtCache.filter.page.getByApplication("<app-guid>")- Returns:
- An object to create filters.
-
getOrder
Get an object to create different types of comparators.Example
$RtCache.order.titled.getAscending("de")- Returns:
- An object to create comparators.
-
getApplications
Get all applications.- Returns:
- A map that contains all applications.
-
existsApplication
Check if the application with the given unique identifier exists.- Parameters:
p_strGuid- The application's unique identifier.- Returns:
trueif the application exists, orfalseotherwise.
-
getApplication
Get the application with the given unique identifier.- Parameters:
p_strGuid- The application's unique identifier.- Returns:
- The requested application, or
nullif it was not found.
-
getFirstApplication
Get first application that matches a given filter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
ApplicationInfolist from first matching application.
-
getApplications
Get applications that match a given filter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
ApplicationInfolist of applications that matched the filter.
-
getDataGroups
Get all data groups.- Returns:
- a map of all data groups.
-
existsDataGroup
Check if the data group with the given unique identifier exists.- Parameters:
p_strGuid- The data group's unique identifier.- Returns:
trueif the data group exists, orfalseotherwise.
-
getDataGroup
Get the data group with the given unique identifier.- Parameters:
p_strGuid- The data group's unique identifier.- Returns:
- The requested data group, or
nullif it was not found.
-
getFirstDataGroup
Get first data group that matchesIFilter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
DataGroupInfolist of first matching data group.
-
getDataGroups
Get data groups that match a given filter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
DataGroupInfolist of data groups that matched the filter.
-
getDataRangeControls
Get all data groups.- Returns:
- a map of all data ranges.
-
existsDataRangeControl
Check if the data range with the given unique identifier exists.- Parameters:
p_strGuid- The data range 's unique identifier.- Returns:
trueif the data range exists, orfalseotherwise.
-
getDataRangeControl
Get the data range control with the given unique identifier.- Parameters:
p_strGuid- The data range control's unique identifier.- Returns:
- The requested data range control, or
nullif it was not found.
-
getFirstDataRangeControl
public de.uplanet.lucy.server.rtcache.DataRangeControlInfo getFirstDataRangeControl(IFilter<de.uplanet.lucy.server.rtcache.DataRangeControlInfo> p_filter) Get first data range control that matchesIFilter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
DataRangeControlInfolist of first matching data range control.
-
getDataRangeControlInfos
public List<de.uplanet.lucy.server.rtcache.DataRangeControlInfo> getDataRangeControlInfos(IFilter<de.uplanet.lucy.server.rtcache.DataRangeControlInfo> p_filter) Get data range controls that match a given filter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
DataRangeControlInfolist of data range controls that matched the filter.
-
getDataRangeChildControls
public Map<String,de.uplanet.lucy.server.rtcache.DataRangeChildControlInfo> getDataRangeChildControls()Get all data groups.- Returns:
- a map of all data ranges.
-
existsDataRangeChildControl
Check if the data range with the given unique identifier exists.- Parameters:
p_strGuid- The data range 's unique identifier.- Returns:
trueif the data range exists, orfalseotherwise.
-
getDataRangeChildControl
public de.uplanet.lucy.server.rtcache.DataRangeChildControlInfo getDataRangeChildControl(String p_strGuid) Get the data range child control with the given unique identifier.- Parameters:
p_strGuid- The data range child control's unique identifier.- Returns:
- The requested data range child control, or
nullif it was not found.
-
getFirstDataRangeChildControl
public de.uplanet.lucy.server.rtcache.DataRangeChildControlInfo getFirstDataRangeChildControl(IFilter<de.uplanet.lucy.server.rtcache.DataRangeChildControlInfo> p_filter) Get first data range child control that matchesIFilter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
DataRangeChildControlInfolist of first matching data range child control.
-
getDataRangeChildControlInfos
public List<de.uplanet.lucy.server.rtcache.DataRangeChildControlInfo> getDataRangeChildControlInfos(IFilter<de.uplanet.lucy.server.rtcache.DataRangeChildControlInfo> p_filter) Get data range controls that match a given filter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
DataRangeControlInfolist of data range controls that matched the filter.
-
getFields
Get all fields.- Returns:
- a map of all fields.
-
existsField
Check if the field with the given unique identifier exists.- Parameters:
p_strGuid- The field's unique identifier.- Returns:
trueif the field exists, orfalseotherwise.
-
getField
Get the field with the given unique identifier.- Parameters:
p_strGuid- The field's unique identifier.- Returns:
- The requested field, or
nullif it was not found.
-
getFirstField
Get the firstFieldInfoobject that is accepted by the given filter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
- A matching
FieldInfoobject, ornullif no match was found.
-
getFields
Get allFieldInfoobjects that are accepted by the given filter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
- The
FieldInfoobjects that are accepted by the given filter.
-
getPages
Get all pages.- Returns:
- A map of all pages.
-
existsPage
Check if the page with the given unique identifier exists.- Parameters:
p_strGuid- The unique identifier of the page.- Returns:
trueif the page exists, orfalseotherwise.
-
getPage
Get the page with the given unique identifier.- Parameters:
p_strGuid- The page's unique identifier.- Returns:
- The requested page, or
nullif it was not found.
-
getFirstPage
Get the firstPageInfoobject that is accepted by the given filter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
- A matching
PageInfoobject, ornullif no match was found.
-
getPages
Get allPageInfoobjects that are accepted by the given filter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
- The
PageInfoobjects that are accepted by the given filter.
-
getControls
Get all controls.- Returns:
- A map of all controls.
-
existsControl
Check if the control with the given unique identifier exists.- Parameters:
p_strGuid- The unique identifier of the control.- Returns:
trueif the control exists, orfalseotherwise.
-
getControl
Get the control with the given unique identifier.- Parameters:
p_strGuid- The control's unique identifier.- Returns:
- The requested control, or
nullif it was not found.
-
getFirstControl
Get the firstControlInfoobject that is accepted by the given filter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
- A matching
ControlInfoobject, ornullif no match was found.
-
getControls
Get allControlInfoobjects that are accepted by the given filter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
- The
ControlInfoobjects that are accepted by the given filter.
-
getReferences
Get all references.- Returns:
- A map of all refernces.
-
existsReference
Check if the reference with the given unique identifier exists.- Parameters:
p_strGuid- The unique identifier of the reference.- Returns:
trueif the reference exists, orfalseotherwise.
-
getReference
Get the reference with the given unique identifier.- Parameters:
p_strGuid- The reference's unique identifier.- Returns:
- The requested reference, or
nullif it was not found.
-
getFirstReference
Get the firstReferenceInfoobject that is accepted by the given filter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
- A matching
ReferenceInfoobject, ornullif no match was found.
-
getReferences
Get allReferenceInfoobjects that are accepted by the given filter.- Parameters:
p_filter- The filter to be applied (seede.uplanet.lucy.server.auxiliaries.ObjectFactory#createFilter(String)).- Returns:
- The
ReferenceInfoobjects that are accepted by the given filter.
-