public class ProjectFormHandler extends PublishingPortletFormHandler
Modifier and Type | Field and Description |
---|---|
static int |
ADD_ASSET_ACTION |
static int |
CANCEL_BACKGROUND_TASK |
static java.lang.String |
CLASS_VERSION
Class version string
|
static int |
DEL_ASSET_ACTION |
static int |
DISCARD_ASSET_ACTION |
static int |
MOVE_ASSET_ACTION |
static int |
RESOLVE_NON_CONFLICTING |
static int |
REVERT_ASSET_ACTION |
static int |
sResolveNonConflictingTaskType |
mProcess, mProject, sConfiguration, sProcessHome, sProcessTaskInfoHome, sProjectHome
mFormExceptions, PARAM_USE_FORWARDS, sTransactionManager
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
ProjectFormHandler() |
Modifier and Type | Method and Description |
---|---|
void |
clearAssetPlaceholder(java.lang.String[] assets)
Clears any placeholder values that were held by assets being discarded
|
int |
getADD_ASSET_ACTION() |
java.lang.String |
getAsset() |
int |
getAssetAction()
Used by handlePerformAssetAction handler to decide which of
handleAddAssets or handleDiscardAssets methods to invoke
|
java.lang.String[] |
getAssets() |
int |
getCANCEL_BACKGROUND_TASK() |
java.lang.String |
getConfirmationMessage() |
int |
getDEL_ASSET_ACTION() |
int |
getDISCARD_ASSET_ACTION() |
int |
getMOVE_ASSET_ACTION() |
java.lang.String |
getMoveAssetsProjectId() |
java.lang.String |
getPipeDelimitedAssetURIList() |
java.lang.String |
getPlaceholderName() |
protected java.util.Set |
getReferenceWorkingVersions(RepositoryItem pItem,
Workspace pWorkspace)
Given a RepositoryItem, return a list of reference repository in the Workspace.
|
int |
getRESOLVE_NON_CONFLICTING() |
int |
getREVERT_ASSET_ACTION() |
java.lang.String |
getSuccessMessage()
Returns indicates a successful operation
|
static java.lang.String |
getTaskName(java.lang.String pID,
int pTaskType) |
int |
getTaskType() |
java.lang.String |
getVersion() |
void |
handleAddAssets(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Handle method to add an asset to a project.
|
void |
handleAddAssets(javax.portlet.PortletRequest pRequest,
javax.portlet.PortletResponse pResponse)
Handle method to add an asset to a project.
|
void |
handleCancelBackgroundTask(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Handle method to revert an asset to a given version
|
void |
handleCancelBackgroundTask(javax.portlet.PortletRequest pRequest,
javax.portlet.PortletResponse pResponse)
Handle method to revert an asset
|
void |
handleDiscardAssets(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Handle method to add a note to a project.
|
void |
handleDiscardAssets(javax.portlet.PortletRequest pRequest,
javax.portlet.PortletResponse pResponse)
Handle method to add a note to a project.
|
void |
handleMoveAssets(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Handle method to move assets to another project
|
void |
handleMoveAssets(javax.portlet.PortletRequest pRequest,
javax.portlet.PortletResponse pResponse)
Handle method to move assets to another project
|
void |
handlePerformAssetAction(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Handle the type of action specified in actionType
|
void |
handlePerformAssetAction(javax.portlet.PortletRequest pRequest,
javax.portlet.PortletResponse pResponse)
Handle the type of action specified in actionType
|
void |
handleResolveNonConflictingAssets(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Handle method to revert an asset to a given version
|
void |
handleResolveNonConflictingAssets(javax.portlet.PortletRequest pRequest,
javax.portlet.PortletResponse pResponse)
Handle method to revert an asset
|
void |
handleRevertAsset(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Handle method to revert an asset to a given version
|
void |
handleRevertAsset(javax.portlet.PortletRequest pRequest,
javax.portlet.PortletResponse pResponse)
Handle method to revert an asset
|
void |
postAddAssets(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
No-op method meant for subclassing to add user specific functionality after
handleAddAssets is called.
|
void |
postCancelBackgroundTask(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
No-op method meant for subclassing to add user specific functionality after
handleCancelBackgroundTask is called.
|
void |
postDiscardAssets(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
No-op method meant for subclassing to add user specific functionality after
handleAddNote is called.
|
void |
postMoveAssets(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
No-op method meant for subclassing to add user specific functionality after
handleMoveAssets is called.
|
void |
postResolveNonConflictingAssets(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
No-op method meant for subclassing to add user specific functionality after
handleAddNote is called.
|
void |
postRevertAsset(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
No-op method meant for subclassing to add user specific functionality after
handleAddNote is called.
|
void |
preAddAssets(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
No-op method meant for subclassing to add user specific functionality before
handleAddAssets is called.
|
void |
preCancelBackgroundTask(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
No-op method meant for subclassing to add user specific functionality before
handleCancelBackgroundTask is called.
|
void |
preDiscardAssets(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
No-op method meant for subclassing to add user specific functionality before
handleDiscardAssets is called.
|
void |
preMoveAssets(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
No-op method meant for subclassing to add user specific functionality before
handleMoveAssets is called.
|
void |
preResolveNonConflictingAssets(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
No-op method meant for subclassing to add user specific functionality before
handleDiscardAssets is called.
|
void |
preRevertAsset(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
No-op method meant for subclassing to add user specific functionality before
handleDiscardAssets is called.
|
void |
setAsset(java.lang.String string) |
void |
setAssetAction(int pAssetAction) |
void |
setAssetPlaceholder(java.lang.String pPlaceholderName,
java.lang.String pAssetURI)
Set the placeholder value (workflow.contextItems or contextFiles entry) with a specific asset
|
void |
setAssets(java.lang.String[] strings) |
void |
setConfirmationMessage(java.lang.String pConfirmationMessage) |
void |
setMoveAssetsProjectId(java.lang.String pMoveAssetsProjectId) |
void |
setPipeDelimitedAssetURIList(java.lang.String pPipeDelimitedAssetURIList) |
void |
setPlaceholderName(java.lang.String string) |
void |
setSuccessMessage(java.lang.String pSuccessMessage)
Sets indicates a successful operation
|
void |
setTaskType(int pTaskType) |
void |
setVersion(java.lang.String string) |
getConfiguration, getCurrentDynamoRequest, getCurrentDynamoResponse, getProcess, getProcessHome, getProcessId, getProcessTaskInfoHome, getProject, getProjectHome, getProjectId, getResource, getResource, getResource, getResource, getWorkflowView, setProcessId, setProjectId, setWorkflowView
addFormException, afterGet, afterGet, afterGet, afterSet, afterSet, afterSet, beforeGet, beforeGet, beforeGet, beforeSet, beforeSet, beforeSet, checkFormRedirect, getCheckForValidSession, getFormError, getFormExceptions, getPropertyExceptions, getTransactionDemarcation, handleFormException, handleUncheckedFormException, hasFormExceptions, isEnsureTransaction, isRestorableForm, isRollbackTransaction, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCheckForValidSession, setEnsureTransaction, setRestorableForm, setRollbackTransaction, setTransactionDemarcation, setUseForwards
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static int sResolveNonConflictingTaskType
public static final int ADD_ASSET_ACTION
public static final int DISCARD_ASSET_ACTION
public static final int DEL_ASSET_ACTION
public static final int REVERT_ASSET_ACTION
public static final int MOVE_ASSET_ACTION
public static final int RESOLVE_NON_CONFLICTING
public static final int CANCEL_BACKGROUND_TASK
public java.lang.String[] getAssets()
public void setAssets(java.lang.String[] strings)
public int getTaskType()
public void setTaskType(int pTaskType)
public java.lang.String getAsset()
public void setAsset(java.lang.String string)
public int getAssetAction()
public void setAssetAction(int pAssetAction)
public java.lang.String getVersion()
public void setVersion(java.lang.String string)
public java.lang.String getPlaceholderName()
public void setPlaceholderName(java.lang.String string)
public java.lang.String getPipeDelimitedAssetURIList()
public void setPipeDelimitedAssetURIList(java.lang.String pPipeDelimitedAssetURIList)
public void setMoveAssetsProjectId(java.lang.String pMoveAssetsProjectId)
public java.lang.String getMoveAssetsProjectId()
public void setConfirmationMessage(java.lang.String pConfirmationMessage)
public java.lang.String getConfirmationMessage()
public void setSuccessMessage(java.lang.String pSuccessMessage)
public java.lang.String getSuccessMessage()
public int getADD_ASSET_ACTION()
public int getDISCARD_ASSET_ACTION()
public int getDEL_ASSET_ACTION()
public int getREVERT_ASSET_ACTION()
public int getMOVE_ASSET_ACTION()
public int getRESOLVE_NON_CONFLICTING()
public int getCANCEL_BACKGROUND_TASK()
public void preAddAssets(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
public void postAddAssets(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
public void handleAddAssets(javax.portlet.PortletRequest pRequest, javax.portlet.PortletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void handleAddAssets(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void preDiscardAssets(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
public void postDiscardAssets(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
public void handleDiscardAssets(javax.portlet.PortletRequest pRequest, javax.portlet.PortletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void handleDiscardAssets(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void preRevertAsset(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
public void postRevertAsset(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
public void handleRevertAsset(javax.portlet.PortletRequest pRequest, javax.portlet.PortletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void handleRevertAsset(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void preResolveNonConflictingAssets(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
public void postResolveNonConflictingAssets(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
public void handleResolveNonConflictingAssets(javax.portlet.PortletRequest pRequest, javax.portlet.PortletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void handleResolveNonConflictingAssets(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public static java.lang.String getTaskName(java.lang.String pID, int pTaskType)
public void preCancelBackgroundTask(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
public void postCancelBackgroundTask(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
public void handleCancelBackgroundTask(javax.portlet.PortletRequest pRequest, javax.portlet.PortletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void handleCancelBackgroundTask(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void preMoveAssets(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
public void postMoveAssets(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
public void handleMoveAssets(javax.portlet.PortletRequest pRequest, javax.portlet.PortletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void handleMoveAssets(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void handlePerformAssetAction(javax.portlet.PortletRequest pRequest, javax.portlet.PortletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void handlePerformAssetAction(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
public void setAssetPlaceholder(java.lang.String pPlaceholderName, java.lang.String pAssetURI)
public void clearAssetPlaceholder(java.lang.String[] assets)
protected java.util.Set getReferenceWorkingVersions(RepositoryItem pItem, Workspace pWorkspace) throws RepositoryException, VersionException
pItem
- pWorkspace
- RepositoryException
VersionException