@Name(value="relationActions") @Scope(value=CONVERSATION) public class RelationActionsBean extends DocumentContextBoundActionBean implements RelationActions, Serializable
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.
SEARCH_DOCUMENT_LIST
Constructor and Description |
---|
RelationActionsBean() |
Modifier and Type | Method and Description |
---|---|
String |
addStatement() |
String |
deleteStatement(StatementInfo stmtInfo) |
String |
getComment() |
DocumentModel |
getDocumentModel(Node node) |
QNameResource |
getDocumentResource(DocumentModel document) |
List<StatementInfo> |
getIncomingStatementsInfo() |
String |
getObjectDocumentTitle() |
String |
getObjectDocumentUid() |
String |
getObjectLiteralValue() |
String |
getObjectType() |
String |
getObjectUri() |
List<StatementInfo> |
getOutgoingStatementsInfo() |
Boolean |
getPopupDisplayed() |
String |
getPredicateUri() |
Boolean |
getShowCreateForm() |
void |
resetStatements() |
void |
setComment(String comment) |
void |
setObjectDocumentTitle(String objectDocumentTitle) |
void |
setObjectDocumentUid(String objectDocumentUid) |
void |
setObjectLiteralValue(String objectLiteralValue) |
void |
setObjectType(String objectType) |
void |
setObjectUri(String objectUri) |
void |
setPopupDisplayed(Boolean popupDisplayed) |
void |
setPredicateUri(String predicateUri) |
void |
toggleCreateForm(ActionEvent event) |
onContextChange
public DocumentModel getDocumentModel(Node node) throws ClientException
getDocumentModel
in interface RelationActions
ClientException
public QNameResource getDocumentResource(DocumentModel document) throws ClientException
getDocumentResource
in interface RelationActions
ClientException
@Factory(value="currentDocumentIncomingRelations", scope=EVENT) public List<StatementInfo> getIncomingStatementsInfo() throws ClientException
getIncomingStatementsInfo
in interface RelationActions
ClientException
@Factory(value="currentDocumentOutgoingRelations", scope=EVENT) public List<StatementInfo> getOutgoingStatementsInfo() throws ClientException
getOutgoingStatementsInfo
in interface RelationActions
ClientException
public void resetStatements()
resetStatements
in interface RelationActions
public String getComment()
getComment
in interface RelationActions
public void setComment(String comment)
setComment
in interface RelationActions
public String getObjectDocumentTitle()
getObjectDocumentTitle
in interface RelationActions
public void setObjectDocumentTitle(String objectDocumentTitle)
setObjectDocumentTitle
in interface RelationActions
public String getObjectDocumentUid()
getObjectDocumentUid
in interface RelationActions
public void setObjectDocumentUid(String objectDocumentUid)
setObjectDocumentUid
in interface RelationActions
public String getObjectLiteralValue()
getObjectLiteralValue
in interface RelationActions
public void setObjectLiteralValue(String objectLiteralValue)
setObjectLiteralValue
in interface RelationActions
public String getObjectType()
getObjectType
in interface RelationActions
public void setObjectType(String objectType)
setObjectType
in interface RelationActions
public String getObjectUri()
getObjectUri
in interface RelationActions
public void setObjectUri(String objectUri)
setObjectUri
in interface RelationActions
public String getPredicateUri()
getPredicateUri
in interface RelationActions
public void setPredicateUri(String predicateUri)
setPredicateUri
in interface RelationActions
public String addStatement() throws ClientException
addStatement
in interface RelationActions
ClientException
public void toggleCreateForm(ActionEvent event)
toggleCreateForm
in interface RelationActions
public String deleteStatement(StatementInfo stmtInfo) throws ClientException
deleteStatement
in interface RelationActions
ClientException
public Boolean getShowCreateForm()
getShowCreateForm
in interface RelationActions
public Boolean getPopupDisplayed()
public void setPopupDisplayed(Boolean popupDisplayed)
Copyright © 2013 Nuxeo SA. All Rights Reserved.