Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.relations.web.listener.ejb
Class RelationActionsBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.ui.web.invalidations.DocumentContextBoundActionBean
      extended by 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

Field Summary
 
Fields inherited from interface org.nuxeo.ecm.platform.relations.web.listener.RelationActions
SEARCH_DOCUMENT_LIST
 
Constructor Summary
RelationActionsBean()
           
 
Method Summary
 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()
           
 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 setPredicateUri(String predicateUri)
           
 void toggleCreateForm(ActionEvent event)
           
 
Methods inherited from class org.nuxeo.ecm.platform.ui.web.invalidations.DocumentContextBoundActionBean
onContextChange
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationActionsBean

public RelationActionsBean()
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.