Package org.ametys.plugins.repository
Interface AmetysObjectFactory<A extends AmetysObject>
-
- Type Parameters:
A
- the actual type ofAmetysObject
s
- All Superinterfaces:
Component
- All Known Subinterfaces:
JCRAmetysObjectFactory<A>
,VirtualAmetysObjectFactory<A>
- All Known Implementing Classes:
AmetysObjectCollectionFactory
,BlogRootPageFactory
,CartContainerFactory
,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
,FirstLevelZoneFactory
,FirstLevelZoneItemFactory
,JCRCalendarEventFactory
,JCRCalendarFactory
,JCRCalendarResourceFactory
,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
,TransitionalZoneFactory
,TransitionalZoneItemFactory
,UGCPageFactory
,UGCTransitionalPageFactory
,UGCTransitionalZoneFactory
,UGCTransitionalZoneItemFactory
,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 A
getAmetysObjectById(String id)
String
getScheme()
Returns the protocol of this factory, used to construct unique ids.boolean
hasAmetysObjectForId(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.
-
-