Class CustomPropertyDefinitionPut
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.module.org_alfresco_module_rm.script.AbstractRmWebScript
org.alfresco.module.org_alfresco_module_rm.script.BaseCustomPropertyWebScript
org.alfresco.module.org_alfresco_module_rm.script.CustomPropertyDefinitionPut
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
Implementation for Java backed webscript to update RM custom property definitions
in the custom model.
- Author:
- Neil McErlean
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
-
Field Summary
Fields inherited from class org.alfresco.module.org_alfresco_module_rm.script.AbstractRmWebScript
ID, INVERT, PATH_SEPARATOR, STORE_ID, STORE_TYPE, SUCCESS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteImpl
(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) protected Map<String,
Serializable> getParamsFromUrlAndJson
(org.springframework.extensions.webscripts.WebScriptRequest req, org.json.JSONObject json) handlePropertyDefinitionUpdate
(org.springframework.extensions.webscripts.WebScriptRequest req, org.json.JSONObject json) Applies custom properties.void
setRecordsManagementAdminService
(RecordsManagementAdminService rmAdminService) protected QName
updatePropertyDefinition
(Map<String, Serializable> params) If label has a non-null value, it is set on the property def.Methods inherited from class org.alfresco.module.org_alfresco_module_rm.script.BaseCustomPropertyWebScript
mapToTypeQName
Methods inherited from class org.alfresco.module.org_alfresco_module_rm.script.AbstractRmWebScript
getDispositionService, getNamespaceService, getNodeService, parseRequestForNodeRef, setDispositionService, setNamespaceService, setNodeService
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
Constructor Details
-
CustomPropertyDefinitionPut
public CustomPropertyDefinitionPut()
-
-
Method Details
-
setRecordsManagementAdminService
-
executeImpl
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) - Overrides:
executeImpl
in classorg.springframework.extensions.webscripts.DeclarativeWebScript
-
handlePropertyDefinitionUpdate
protected Map<String,Object> handlePropertyDefinitionUpdate(org.springframework.extensions.webscripts.WebScriptRequest req, org.json.JSONObject json) throws org.json.JSONException, CustomMetadataException Applies custom properties.- Throws:
CustomMetadataException
org.json.JSONException
-
updatePropertyDefinition
protected QName updatePropertyDefinition(Map<String, Serializable> params) throws CustomMetadataExceptionIf label has a non-null value, it is set on the property def. If constraintRef has a non-null value, it is set on this propDef. If constraintRef has a null value, all constraints for that propDef are removed.- Parameters:
params
-- Returns:
- Throws:
CustomMetadataException
-
getParamsFromUrlAndJson
protected Map<String,Serializable> getParamsFromUrlAndJson(org.springframework.extensions.webscripts.WebScriptRequest req, org.json.JSONObject json) throws org.json.JSONException - Throws:
org.json.JSONException
-