|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.prefs.delegates.PreferenceDelegate
wt.prefs.delegates.ContainerDelegate
This class is a generic delegate for container level preferences. The
ruleset for this delegate is that any member of the Container or its
ancestor containers' Administrators will have the authority to administer
and edit preferences at this level in the preference Heirarchy. This
delegate gets the divisions for given container and its ancestor containers.
If no container is available, exchange container would be considered to get
divisions, and for getDivisionsAsAdministrator.
The order of delegates are defined in the delegates.properties
file under the property wt.prefs.delegates.DelegateOrder
which defines the heirarchy of delegates from top to bottom.
See wt.prefs.delegates.PreferenceDelegate
for more details on this property.
When using this delegate in the Preference Heirarchy, the
wt.prefs.delegates.DelegateOrder
property entry for this
delegate should appear as $CONTAINER
.
Supported API: false
PreferenceDelegate
,
DefaultSystemDelegate
,
WindchillEnterpriseDelegate
,
UserDelegate
,
PrefsUtil
,
WTPreferences
,
Preferences
Field Summary | |
private static boolean |
VERBOSE
|
Fields inherited from class wt.prefs.delegates.PreferenceDelegate |
DELEGATE_FILE, DELEGATE_ORDER, DELEGATE_PREFERENCE_NODE |
Constructor Summary | |
ContainerDelegate()
|
Method Summary | |
ArrayList |
getDivisions(WTContainerRef aContainer,
WTUser user)
This method will return the heirarchial divisions for the named user that this delegate is responsible for. |
ArrayList |
getDivisions(WTUser user)
This method will return the heirarchial divisions for the named user that this delegate is responsible for. |
ArrayList |
getDivisionsAsAdministrator(WTContainerRef aContainer,
WTUser user)
This method will return the divisions which the user has administrative privileges for. |
ArrayList |
getDivisionsAsAdministrator(WTUser user)
This method will return the divisions which the user has administrative privileges for. |
String |
getLocalizedName(String division,
Locale aLocale)
This method will return the name of this division for display purposes. |
boolean |
isAdministrator(String division,
WTUser user)
Will determine if the user is an adminstarator of a container's division. |
boolean |
isAdministrator(WTContainerRef container,
WTUser user)
Will determine if the user is an adminstarator of the container. |
Methods inherited from class wt.prefs.delegates.PreferenceDelegate |
isAdministrator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static boolean VERBOSE
Constructor Detail |
public ContainerDelegate()
Method Detail |
public String getLocalizedName(String division, Locale aLocale)
getLocalizedName
in class PreferenceDelegate
division
- the divisionaLocale
- ignored.
public boolean isAdministrator(String division, WTUser user)
isAdministrator
in class PreferenceDelegate
division
- The division to apply the privileges touser
- The user of determine administrative privileges for.
public boolean isAdministrator(WTContainerRef container, WTUser user)
container
- The division to apply the privileges touser
- The user of determine administrative privileges for.
public ArrayList getDivisionsAsAdministrator(WTUser user)
getDivisionsAsAdministrator
in class PreferenceDelegate
user
- The user to check authentication on.
public ArrayList getDivisionsAsAdministrator(WTContainerRef aContainer, WTUser user)
getDivisionsAsAdministrator
in class PreferenceDelegate
aContainer
- The base container to get divisions as administratoruser
- The user to check authentication on.
public ArrayList getDivisions(WTUser user)
getDivisions
in class PreferenceDelegate
user
- ignored.
public ArrayList getDivisions(WTContainerRef aContainer, WTUser user)
getDivisions
in class PreferenceDelegate
aContainer
- the container based on which divisions are created.user
- ignored.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |