SL-GMS Enterprise RTView Customization

com.sl.gmsjrtview
Class GmsCustomRoleManager

java.lang.Object
  extended by com.sl.gmsjrtview.GmsCustomRoleManager

public class GmsCustomRoleManager
extends java.lang.Object

The GmsCustomRoleManager class provides a way for the user to customize role management.

Subclasses should override the activate() and isAllowed() methods.


Constructor Summary
GmsCustomRoleManager()
          Creates a GmsCustomRoleManager.
 
Method Summary
 boolean activate()
          Activate the role manager.
 java.util.Vector[] getSubstitutions(java.lang.String role)
          This method should return substitutions to set on the Enterprise RTView application when the specified role is logged in.
 boolean isAllowed(java.lang.String displayName, java.lang.String role)
          Returns true if the specified display is allowed, otherwise return false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GmsCustomRoleManager

public GmsCustomRoleManager()
Creates a GmsCustomRoleManager. Subclasses do not need to overwrite this method.

Method Detail

activate

public boolean activate()
Activate the role manager. Subclasses should overwrite this method to perform any initialization necessary to implement the isAllowed() method. This method should return true if initialization was successful, otherwise return false. Enterprise RTView will exit if this method returns false.


getSubstitutions

public java.util.Vector[] getSubstitutions(java.lang.String role)
This method should return substitutions to set on the Enterprise RTView application when the specified role is logged in. If this role does not have any associated substitutions, this method should return null. Otherwise, return a pair of Vectors. Both Vectors must be the same length, with the first Vector containing the substutition strings and the second Vector containing the corresponding substitution values.

Parameters:
role - the role of the user to return substitutions for

isAllowed

public boolean isAllowed(java.lang.String displayName,
                         java.lang.String role)
Returns true if the specified display is allowed, otherwise return false. Subclasses should overwrite this method to return the appropriate value based on the displayName and role.

Parameters:
displayName - the name of the display the user wants to open
role - the role of the user tryng to open the display

SL-GMS Enterprise RTView Customization

Copyright 2009 Sherrill-Lubinski Corporation, 240 Tamal Vista Blvd
Corte Madera, CA 94925, U.S.A. All Rights Reserved