public class RoleActivator
extends java.lang.Object
implements org.eclipse.ui.activities.IActivityManagerListener
The default role is Customer Service Representative and can be overridden by using the System Configurator or by providing the command-line argument -clientAdmin.
The following roles are supported:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | ROLE_CLIENT_ADMIN
Default Client Administrator role ID (value "Client Administrator").
|
static java.lang.String | ROLE_CUSTOMER_SERVICE_REPRESENTATIVE
Default Customer Service Representative role ID (value "Customer Service Representative").
|
static java.lang.String | ROLE_CUSTOMER_SERVICE_SUPERVISOR
Default Customer Service Supervisor role ID (value "Customer Service Supervisor").
|
static java.lang.String | ROLE_SITE_ADMIN
Default Site Administrator role ID (value "Site Administrator").
|
Modifier and Type | Method and Description |
---|---|
void | activityManagerChanged(org.eclipse.ui.activities.ActivityManagerEvent activityManagerEvent)
Notifies that one or more properties of an instance of IActivityManager have changed.
|
java.lang.String[] | getActiveRoles()
Returns the active roles for the workbench.
|
static RoleActivator | getInstance()
Returns the singleton instance of the service.
|
java.lang.String | getRoleLabel(java.lang.String roleId)
Returns the given role's displayable label.
|
boolean | hasRole(java.lang.String roleId)
This method validates whether the given role is defined in the platform.
|
void | init()
Initializes the role framework for activation.
|
boolean | isActivityEnabled(java.lang.String activityId)
Returns whether the given activity is enabled.
|
void | reset()
Resets the workbench to the initial state at startup.
|
void | setActiveRoles(java.lang.String[] roleIds)
Sets the active roles for the workbench.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ROLE_CLIENT_ADMIN
public static final java.lang.String ROLE_SITE_ADMIN
public static final java.lang.String ROLE_CUSTOMER_SERVICE_REPRESENTATIVE
public static final java.lang.String ROLE_CUSTOMER_SERVICE_SUPERVISOR
public static RoleActivator getInstance()
public void init()
If the framework has a queue of roles to set, once activated those roles will be activated.
public void reset()
Note: If a "-role" command-line argument was found, the workbench will be reset to the argument's role state.
public void setActiveRoles(java.lang.String[] roleIds)
If there are conflicting enablement settings (true and false) for the same activity within different roles, then the enablement setting of true is used.
Note: Any activities defined using org.eclipse.ui.activities that are not used by any com.ibm.commerce.telesales.activitySets will be preserved.
public java.lang.String[] getActiveRoles()
public java.lang.String getRoleLabel(java.lang.String roleId)
public boolean isActivityEnabled(java.lang.String activityId)
public boolean hasRole(java.lang.String roleId)
public void activityManagerChanged(org.eclipse.ui.activities.ActivityManagerEvent activityManagerEvent)