Class CustomPropertyDefinitionPost

  • All Implemented Interfaces:
    org.springframework.extensions.webscripts.WebScript

    public class CustomPropertyDefinitionPost
    extends BaseCustomPropertyWebScript
    Implementation for Java backed webscript to add RM custom property definitions to the custom model.
    Author:
    Neil McErlean
    • Constructor Detail

      • CustomPropertyDefinitionPost

        public CustomPropertyDefinitionPost()
    • Method Detail

      • 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 class org.springframework.extensions.webscripts.DeclarativeWebScript
      • createPropertyDefinition

        protected Map<String,​Object> createPropertyDefinition​(org.springframework.extensions.webscripts.WebScriptRequest req,
                                                                    org.json.JSONObject json)
                                                             throws org.json.JSONException,
                                                                    CustomMetadataException
        Applies custom properties.
        Throws:
        CustomMetadataException
        org.json.JSONException
      • getParamsFromUrlAndJson

        protected Map<String,​Serializable> getParamsFromUrlAndJson​(org.springframework.extensions.webscripts.WebScriptRequest req,
                                                                         org.json.JSONObject json)
                                                                  throws org.json.JSONException
        Throws:
        org.json.JSONException