Package org.imixs.workflow.office.config
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:
AccessRoleController,PropertiesConfigSource, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIGURATION_NAMEstatic intDEFAULT_PORTLET_SIZEprotected org.imixs.workflow.engine.DocumentServicedocumentServiceprotected PropertiesLoadermartyPropertyLoaderprotected ModelControllermodelControllerprotected org.imixs.workflow.engine.ModelServicemodelServiceprotected org.imixs.marty.profile.ProfileServiceprofileServiceprotected org.imixs.marty.team.TeamControllerteamController
-
Constructor Summary
Constructors Constructor Description SetupController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAppName()Returns the EAR application name.StringgetModuleName()Returns the Web module name.intgetPortletSize()Returns the max count of entries for a front-end protletStringgetSortBy()Returns the sortBy criteria form the config workitem or the default value '$modified' if not yet defined.booleangetSortReverse()Returns the sortorder form the config workitem or the default value 'true' if not yet defined.voidinit()This method loads the config entity.voidreset()This method resets the propertyService and modelControllervoidsave()After save the application property cache is reset automatically.-
Methods inherited from class org.imixs.workflow.office.config.ConfigController
getName, getSelectItems, getWorkitem, loadConfiguration, setName
-
-
-
-
Field Detail
-
CONFIGURATION_NAME
public static final String CONFIGURATION_NAME
- See Also:
- Constant Field Values
-
DEFAULT_PORTLET_SIZE
public static final int DEFAULT_PORTLET_SIZE
- See Also:
- Constant Field Values
-
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
-
-
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:
initin classConfigController
-
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.AccessDeniedExceptionAfter save the application property cache is reset automatically.- Overrides:
savein classConfigController- Throws:
org.imixs.workflow.exceptions.AccessDeniedException
-
-