@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, onContextChangeprotected 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 RelationActionspublic QNameResource getDocumentResource(DocumentModel document)
getDocumentResource in interface RelationActionsprotected 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 RelationActionspublic void resetStatements()
resetStatements in interface RelationActionspublic String getComment()
getComment in interface RelationActionspublic void setComment(String comment)
setComment in interface RelationActionspublic String getObjectDocumentTitle()
getObjectDocumentTitle in interface RelationActionspublic void setObjectDocumentTitle(String objectDocumentTitle)
setObjectDocumentTitle in interface RelationActionspublic String getObjectDocumentUid()
getObjectDocumentUid in interface RelationActionspublic void setObjectDocumentUid(String objectDocumentUid)
setObjectDocumentUid in interface RelationActionspublic String getObjectLiteralValue()
getObjectLiteralValue in interface RelationActionspublic void setObjectLiteralValue(String objectLiteralValue)
setObjectLiteralValue in interface RelationActionspublic String getObjectType()
getObjectType in interface RelationActionspublic void setObjectType(String objectType)
setObjectType in interface RelationActionspublic String getObjectUri()
getObjectUri in interface RelationActionspublic void setObjectUri(String objectUri)
setObjectUri in interface RelationActionspublic String getPredicateUri()
getPredicateUri in interface RelationActionspublic void setPredicateUri(String predicateUri)
setPredicateUri in interface RelationActionspublic String addStatement()
addStatement in interface RelationActionspublic void toggleCreateForm(javax.faces.event.ActionEvent event)
toggleCreateForm in interface RelationActionspublic String deleteStatement(StatementInfo stmtInfo)
deleteStatement in interface RelationActionspublic Boolean getShowCreateForm()
getShowCreateForm in interface RelationActionsprotected void resetBeanCache(DocumentModel newCurrentDocumentModel)
resetBeanCache in class DocumentContextBoundActionBeanpublic Boolean getPopupDisplayed()
public void setPopupDisplayed(Boolean popupDisplayed)
Copyright © 2016 Nuxeo SA. All rights reserved.