Interface JCRAmetysObjectFactory<A extends AmetysObject>
-
- Type Parameters:
A- the actual type ofAmetysObjects
- All Superinterfaces:
AmetysObjectFactory<A>,Component
- All Known Implementing Classes:
AmetysObjectCollectionFactory,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,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,SubscribersListFactory,SurveyElementFactory,SurveyFactory,SurveyPageFactory,SurveyQuestionFactory,TagFactory,ThesaurusFactory,VersionComponentFactory,VersionFactory,VersionsFactory
public interface JCRAmetysObjectFactory<A extends AmetysObject> extends AmetysObjectFactory<A>
AmetysObjectFactorymanipulating objects backed by concrete JCR nodes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AgetAmetysObject(Node node, String parentPath)Creates aAmetysObjectfrom a persistent JCR node.AgetAmetysObjectById(String id, Session session)Retrieves anAmetysObjectwith the provided JCR Session, given its id.
Id are like<protocol>://<protocol-specific-part>.Collection<String>getNodetypes()Returns the nodetypes of theNodeassociated 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 anAmetysObjectwith 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 aAmetysObjectfrom a persistent JCR node.- Parameters:
node- the JCR node to use.parentPath- the parent Path in the Ametys hierarchy, may benullif 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 theNodeassociated with this factory.- Returns:
- the nodetypes of the
Node.
-
-