@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.
Modifier and Type | Field and Description |
---|---|
protected String |
comment |
protected Principal |
currentUser |
protected CoreSession |
documentManager |
protected DocumentRelationManager |
documentRelationManager |
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
protected static boolean |
includeStatementsInEvents |
protected List<Statement> |
incomingStatements |
protected List<StatementInfo> |
incomingStatementsInfo |
protected NavigationContext |
navigationContext |
protected String |
objectDocumentTitle |
protected String |
objectDocumentUid |
protected String |
objectLiteralValue |
protected String |
objectType |
protected String |
objectUri |
protected List<Statement> |
outgoingStatements |
protected List<StatementInfo> |
outgoingStatementsInfo |
protected Boolean |
popupDisplayed |
protected String |
predicateUri |
protected RelationManager |
relationManager |
protected ResourcesAccessor |
resourcesAccessor |
protected Boolean |
showCreateForm |
SEARCH_DOCUMENT_LIST
Constructor and Description |
---|
RelationActionsBean() |
getCurrentDocument, onContextChange
protected static boolean includeStatementsInEvents
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true) protected RelationManager relationManager
@In(create=true) protected DocumentRelationManager documentRelationManager
@In(create=true) protected NavigationContext navigationContext
@In(create=true) protected transient ResourcesAccessor resourcesAccessor
@In(create=true, required=false) protected org.jboss.seam.faces.FacesMessages facesMessages
@In(required=false) protected transient Principal currentUser
protected List<Statement> incomingStatements
protected List<StatementInfo> incomingStatementsInfo
protected List<Statement> outgoingStatements
protected List<StatementInfo> outgoingStatementsInfo
protected String predicateUri
protected String objectType
protected String objectLiteralValue
protected String objectDocumentUid
protected String objectDocumentTitle
protected Boolean showCreateForm
protected Boolean popupDisplayed
public RelationActionsBean()
public DocumentModel getDocumentModel(Node node)
getDocumentModel
in interface RelationActions
public QNameResource getDocumentResource(DocumentModel document)
getDocumentResource
in interface RelationActions
protected List<StatementInfo> getStatementsInfo(List<Statement> statements)
protected void resetEventContext()
@Factory(value="currentDocumentIncomingRelations", scope=EVENT) public List<StatementInfo> getIncomingStatementsInfo()
getIncomingStatementsInfo
in interface RelationActions
@Factory(value="currentDocumentOutgoingRelations", scope=EVENT) public List<StatementInfo> getOutgoingStatementsInfo()
getOutgoingStatementsInfo
in interface RelationActions
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()
addStatement
in interface RelationActions
public void toggleCreateForm(javax.faces.event.ActionEvent event)
toggleCreateForm
in interface RelationActions
public String deleteStatement(StatementInfo stmtInfo)
deleteStatement
in interface RelationActions
public Boolean getShowCreateForm()
getShowCreateForm
in interface RelationActions
protected void resetBeanCache(DocumentModel newCurrentDocumentModel)
resetBeanCache
in class DocumentContextBoundActionBean
public Boolean getPopupDisplayed()
public void setPopupDisplayed(Boolean popupDisplayed)
Copyright © 2018 Nuxeo. All rights reserved.