04.12.2012 Views

Windchill System Administrator's Guide

Windchill System Administrator's Guide

Windchill System Administrator's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Creating Delegates<br />

All preference delegates should be extended from the abstract class<br />

wt.prefs.PreferenceDelegate. This class defines the following required methods<br />

which each delegate must implement within the preferences framework:<br />

Managing User Preferences<br />

• public String getLocalizedName(String division, Locale aLocale)<br />

• public boolean isAdministrator(String division, WTUser user)<br />

• public ArrayList getDivisionsAsAdministrator(WTUser user)<br />

• public ArrayList getDivisions(WTUser user)<br />

The getDivisions methods differ in that the getDivisionsAsAdministrator(user)<br />

method returns a list of all levels in this delegate that the given user is responsible<br />

for or able to administer. The getDivisions(user) method returns all the divisions<br />

of which the given user is a member.<br />

There are no restrictions on how the delegate decides which users are members or<br />

administrators of divisions; however, the getDivisions methods should return<br />

well-formed results. If a user is not a member of any division managed by the<br />

delegate, then the ArrayList should be empty, rather than null. For additional<br />

information on the getDivisions methods, refer to the <strong>Windchill</strong> Javadoc.<br />

User preferences can be set throughout <strong>Windchill</strong>. Out of the box, users can set<br />

preferences for their own workstations, and administrators can set preferences for<br />

each scope, where the preferences can be available to all lower level scopes.<br />

The out-of-the-box hierarchy forms the beginning of a hierarchy that can include<br />

multiple levels, each defining a scope below the enterprise level. Preferences can<br />

be set for each scope defined in the system, including the user scope. Preferences<br />

(other than user) are set to either allow or forbid preference values to be<br />

overridden by scopes defined below the current scope.<br />

The Preference Administrator preference table (located in<br />

../wtcore/jsp/wt/prefs/admin/PrefHelp.jsp) displays the system default preferences<br />

and their description and default value.<br />

<strong>Windchill</strong> includes four types of preference scopes:<br />

• Default scope -- The top level, which defines the initial settings for all<br />

preferences at installation. This scope is not listed in the Selected scope<br />

drop-down list.<br />

• Container scopes -- Container scopes for which you are an administrator are<br />

visible, starting with the specified container and going up to Site container.<br />

The name of a container scope is the same as the name of the container.<br />

• Division scopes -- These are one level below container scopes. Out of the box,<br />

the <strong>Windchill</strong> Enterprise division scope is defined so that preferences can be<br />

set by <strong>Windchill</strong> administrators to apply to all users.<br />

1-32 <strong>Windchill</strong> <strong>System</strong> Administrator’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!