Class SetupController

  • All Implemented Interfaces:
    Serializable

    @Named
    @ApplicationScoped
    public class SetupController
    extends ConfigController
    This SetupController extends the ConfigController and holds the data from the configuration entity 'BASIC'. This is the general configuration entity used by Imixs-Office-Workflow.

    The item 'properties' managed by the 'BASIC' configuration entity is also used by the MartyConfigSource to provide optional config parameters.

    Since version 4.5.1 the SetupController provides a list of fixed UserGroups.

    Author:
    rsoika
    See Also:
    AccessRoleController, PropertiesConfigSource, Serialized Form
    • Field Detail

      • teamController

        @Inject
        protected org.imixs.marty.team.TeamController teamController
      • documentService

        protected org.imixs.workflow.engine.DocumentService documentService
      • modelService

        protected org.imixs.workflow.engine.ModelService modelService
      • profileService

        protected org.imixs.marty.profile.ProfileService profileService
    • Constructor Detail

      • SetupController

        public SetupController()
    • Method Detail

      • init

        @PostConstruct
        public void init()
        This method loads the config entity. If the entity did not yet exist, the method creates one.
        Overrides:
        init in class ConfigController
      • getSortBy

        public String getSortBy()
        Returns the sortBy criteria form the config workitem or the default value '$modified' if not yet defined.
        Returns:
      • getPortletSize

        public int getPortletSize()
        Returns the max count of entries for a front-end protlet
        Returns:
      • getSortReverse

        public boolean getSortReverse()
        Returns the sortorder form the config workitem or the default value 'true' if not yet defined.
        Returns:
      • getAppName

        public String getAppName()
        Returns the EAR application name. Useful for JNDI lookups
        Returns:
      • getModuleName

        public String getModuleName()
        Returns the Web module name. Useful for JNDI lookups
        Returns:
      • reset

        public void reset()
        This method resets the propertyService and modelController
        Parameters:
        event -
        Throws:
        Exception
      • save

        public void save()
                  throws org.imixs.workflow.exceptions.AccessDeniedException
        After save the application property cache is reset automatically.
        Overrides:
        save in class ConfigController
        Throws:
        org.imixs.workflow.exceptions.AccessDeniedException