@Scope(value=CONVERSATION) @Name(value="routingActions") @Install(precedence=10) public class DocumentRoutingActionsBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected NuxeoPrincipal |
currentUser |
protected CoreSession |
documentManager |
protected DocumentsListsManager |
documentsListsManager |
protected String |
docWithAttachedRouteId |
protected EventManager |
eventManager |
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
protected String |
hiddenDocOrder |
protected String |
hiddenSourceDocId |
protected LockActions |
lockActions |
protected NavigationContext |
navigationContext |
protected RelatedRouteActionBean |
relatedRouteAction |
protected String |
relatedRouteModelDocumentId |
protected List<DocumentModel> |
relatedRoutes |
protected ResourcesAccessor |
resourcesAccessor |
static String |
ROUTE_DOCUMENT_REF |
static String |
SOURCE_DOC_NAME |
protected String |
stepId |
protected TypeManager |
typeManager |
protected TypesTool |
typesTool |
protected WebActions |
webActions |
Constructor and Description |
---|
DocumentRoutingActionsBean() |
public static final String SOURCE_DOC_NAME
public static final String ROUTE_DOCUMENT_REF
@In(required=true, create=true) protected NavigationContext navigationContext
@In(create=true, required=false) protected CoreSession documentManager
@In(create=true, required=false) protected org.jboss.seam.faces.FacesMessages facesMessages
@In(create=true) protected WebActions webActions
@In(create=true) protected LockActions lockActions
@In(create=true) protected ResourcesAccessor resourcesAccessor
@In(create=true) protected TypeManager typeManager
@In(create=true) protected EventManager eventManager
@In(required=true, create=true) protected NuxeoPrincipal currentUser
@In(create=true) protected List<DocumentModel> relatedRoutes
@In(create=true) protected RelatedRouteActionBean relatedRouteAction
@In(create=true) protected DocumentsListsManager documentsListsManager
protected String relatedRouteModelDocumentId
protected String docWithAttachedRouteId
protected String hiddenSourceDocId
protected String hiddenDocOrder
public DocumentRoutingActionsBean()
public DocumentRoutingService getDocumentRoutingService()
@Observer(value={"documentChanged","documentSelectionChanged"}) public void resetRelatedRouteDocumentId()
public boolean isRoutable()
public String startRoute()
public DocumentRoute getRelatedRoute()
When called on an actual route or route element, the route is returned.
When called on a regular document, the routing service is queried to get the routes which have the current document attached.
When dealing with a regular document, this is DEPRECATED as several graph routes may be related to the current
document (for instance in the case of sub-workflows). Use getRelatedRoutes()
instead.
public List<DocumentRoute> getRelatedRoutes()
protected void queryForRelatedRoutes()
public String cancelRoute()
public void saveRouteAsNewInstance()
public void saveSelectedRouteAsNewInstance()
public boolean getCanDuplicateRouteInstance()
public String validateRouteModel()
@Deprecated protected List<DocumentRouteTableElement> computeRouteElements()
@Deprecated protected List<DocumentRouteTableElement> computeRelatedRouteElements()
@Deprecated protected List<DocumentRouteTableElement> getElements(DocumentRoute currentRoute)
public boolean hasRelatedRoute()
public String startRouteRelatedToCurrentDocument()
public boolean routeRelatedToCurrentDocumentIsRunning()
public String getTypeDescription(DocumentRouteTableElement localizable)
public javax.faces.convert.Converter getDocumentModelConverter()
public boolean isStep(DocumentModel doc)
public boolean currentRouteModelIsDraft()
@Deprecated public String removeStep()
@Deprecated public boolean isEditableStep(DocumentModel stepDoc)
@Deprecated public boolean isEditableRouteElement(DocumentModel stepDoc)
@Factory(value="currentRouteLockedByCurrentUser", scope=EVENT) public boolean isCurrentRouteLockedByCurrentUser()
public boolean isCurrentRouteLocked()
public boolean canUnlockRoute()
public boolean canLockRoute()
public Map<String,Serializable> getCurrentRouteLockDetails()
public String lockCurrentRoute()
protected String lockRoute(DocumentRoute docRouteElement)
public String unlockCurrentRoute()
public boolean isEmptyFork(DocumentModel forkDoc)
public String updateRouteElement()
public String goBackToRoute()
@Deprecated public String createRouteElement(String typeName)
@Deprecated public String moveRouteElement(String direction)
public String saveRouteElement()
@Deprecated public List<DocumentModel> getOrderedChildren(String docRouteElementId, String type)
@Deprecated public DocumentModel getChildWithPosition(DocumentModel docRouteElement, String pos)
@Deprecated public String getPositionForChild(DocumentModel docRouteElement, DocumentModel docChild)
public String getHiddenSourceDocId()
public void setHiddenSourceDocId(String hiddenSourceDocId)
public String getHiddenDocOrder()
public void setHiddenDocOrder(String hiddenDocOrder)
public String getRelatedRouteModelDocumentId()
public void setRelatedRouteModelDocumentId(String relatedRouteModelDocumentId)
public String getDocWithAttachedRouteId()
public void setDocWithAttachedRouteId(String docWithAttachedRouteId)
@Observer(value={"workflowProcessEnded","workflowProcessCanceled","workflowTaskCompleted"}, create=false) public void resetCache()
public DocumentModel getRouteModel(String routeId)
public DocumentModel getRouteInstanceFor(Task task)
public List<DocumentModel> getFilteredRouteModels()
public List<Task> getCurrentRouteAllTasks()
public List<Task> getCurrentRouteCurrentUserTasks()
public String getCurrentWorkflowInitiator()
public boolean isCurrentRouteGraph()
public boolean isRouteGraph(DocumentRoute route)
Copyright © 2018 Nuxeo. All rights reserved.