Class EditTypeExtensionHandler

    • Constructor Detail

      • EditTypeExtensionHandler

        public EditTypeExtensionHandler()
    • Method Detail

      • validateBeforeOp

        public boolean validateBeforeOp()
      • validateCreate

        public boolean validateCreate()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • performCreate

        public DataExtension performCreate()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • validateUpdate

        public boolean validateUpdate()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • performUpdate

        public void performUpdate()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • validateDelete

        public boolean validateDelete()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • performDelete

        public void performDelete()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • validateAdd

        public boolean validateAdd()
      • setOpAddItem

        public void setOpAddItem​(java.lang.String v)
      • getExtensionClass

        public abstract java.lang.Class getExtensionClass()
      • isEmptyExtension

        public boolean isEmptyExtension()
      • setExtension

        public void setExtension​(DataExtension extension)
      • setExtendedData

        public void setExtendedData​(Data extendedData)
        Called by the Edit[Data]Handler when validating create or update. Set the transient extended data of the extension to match the data that was cloned in the handler.

        We do this because the transient extended data can be needed for example in the check integrity of the DataExtension and we need the updated copy. (For example if we modify the main language of the extended data, the required field of the extension must take it into account during the check).
      • sendRedirect

        protected void sendRedirect()
                             throws java.io.IOException
        Overrides:
        sendRedirect in class EditDataHandler
        Throws:
        java.io.IOException
      • getAvailableAuthor

        protected Member getAvailableAuthor()
        Returns the logged member.
        Returns:
        the logged member.
        Since:
        jcms-5.7.0
      • getAvailableWorkspace

        protected Workspace getAvailableWorkspace()
        Returns the current workspace.
        Returns:
        the current workspace
        Since:
        jcms-5.7.0
      • restValidation

        protected boolean restValidation​(boolean result)
                                  throws java.io.IOException
        Overrides:
        restValidation in class EditDataHandler
        Throws:
        java.io.IOException