@Name(value="orderableDocumentActions") @Scope(value=CONVERSATION) public class OrderableDocumentActions extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected CoreSession |
documentManager |
protected DocumentsListsManager |
documentsListsManager |
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
protected NavigationContext |
navigationContext |
protected ResourcesAccessor |
resourcesAccessor |
static String |
SECTION_TYPE |
Constructor and Description |
---|
OrderableDocumentActions() |
Modifier and Type | Method and Description |
---|---|
protected void |
addFacesMessage(String messageLabel) |
boolean |
getCanMoveDown() |
protected boolean |
getCanMoveDown(DocumentModel container,
String documentsListName) |
boolean |
getCanMoveToBottom() |
protected boolean |
getCanMoveToBottom(DocumentModel container,
String documentsListName) |
boolean |
getCanMoveToTop() |
protected boolean |
getCanMoveToTop(DocumentModel container,
String documentsListName) |
boolean |
getCanMoveUp() |
protected boolean |
getCanMoveUp(DocumentModel container,
String documentsListName) |
protected boolean |
isOrderable(DocumentModel doc) |
protected boolean |
isSectionType(DocumentModel doc) |
String |
moveDown() |
protected String |
moveDown(DocumentModel container,
String documentsListName) |
String |
moveToBottom() |
protected String |
moveToBottom(DocumentModel container,
String documentsListName) |
String |
moveToTop() |
protected String |
moveToTop(DocumentModel container,
String documentsListName) |
String |
moveUp() |
protected String |
moveUp(DocumentModel container,
String documentsListName) |
protected void |
notifyChildrenChanged(DocumentModel containerDocument) |
public static final String SECTION_TYPE
@In(create=true) protected transient NavigationContext navigationContext
@In(create=true, required=false) protected transient CoreSession documentManager
@In(required=false, create=true) protected transient DocumentsListsManager documentsListsManager
@In(create=true, required=false) protected transient org.jboss.seam.faces.FacesMessages facesMessages
@In(create=true) protected transient ResourcesAccessor resourcesAccessor
public OrderableDocumentActions()
public boolean getCanMoveDown()
protected boolean getCanMoveDown(DocumentModel container, String documentsListName)
protected String moveDown(DocumentModel container, String documentsListName)
protected void notifyChildrenChanged(DocumentModel containerDocument)
public boolean getCanMoveUp()
protected boolean getCanMoveUp(DocumentModel container, String documentsListName)
protected String moveUp(DocumentModel container, String documentsListName)
public boolean getCanMoveToTop()
protected boolean getCanMoveToTop(DocumentModel container, String documentsListName)
protected String moveToTop(DocumentModel container, String documentsListName)
public boolean getCanMoveToBottom()
protected boolean getCanMoveToBottom(DocumentModel container, String documentsListName)
public String moveToBottom()
protected String moveToBottom(DocumentModel container, String documentsListName)
protected boolean isOrderable(DocumentModel doc)
protected boolean isSectionType(DocumentModel doc)
protected void addFacesMessage(String messageLabel)
Copyright © 2017 Nuxeo. All rights reserved.