public class CheckinCheckoutDialog extends BaseDialogBean
Modifier and Type | Field and Description |
---|---|
static String |
FILE |
static String |
MSG_ERROR_CANCELCHECKOUT |
static String |
MSG_ERROR_CHECKIN |
static String |
MSG_ERROR_CHECKOUT |
static String |
MSG_ERROR_UPDATE |
protected CCProperties |
property |
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
CheckinCheckoutDialog() |
Modifier and Type | Method and Description |
---|---|
String |
cancel()
Deals with the cancel button being pressed on the check in file page
|
String |
checkinFileOK(FacesContext context,
String outcome)
Action called upon completion of the Check In file page
|
protected void |
clearUpload(String id)
Clear the uploaded form, clearing the specific Upload component by Id
|
void |
editFile(ActionEvent event)
Action handler called to calculate which editing screen to display based on the mimetype
of a document.
|
String |
editInline(FacesContext context,
String outcome)
Action handler called to set the content of a node from an inline editing page.
|
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
BrowseBean |
getBrowseBean() |
String |
getContainerTitle()
Returns the title to be used for the dialog
|
String |
getFileName() |
String |
getFileUploadSuccessMsg() |
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
String |
getFinishButtonLabel()
Returns the label to use for the finish button
|
boolean |
isVersionable()
Determines whether the document being checked in has
the versionable aspect applied
|
String |
removeUploadedFile()
Action handler called when the user wishes to remove an uploaded file
|
void |
resetState()
Clear form state and upload file bean
|
void |
setBrowseBean(BrowseBean browseBean) |
void |
setFileName(String fileName) |
void |
setNavigator(NavigationBean navigator) |
void |
setProperty(CCProperties property) |
void |
setupContentAction(ActionEvent event)
Action event called by all actions that need to setup a Content Document context on the
CheckinCheckoutDialog before an action page/wizard is called.
|
protected Node |
setupContentDocument(String id)
Setup a content document node context
|
void |
setupWorkflowContentAction(ActionEvent event) |
String |
undoCheckout()
Action to undo the checkout of a document just checked out from the checkout screen.
|
String |
updateFileOK(FacesContext context,
String outcome)
Action called upon completion of the Update File page
|
doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, init, isFinished, restored, setDictionaryService, setFileFolderService, setNamespaceService, setNodeService, setSearchService
public static final String MSG_ERROR_CHECKIN
public static final String MSG_ERROR_CANCELCHECKOUT
public static final String MSG_ERROR_UPDATE
public static final String MSG_ERROR_CHECKOUT
public static final String FILE
protected CCProperties property
public void setProperty(CCProperties property)
property
- the property to setpublic void setNavigator(NavigationBean navigator)
setNavigator
in class BaseDialogBean
navigator
- The NavigationBean to set.public BrowseBean getBrowseBean()
public void setBrowseBean(BrowseBean browseBean)
setBrowseBean
in class BaseDialogBean
browseBean
- The BrowseBean to set.public boolean getFinishButtonDisabled()
IDialogBean
getFinishButtonDisabled
in interface IDialogBean
getFinishButtonDisabled
in class BaseDialogBean
public String getFinishButtonLabel()
IDialogBean
getFinishButtonLabel
in interface IDialogBean
getFinishButtonLabel
in class BaseDialogBean
public String getContainerTitle()
IDialogBean
If this returns null the DialogManager will lookup the title via the dialog configuration
getContainerTitle
in interface IDialogBean
getContainerTitle
in class BaseDialogBean
public boolean isVersionable()
public String getFileUploadSuccessMsg()
public String getFileName()
public void setFileName(String fileName)
fileName
- The name of the fileprotected void clearUpload(String id)
public String removeUploadedFile()
public void setupContentAction(ActionEvent event)
event
- ActionEventpublic void setupWorkflowContentAction(ActionEvent event)
protected Node setupContentDocument(String id)
id
- GUID of the node to setup as the content document contextpublic void editFile(ActionEvent event)
public String editInline(FacesContext context, String outcome)
public String undoCheckout()
public String checkinFileOK(FacesContext context, String outcome)
public String updateFileOK(FacesContext context, String outcome)
public String cancel()
cancel
in interface IDialogBean
cancel
in class BaseDialogBean
protected String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
public void resetState()
Copyright © 2005–2017 Alfresco Software. All rights reserved.