Package lumis.service.resourcescheduler
Class ResourceValidatorProcessActionHandler
- java.lang.Object
-
- lumis.doui.processaction.ProcessActionHandler<Source<?>>
-
- lumis.service.resourcescheduler.ResourceValidatorProcessActionHandler
-
- All Implemented Interfaces:
IProcessActionHandler
,IParameters
public class ResourceValidatorProcessActionHandler extends ProcessActionHandler<Source<?>>
Does not allow resources to have duplicated names.- Since:
- 4.0.10
- Version:
- $Revision$ $Date$
-
-
Field Summary
-
Fields inherited from class lumis.doui.processaction.ProcessActionHandler
douiContext, id, localizationManager, parameters, processActionContainer, processActionNode, RESPONSE_TYPE_CLOSE_WINDOW, RESPONSE_TYPE_HYPERLINK, RESPONSE_TYPE_MESSAGE, RESPONSE_TYPE_POPUP_INTERFACE, RESPONSE_TYPE_PREVIEW, RESPONSE_TYPE_REFRESH_PARENT, RESPONSE_TYPE_REQUEST_PROCESS_ACTION_CONFIRMATION_MESSAGE, RESPONSE_TYPE_REQUEST_PROCESS_ACTION_CONFIRMATION_PROCESS_ACTION_ID, RESPONSE_TYPE_RUN_JAVASCRIPT, RESPONSE_TYPE_SET_REQUEST_ATTRIBUTES, RESPONSE_TYPE_SET_REQUEST_PARAMETERS, RESPONSE_TYPE_SET_RESPONSE_PARAMETERS, RESPONSE_TYPE_STANDARD_COMMIT, RESPONSE_TYPE_STANDARD_EMBEDDED, RESPONSE_TYPE_STANDARD_POPUP, RESPONSE_TYPE_VALIDATE_PROCESS_ACTION_ON_RENDER, sessionConfig, source, sourceContainer, transaction
-
-
Constructor Summary
Constructors Constructor Description ResourceValidatorProcessActionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isNameInUse(java.lang.String contentName, java.lang.String serviceInstanceId, java.lang.String itemId)
Indicates if a name is in use by another resource.void
processAction()
If the name is in use by another resource in same service instance, throws an exception.-
Methods inherited from class lumis.doui.processaction.ProcessActionHandler
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, containsParameter, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode, setParameter
-
-
-
-
Method Detail
-
processAction
public void processAction() throws PortalException
If the name is in use by another resource in same service instance, throws an exception.- Throws:
PortalException
- Since:
- 4.0.10
-
isNameInUse
public boolean isNameInUse(java.lang.String contentName, java.lang.String serviceInstanceId, java.lang.String itemId) throws PortalException
Indicates if a name is in use by another resource.- Parameters:
contentName
- the name of the resource.serviceInstanceId
- the resource's service instance identifier.itemId
- the resource's identifier if it is being edited, or null if it is being added.- Returns:
- true if it is in use, false otherwise.
- Throws:
PortalException
- Since:
- 5.5.0
-
-