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
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intprotected org.imixs.workflow.engine.DocumentServiceprotected PropertiesLoaderprotected ModelControllerprotected org.imixs.workflow.engine.ModelServiceprotected org.imixs.marty.profile.ProfileServiceprotected org.imixs.marty.team.TeamController -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the EAR application name.Returns the Web module name.intReturns the max count of entries for a front-end protletReturns the sortBy criteria form the config workitem or the default value '$modified' if not yet defined.booleanReturns 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 Details
-
CONFIGURATION_NAME
- See Also:
-
DEFAULT_PORTLET_SIZE
public static final int DEFAULT_PORTLET_SIZE- See Also:
-
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
-
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:
initin classConfigController
-
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
Returns the EAR application name. Useful for JNDI lookups- Returns:
-
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
-