@Name(value="popupHelper") @Scope(value=CONVERSATION) public class PopupHelper extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected ActionContextProvider |
actionContextProvider |
protected DocumentModel |
currentContainer |
protected DocumentModel |
currentParent |
protected DocumentModel |
currentPopupDocument |
protected DeleteActions |
deleteActions |
protected CoreSession |
documentManager |
protected LockActions |
lockActions |
static String |
POPUP_CATEGORY |
protected List<Action> |
unfiltredActions |
protected WebActions |
webActions |
Constructor and Description |
---|
PopupHelper() |
public static final String POPUP_CATEGORY
@In(required=true, create=true) protected transient ActionContextProvider actionContextProvider
@In(create=true) protected transient WebActions webActions
@In(create=true) protected transient DeleteActions deleteActions
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true) protected transient LockActions lockActions
protected DocumentModel currentContainer
protected DocumentModel currentParent
protected DocumentModel currentPopupDocument
protected List<Action> unfiltredActions
public PopupHelper()
protected void computeUnfiltredPopupActions()
public List<Action> getUnfiltredPopupActions()
public List<Action> getAvailablePopupActions(String popupDocId)
@WebRemote public List<String> getAvailableActionId(String popupDocId)
@WebRemote public List<String> getUnavailableActionId(String popupDocId)
protected ActionContext createActionContext(String popupDocId)
@WebRemote public String getNavigationURL(String docId, String tabId)
@WebRemote public String getNavigationURLOnContainer(String tabId)
@WebRemote public String getNavigationURLOnPopupdoc(String tabId)
protected javax.servlet.http.HttpServletRequest getRequest()
@WebRemote public String getNavigationURLOnPopupdoc2(String tabId, String subTabId)
protected Map<String,String> getCurrentTabParameters()
@WebRemote public String getCurrentURL()
@WebRemote public String getCurrentURLAfterDelete()
@WebRemote public String deleteDocument(String docId)
public boolean getIsCurrentContainerDirectParent()
public boolean isDocumentHasBlobAttached(DocumentModel documentModel)
public boolean isDocumentHasBlobs(DocumentModel documentModel)
@WebRemote public String downloadDocument(String docId, String blobPropertyName, String filenamePropertyName)
@WebRemote public String lockDocument(String docId)
@WebRemote public String unlockDocument(String docId)
Copyright © 2016 Nuxeo SA. All rights reserved.