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:
AmetysObjectCollectionFactory,BlogRootPageFactory,CartFactory,CatalogFactory,CategoryFactory,CategoryFactory,CMISTreeFactory,CMSTagFactory,ContainerFactory,ContentBackupAmetysObjectFactory,ContentFactory,CourseFactory,CourseListFactory,CoursePageFactory,CoursePartFactory,CourseZoneFactory,CourseZoneItemFactory,DefaultAliasFactory,DefaultAmetysObjectFactory,DefaultDefinitionFactory,DefaultLinkFactory,DefaultLockableAmetysObjectFactory,DefaultPageFactory,DefaultSharedContentFactory,DefaultThemeFactory,DefaultTraversableAmetysObjectFactory,DefaultWebContentFactory,DefaultWorkflowAwareContentFactory,DefaultZoneFactory,DefaultZoneItemFactory,FirstLevelPageFactory,JCRCalendarEventFactory,JCRCalendarFactory,JCRPostFactory,JCRProjectMemberFactory,JCRResourceFactory,JCRResourcesCollectionFactory,JCRTaskFactory,JCRTasksListFactory,JCRThreadFactory,JCRWorkflowFactory,JCRWorkflowProcessFactory,KeywordFactory,ModifiableContentFactory,ModifiableDefaultWebContentFactory,OrgUnitFactory,OrgUnitPageFactory,OrgUnitZoneFactory,OrgUnitZoneItemFactory,PersonFactory,PostListZoneFactory,PostListZoneItemFactory,PostZoneFactory,PostZoneItemFactory,ProgramFactory,ProgramPageFactory,ProgramPartFactory,ProgramZoneFactory,ProgramZoneItemFactory,ProjectFactory,ProjectTagFactory,QueryContainerFactory,QueryFactory,RootAmetysObjectFactory,SecondLevelPageFactory,SimpleAmetysObjectFactory,SiteFactory,SitemapFactory,SubProgramFactory,SurveyElementFactory,SurveyFactory,SurveyPageFactory,SurveyQuestionFactory,TagFactory,ThemeFactory,ThesaurusFactory,TransitionalPageFactory,UGCPageFactory,UGCTransitionalPageFactory,UGCZoneFactory,UGCZoneItemFactory,UserPageFactory,UserZoneFactory,UserZoneItemFactory,VersionComponentFactory,VersionFactory,VersionsFactory,VirtualMonthPageFactory,VirtualOrganisationChartPageFactory,VirtualPostPageFactory,VirtualTagPageFactory,VirtualUGCPageFactory,VirtualUserDirectoryPageFactory,VirtualYearPageFactory
public interface AmetysObjectFactory<A extends AmetysObject> extends Component
Factory for retrieving type ofAmetysObject.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AgetAmetysObjectById(String id)StringgetScheme()Returns the protocol of this factory, used to construct unique ids.booleanhasAmetysObjectForId(String id)Return true if the specified id correspond to an existingAmetysObject.
-
-
-
Method Detail
-
getAmetysObjectById
A getAmetysObjectById(String id) throws AmetysRepositoryException
- Parameters:
id- the identifier.- Returns:
- the corresponding
AmetysObject. - Throws:
AmetysRepositoryException- if an error occurs.
-
hasAmetysObjectForId
boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
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.
-
-