A - the actual type of AmetysObjectspublic interface JCRAmetysObjectFactory<A extends AmetysObject> extends AmetysObjectFactory<A>
AmetysObjectFactory manipulating objects backed by concrete JCR nodes.| Modifier and Type | Method and Description |
|---|---|
A |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
A |
getAmetysObjectById(String id,
Session session)
Retrieves an
AmetysObject with the provided JCR Session, given its id.Id are like <protocol>://<protocol-specific-part>. |
Collection<String> |
getNodetypes()
Returns the nodetypes of the
Node associated with this factory. |
getAmetysObjectById, getScheme, hasAmetysObjectForIdA getAmetysObjectById(String id, Session session) throws AmetysRepositoryException, RepositoryException
AmetysObject with the provided JCR Session, given its id.<protocol>://<protocol-specific-part>.id - the identifier.session - the JCR Session to use to retrieve the AmetysObject.AmetysObject.AmetysRepositoryException - if an error occurs.RepositoryException - if a JCR error occurs.A getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException, RepositoryException
AmetysObject from a persistent JCR node.node - the JCR node to use.parentPath - the parent Path in the Ametys hierarchy,
may be null if not known yet.AmetysRepositoryException - if an error occurs.RepositoryException - if a JCR error occurs.Collection<String> getNodetypes()
Node associated with this factory.Node.