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
Modifier and TypeClassDescriptionfinal class
final class
-
Constructor Summary
ConstructorDescriptionVelocityRtCache
(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
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.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
.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.
-
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.
-