Interface VirtualAmetysObjectFactory<A extends AmetysObject>
- Type Parameters:
A
- the actual type ofAmetysObject
s
- All Superinterfaces:
AmetysObjectFactory<A>
,Component
- All Known Implementing Classes:
FirstLevelPageFactory
,VirtualOrganisationChartPageFactory
,VirtualUGCPageFactory
,VirtualUserDirectoryPageFactory
AmetysObjectFactory
for handling "virtual" objects, in that they did
not rely directly to the JCR storage.Such factory is bounded to an object through a particular property in the JCR tree.
Virtual
AmetysObject
handled by a VirtualAmetysObjectFactory
are considered as children of the JCRAmetysObject
corresponding to the JCR Node holding that property.-
Method Summary
Modifier and TypeMethodDescriptiongetChild
(JCRAmetysObject parent, String childName) Returns a namedAmetysObject
.getChildren
(JCRAmetysObject parent) Returns the "root" objects of this virtual factory, hosted in the Ametys hierarchy under aTraversableAmetysObject
, which is backed by a concrete JCR Node.boolean
hasChild
(JCRAmetysObject parent, String childName) Returns true if the namedAmetysObject
exists.Methods inherited from interface org.ametys.plugins.repository.AmetysObjectFactory
getAmetysObjectById, getScheme, hasAmetysObjectForId
-
Method Details
-
getChildren
Returns the "root" objects of this virtual factory, hosted in the Ametys hierarchy under aTraversableAmetysObject
, which is backed by a concrete JCR Node.- Parameters:
parent
- theJCRAmetysObject
"hosting" this factory.- Returns:
- the root objects of this virtual factory.
-
getChild
Returns a namedAmetysObject
.- Parameters:
parent
- theJCRAmetysObject
"hosting" this factory.childName
- the name of the virtual child.- Returns:
- the corresponding
AmetysObject
.
-
hasChild
Returns true if the namedAmetysObject
exists.- Parameters:
parent
- theJCRAmetysObject
"hosting" this factory.childName
- the name of the virtual child.- Returns:
- true if the named
AmetysObject
exists.
-