Package org.ametys.plugins.repository
Interface AmetysObjectFactory<A extends AmetysObject>
- Type Parameters:
A- the actual type ofAmetysObjects
- All Superinterfaces:
Component
- All Known Subinterfaces:
JCRAmetysObjectFactory<A>,VirtualAmetysObjectFactory<A>
- All Known Implementing Classes:
AbstractColorableCMSTagFactory,AbstractSitemapElementFactory,ActivityFactory,AmetysObjectCollectionFactory,CartContainerFactory,CartFactory,CatalogFactory,CategoryFactory,CategoryFactory,CMISTreeFactory,CMSTagFactory,ContainerFactory,ContentBackupAmetysObjectFactory,ContentConsistencyResultFactory,ContentFactory,CourseFactory,CourseListFactory,CoursePageFactory,CoursePartFactory,CourseZoneFactory,CourseZoneItemFactory,DefaultActivityHolderFactory,DefaultAliasFactory,DefaultAmetysObjectFactory,DefaultDefinitionFactory,DefaultLinkFactory,DefaultLockableAmetysObjectFactory,DefaultPageFactory,DefaultSharedContentFactory,DefaultThemeFactory,DefaultTraversableAmetysObjectFactory,DefaultWebContentFactory,DefaultWorkflowAwareContentFactory,DefaultZoneFactory,DefaultZoneItemFactory,FirstLevelPageFactory,FirstLevelZoneFactory,FirstLevelZoneItemFactory,FormDirectoryFactory,FormEntryFactory,FormFactory,FormPageFactory,FormPageRuleFactory,FormQuestionFactory,JCRCalendarEventFactory,JCRCalendarFactory,JCRCalendarResourceFactory,JCRPostFactory,JCRProjectMemberFactory,JCRResourceFactory,JCRResourcesCollectionFactory,JCRTaskFactory,JCRTasksListFactory,JCRThreadFactory,KeywordFactory,ModifiableContentFactory,ModifiableDefaultWebContentFactory,OrgUnitFactory,OrgUnitPageFactory,OrgUnitZoneFactory,OrgUnitZoneItemFactory,PersonFactory,ProgramFactory,ProgramPageFactory,ProgramPartFactory,ProgramZoneFactory,ProgramZoneItemFactory,ProjectFactory,ProjectTagFactory,QueryContainerFactory,QueryFactory,RootAmetysObjectFactory,SecondLevelPageFactory,SimpleAmetysObjectFactory,SiteFactory,SitemapFactory,SubProgramFactory,SurveyElementFactory,SurveyFactory,SurveyPageFactory,SurveyQuestionFactory,TagFactory,ThemeFactory,ThesaurusFactory,TransitionalPageFactory,TransitionalZoneFactory,TransitionalZoneItemFactory,UGCPageFactory,UGCTransitionalPageFactory,UGCTransitionalZoneFactory,UGCTransitionalZoneItemFactory,UGCZoneFactory,UGCZoneItemFactory,UserPageFactory,UserZoneFactory,UserZoneItemFactory,VersionComponentFactory,VersionFactory,VersionsFactory,VirtualOrganisationChartPageFactory,VirtualUGCPageFactory,VirtualUserDirectoryPageFactory
Factory for retrieving type of
AmetysObject.-
Method Summary
Modifier and TypeMethodDescriptionReturns the protocol of this factory, used to construct unique ids.booleanReturn true if the specified id correspond to an existingAmetysObject.
-
Method Details
-
getAmetysObjectById
- Parameters:
id- the identifier.- Returns:
- the corresponding
AmetysObject. - Throws:
AmetysRepositoryException- if an error occurs.
-
hasAmetysObjectForId
Return true if the specified id correspond to an existingAmetysObject. Id are like<protocol>://<protocol-specific-part>.- Parameters:
id- the identifier.- Returns:
- true if the specified id correspond to an existing
AmetysObject. - Throws:
AmetysRepositoryException- if an error occurs.
-
getScheme
Returns the protocol of this factory, used to construct unique ids.- Returns:
- the protocol of this factory.
-