- Type Parameters:
A
- the actual type of AmetysObject
s
- All Superinterfaces:
AmetysObjectFactory<A>
, Component
- All Known Implementing Classes:
AbstractColorableCMSTagFactory
, AbstractSitemapElementFactory
, ActivityFactory
, AmetysObjectCollectionFactory
, CartContainerFactory
, CartFactory
, CatalogFactory
, CategoryFactory
, CategoryFactory
, CMISTreeFactory
, CMSTagFactory
, ContainerFactory
, ContentBackupAmetysObjectFactory
, ContentConsistencyResultFactory
, ContentFactory
, CourseFactory
, CourseListFactory
, CoursePartFactory
, DefaultActivityHolderFactory
, DefaultAliasFactory
, DefaultAmetysObjectFactory
, DefaultDefinitionFactory
, DefaultLinkFactory
, DefaultLockableAmetysObjectFactory
, DefaultPageFactory
, DefaultSharedContentFactory
, DefaultThemeFactory
, DefaultTraversableAmetysObjectFactory
, DefaultWebContentFactory
, DefaultWorkflowAwareContentFactory
, DefaultZoneFactory
, DefaultZoneItemFactory
, FormDirectoryFactory
, FormEntryFactory
, FormFactory
, FormPageFactory
, FormPageRuleFactory
, FormQuestionFactory
, JCRCalendarEventFactory
, JCRCalendarFactory
, JCRCalendarResourceFactory
, JCRPostFactory
, JCRProjectMemberFactory
, JCRResourceFactory
, JCRResourcesCollectionFactory
, JCRTaskFactory
, JCRTasksListFactory
, JCRThreadFactory
, 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
-
Method Summary
Retrieves an
AmetysObject
with the provided JCR Session, given its id.
Id are like
<protocol>://<protocol-specific-part>
.
Returns the nodetypes of the Node
associated with this factory.
-
Method Details
-
getAmetysObjectById
Retrieves an
AmetysObject
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 the AmetysObject
.
- Returns:
- the corresponding
AmetysObject
.
- Throws:
AmetysRepositoryException
- if an error occurs.
javax.jcr.RepositoryException
- if a JCR error occurs.
-
getAmetysObject
- Parameters:
node
- the JCR node to use.
parentPath
- the parent Path in the Ametys hierarchy,
may be null
if not known yet.
- Returns:
- the object.
- Throws:
AmetysRepositoryException
- if an error occurs.
javax.jcr.RepositoryException
- if a JCR error occurs.
-
getNodetypes
Returns the nodetypes of the Node
associated with this factory.
- Returns:
- the nodetypes of the
Node
.