Class OutgoingReferencesHelper
java.lang.Object
org.ametys.cms.content.references.OutgoingReferencesHelper
Helper for outgoing references
-
Method Summary
Modifier and TypeMethodDescriptionstatic javax.jcr.NodeIterator
Get content outgoing references to the contentstatic javax.jcr.NodeIterator
getContentOutgoingReferences
(JCRAmetysObject ametysObject, String type) Get content outgoing references to the Ametys Object
-
Method Details
-
getContentOutgoingReferences
public static javax.jcr.NodeIterator getContentOutgoingReferences(JCRAmetysObject content) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException Get content outgoing references to the content- Parameters:
content
- the content- Returns:
- the node iterator of outgoing references
- Throws:
javax.jcr.query.InvalidQueryException
- if a query error occurredjavax.jcr.RepositoryException
- if a repository error occurred
-
getContentOutgoingReferences
public static javax.jcr.NodeIterator getContentOutgoingReferences(JCRAmetysObject ametysObject, String type) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException Get content outgoing references to the Ametys Object- Parameters:
ametysObject
- the Ametys objecttype
- the type of relation (content, page, explorer, etc.)- Returns:
- the node iterator of outgoing references
- Throws:
javax.jcr.query.InvalidQueryException
- if a query error occurredjavax.jcr.RepositoryException
- if a repository error occurred
-