Interface JCRAmetysObjectFactory<A extends AmetysObject>
-
- Type Parameters:
A
- the actual type ofAmetysObject
s
- All Superinterfaces:
AmetysObjectFactory<A>
,Component
- All Known Implementing Classes:
AmetysObjectCollectionFactory
,CartContainerFactory
,CartFactory
,CatalogFactory
,CategoryFactory
,CategoryFactory
,CMISTreeFactory
,CMSTagFactory
,ContainerFactory
,ContentBackupAmetysObjectFactory
,ContentFactory
,CourseFactory
,CourseListFactory
,CoursePartFactory
,DefaultAliasFactory
,DefaultAmetysObjectFactory
,DefaultDefinitionFactory
,DefaultLinkFactory
,DefaultLockableAmetysObjectFactory
,DefaultPageFactory
,DefaultSharedContentFactory
,DefaultThemeFactory
,DefaultTraversableAmetysObjectFactory
,DefaultWebContentFactory
,DefaultWorkflowAwareContentFactory
,DefaultZoneFactory
,DefaultZoneItemFactory
,JCRCalendarEventFactory
,JCRCalendarFactory
,JCRCalendarResourceFactory
,JCRPostFactory
,JCRProjectMemberFactory
,JCRResourceFactory
,JCRResourcesCollectionFactory
,JCRTaskFactory
,JCRTasksListFactory
,JCRThreadFactory
,JCRWorkflowFactory
,JCRWorkflowProcessFactory
,KeywordFactory
,ModifiableContentFactory
,ModifiableDefaultWebContentFactory
,OrgUnitFactory
,PersonFactory
,ProgramFactory
,ProgramPartFactory
,ProjectFactory
,ProjectTagFactory
,QueryContainerFactory
,QueryFactory
,RootAmetysObjectFactory
,SimpleAmetysObjectFactory
,SiteFactory
,SitemapFactory
,SubProgramFactory
,SurveyElementFactory
,SurveyFactory
,SurveyPageFactory
,SurveyQuestionFactory
,TagFactory
,ThemeFactory
,ThesaurusFactory
,VersionComponentFactory
,VersionFactory
,VersionsFactory
public interface JCRAmetysObjectFactory<A extends AmetysObject> extends AmetysObjectFactory<A>
AmetysObjectFactory
manipulating objects backed by concrete JCR nodes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description A
getAmetysObject(Node node, String parentPath)
Creates aAmetysObject
from a persistent JCR node.A
getAmetysObjectById(String id, Session session)
Retrieves anAmetysObject
with the provided JCR Session, given its id.
Id are like<protocol>://<protocol-specific-part>
.Collection<String>
getNodetypes()
Returns the nodetypes of theNode
associated with this factory.-
Methods inherited from interface org.ametys.plugins.repository.AmetysObjectFactory
getAmetysObjectById, getScheme, hasAmetysObjectForId
-
-
-
-
Method Detail
-
getAmetysObjectById
A getAmetysObjectById(String id, Session session) throws AmetysRepositoryException, RepositoryException
Retrieves anAmetysObject
with the provided JCR Session, given its id.
Id are like<protocol>://<protocol-specific-part>
.- Parameters:
id
- the identifier.session
- the JCR Session to use to retrieve theAmetysObject
.- Returns:
- the corresponding
AmetysObject
. - Throws:
AmetysRepositoryException
- if an error occurs.RepositoryException
- if a JCR error occurs.
-
getAmetysObject
A getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException, RepositoryException
Creates aAmetysObject
from a persistent JCR node.- Parameters:
node
- the JCR node to use.parentPath
- the parent Path in the Ametys hierarchy, may benull
if not known yet.- Returns:
- the object.
- Throws:
AmetysRepositoryException
- if an error occurs.RepositoryException
- if a JCR error occurs.
-
getNodetypes
Collection<String> getNodetypes()
Returns the nodetypes of theNode
associated with this factory.- Returns:
- the nodetypes of the
Node
.
-
-