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 class
final 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 TypeMethodDescriptionboolean
existsApplication
(String p_strGuid) Check if the application with the given unique identifier exists.boolean
existsControl
(String p_strGuid) Check if the control with the given unique identifier exists.boolean
existsDataGroup
(String p_strGuid) Check if the data group with the given unique identifier exists.boolean
existsDataRangeChildControl
(String p_strGuid) Check if the data range with the given unique identifier exists.boolean
existsDataRangeControl
(String p_strGuid) Check if the data range with the given unique identifier exists.boolean
existsField
(String p_strGuid) Check if the field with the given unique identifier exists.boolean
existsPage
(String p_strGuid) Check if the page with the given unique identifier exists.boolean
existsReference
(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 allControlInfo
objects 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.DataRangeChildControlInfo
getDataRangeChildControl
(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.DataRangeControlInfo
getDataRangeControl
(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 allFieldInfo
objects 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 firstControlInfo
object that is accepted by the given filter.getFirstDataGroup
(IFilter<DataGroupInfo> p_filter) Get first data group that matchesIFilter
.de.uplanet.lucy.server.rtcache.DataRangeChildControlInfo
getFirstDataRangeChildControl
(IFilter<de.uplanet.lucy.server.rtcache.DataRangeChildControlInfo> p_filter) Get first data range child control that matchesIFilter
.de.uplanet.lucy.server.rtcache.DataRangeControlInfo
getFirstDataRangeControl
(IFilter<de.uplanet.lucy.server.rtcache.DataRangeControlInfo> p_filter) Get first data range control that matchesIFilter
.getFirstField
(IFilter<FieldInfo> p_filter) Get the firstFieldInfo
object that is accepted by the given filter.getFirstPage
(IFilter<PageInfo> p_filter) Get the firstPageInfo
object that is accepted by the given filter.getFirstReference
(IFilter<ReferenceInfo> p_filter) Get the firstReferenceInfo
object 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 allPageInfo
objects 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 allReferenceInfo
objects 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:
true
if the application exists, orfalse
otherwise.
-
getApplication
Get the application with the given unique identifier.- Parameters:
p_strGuid
- The application's unique identifier.- Returns:
- The requested application, or
null
if 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:
ApplicationInfo
list 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:
ApplicationInfo
list 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:
true
if the data group exists, orfalse
otherwise.
-
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
null
if 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:
DataGroupInfo
list 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:
DataGroupInfo
list 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:
true
if the data range exists, orfalse
otherwise.
-
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
null
if 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:
DataRangeControlInfo
list 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:
DataRangeControlInfo
list 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:
true
if the data range exists, orfalse
otherwise.
-
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
null
if 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:
DataRangeChildControlInfo
list 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:
DataRangeControlInfo
list 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:
true
if the field exists, orfalse
otherwise.
-
getField
Get the field with the given unique identifier.- Parameters:
p_strGuid
- The field's unique identifier.- Returns:
- The requested field, or
null
if it was not found.
-
getFirstField
Get the firstFieldInfo
object 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
FieldInfo
object, ornull
if no match was found.
-
getFields
Get allFieldInfo
objects 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
FieldInfo
objects 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:
true
if the page exists, orfalse
otherwise.
-
getPage
Get the page with the given unique identifier.- Parameters:
p_strGuid
- The page's unique identifier.- Returns:
- The requested page, or
null
if it was not found.
-
getFirstPage
Get the firstPageInfo
object 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
PageInfo
object, ornull
if no match was found.
-
getPages
Get allPageInfo
objects 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
PageInfo
objects 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:
true
if the control exists, orfalse
otherwise.
-
getControl
Get the control with the given unique identifier.- Parameters:
p_strGuid
- The control's unique identifier.- Returns:
- The requested control, or
null
if it was not found.
-
getFirstControl
Get the firstControlInfo
object 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
ControlInfo
object, ornull
if no match was found.
-
getControls
Get allControlInfo
objects 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
ControlInfo
objects 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:
true
if the reference exists, orfalse
otherwise.
-
getReference
Get the reference with the given unique identifier.- Parameters:
p_strGuid
- The reference's unique identifier.- Returns:
- The requested reference, or
null
if it was not found.
-
getFirstReference
Get the firstReferenceInfo
object 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
ReferenceInfo
object, ornull
if no match was found.
-
getReferences
Get allReferenceInfo
objects 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
ReferenceInfo
objects that are accepted by the given filter.
-