org.nuxeo.ecm.platform.relations.web.listener.ejb
Class RelationActionsBean
java.lang.Object
org.nuxeo.ecm.platform.ui.web.invalidations.DocumentContextBoundActionBean
org.nuxeo.ecm.platform.relations.web.listener.ejb.RelationActionsBean
- All Implemented Interfaces:
- Serializable, RelationActions
@Name(value="relationActions")
@Scope(value=CONVERSATION)
public class RelationActionsBean
- extends DocumentContextBoundActionBean
- implements RelationActions, Serializable
Seam component that manages statements involving current document as well as
creation, edition and deletion of statements involving current document.
Current document is the subject of the relation. The predicate is resolved
thanks to a list of predicates URIs. The object is resolved using a type
(literal, resource, qname resource), an optional namespace (for qname
resources) and a value.
- Author:
- Anahide Tchertchian
- See Also:
- Serialized Form
RelationActionsBean
public RelationActionsBean()
getDocumentModel
public DocumentModel getDocumentModel(Node node)
throws ClientException
- Specified by:
getDocumentModel
in interface RelationActions
- Throws:
ClientException
getDocumentResource
public QNameResource getDocumentResource(DocumentModel document)
throws ClientException
- Specified by:
getDocumentResource
in interface RelationActions
- Throws:
ClientException
getIncomingStatementsInfo
@Factory(value="currentDocumentIncomingRelations",
scope=EVENT)
public List<StatementInfo> getIncomingStatementsInfo()
throws ClientException
- Specified by:
getIncomingStatementsInfo
in interface RelationActions
- Throws:
ClientException
getOutgoingStatementsInfo
@Factory(value="currentDocumentOutgoingRelations",
scope=EVENT)
public List<StatementInfo> getOutgoingStatementsInfo()
throws ClientException
- Specified by:
getOutgoingStatementsInfo
in interface RelationActions
- Throws:
ClientException
resetStatements
public void resetStatements()
- Specified by:
resetStatements
in interface RelationActions
getComment
public String getComment()
- Specified by:
getComment
in interface RelationActions
setComment
public void setComment(String comment)
- Specified by:
setComment
in interface RelationActions
getObjectDocumentTitle
public String getObjectDocumentTitle()
- Specified by:
getObjectDocumentTitle
in interface RelationActions
setObjectDocumentTitle
public void setObjectDocumentTitle(String objectDocumentTitle)
- Specified by:
setObjectDocumentTitle
in interface RelationActions
getObjectDocumentUid
public String getObjectDocumentUid()
- Specified by:
getObjectDocumentUid
in interface RelationActions
setObjectDocumentUid
public void setObjectDocumentUid(String objectDocumentUid)
- Specified by:
setObjectDocumentUid
in interface RelationActions
getObjectLiteralValue
public String getObjectLiteralValue()
- Specified by:
getObjectLiteralValue
in interface RelationActions
setObjectLiteralValue
public void setObjectLiteralValue(String objectLiteralValue)
- Specified by:
setObjectLiteralValue
in interface RelationActions
getObjectType
public String getObjectType()
- Specified by:
getObjectType
in interface RelationActions
setObjectType
public void setObjectType(String objectType)
- Specified by:
setObjectType
in interface RelationActions
getObjectUri
public String getObjectUri()
- Specified by:
getObjectUri
in interface RelationActions
setObjectUri
public void setObjectUri(String objectUri)
- Specified by:
setObjectUri
in interface RelationActions
getPredicateUri
public String getPredicateUri()
- Specified by:
getPredicateUri
in interface RelationActions
setPredicateUri
public void setPredicateUri(String predicateUri)
- Specified by:
setPredicateUri
in interface RelationActions
addStatement
public String addStatement()
throws ClientException
- Specified by:
addStatement
in interface RelationActions
- Throws:
ClientException
toggleCreateForm
public void toggleCreateForm(ActionEvent event)
- Specified by:
toggleCreateForm
in interface RelationActions
deleteStatement
public String deleteStatement(StatementInfo stmtInfo)
throws ClientException
- Specified by:
deleteStatement
in interface RelationActions
- Throws:
ClientException
getShowCreateForm
public Boolean getShowCreateForm()
- Specified by:
getShowCreateForm
in interface RelationActions
Copyright © 2011 Nuxeo SAS. All Rights Reserved.