Class Extension

    • Constructor Detail

      • Extension

        public Extension()
    • Method Detail

      • onFirstSessionCreation

        public void onFirstSessionCreation()
        Is called on first session creation (while startup) exactly one time. Put here code which has to be called within startup process.
      • createEssentialData

        public void createEssentialData​(java.util.Map<java.lang.String,​java.lang.String> params,
                                        JspContext jspc)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createProjectData

        public void createProjectData​(java.util.Map<java.lang.String,​java.lang.String> params,
                                      JspContext jspc)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createSampleData

        public final void createSampleData​(java.util.Map<java.lang.String,​java.lang.String> params,
                                           JspContext jspc)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • notifyInitializationEnd

        public void notifyInitializationEnd​(java.util.Map<java.lang.String,​java.lang.String> params,
                                            JspContext ctx)
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • notifyInitializationStart

        public void notifyInitializationStart​(java.util.Map<java.lang.String,​java.lang.String> params,
                                              JspContext ctx)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
        Since:
        3.1-u6
      • getCreatorParameterNames

        public java.util.Collection<java.lang.String> getCreatorParameterNames()
        Override this method to provide parameters for the system creator.
        Returns:
        parameter names for the creator
      • getCreatorParameterDefault

        public java.lang.String getCreatorParameterDefault​(java.lang.String param)
        Override this method to provide default value for the given creator parameter.
        Parameters:
        param - the name of the parameter
        Returns:
        default value for the given creator parameter; use null when the parameter should have no default value
      • getCreatorParameterPossibleValues

        public java.util.List<java.lang.String> getCreatorParameterPossibleValues​(java.lang.String param)
        Override this method to provide a list of all possible values for the given creator parameter. If not null the list of these values will be shown to the user of system creator and no other values will be possible to set.
        Parameters:
        param - the name of the parameter
        Returns:
        list of all possible values for the given creator parameter; use null when this parameter should have no restriction of possible values
      • getCreatorName

        public java.lang.String getCreatorName()
        The name of the creator will be shown to the user during data creation. Returns name of the extension.
        Returns:
        name of the creator; in the default case it is the extension name
      • getCreatorDescription

        public java.lang.String getCreatorDescription()
        Part of DataCreator interface. The description of the creator will be shown to the user during data creation.
        Returns:
        description of this creator
      • isCreatorDisabled

        public boolean isCreatorDisabled()
        Part of DataCreator interface. This default implementation returns false
        Returns:
        false
      • getName

        public abstract java.lang.String getName()
      • getDefaultAttributeModes

        public java.util.Map<java.lang.String,​Item.AttributeMode> getDefaultAttributeModes​(java.lang.Class<? extends Item> itemClass)
      • writeReplace

        public java.lang.Object writeReplace()
                                      throws java.io.ObjectStreamException
        Specified by:
        writeReplace in class Manager
        Throws:
        java.io.ObjectStreamException