Class SetupController

java.lang.Object
org.imixs.workflow.office.config.ConfigController
org.imixs.workflow.office.config.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:
  • Field Details

    • CONFIGURATION_NAME

      public static final String CONFIGURATION_NAME
      See Also:
    • DEFAULT_PORTLET_SIZE

      public static final int DEFAULT_PORTLET_SIZE
      See Also:
    • modelController

      @Inject protected ModelController modelController
    • 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
    • martyPropertyLoader

      protected PropertiesLoader martyPropertyLoader
    • profileService

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

    • SetupController

      public SetupController()
  • Method Details

    • 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