Basic Customization > User Interface Customization > Adding Actions and Hooking Them Up in the UI > Customizing Role-based Visibility > Customization Points > The uic Element
  
The uic Element
Each UIC in roleaccessprefs.xml represents a UIComponent or action to be controlled.
Parameter
Default Value
Possible values
Req?
Description
name
n/a
string
Y
The name of the UI component. This must match the value of the uicomponent (or name) attribute on an action element in actions.xml. This must also match the value of a resource entry constant in the resource bundle.
Order
?
Non-negative? Integer
N
The position of this UI component in the wizard. UI components with lower numbers are placed before those with higher numbers.
Enabled
true
true | false
N
Whether or not this uicomponent will be shown in the wizard and utilized by the system.
DefaultAll
true
true | false
N
The default visibility value for All Members.
DefaultManager
true
true | false
N
The default visibility value for Project Managers.
The permissions are a union of all permissions across all roles; if you set defaultManager to false; you should also defaultAll to false, otherwise managers will still have access through the ALL_MEMBERS role.
DefaultGuest
true
true | false
N
The default visibility value for people in the Guest role.
Guests are not technically members of the Project; they are not unioned with the ALL_MEMBERS role.
ManagerEnabled
true
true | false
N
Whether or not this uicomponent can affect the manager role. Do not change this value in out-of-the-box UICs. For customized UICs, you may choose your own setting.
GuestEnabled
true
true | false
N
Whether or not this uicomponent can affect the guest role. Do not change this value in out-of-the-box UICs. For customized UICs, you may choose your own setting.
RunClass
Java class name
N
The class on which runMethod exists
runMethod
Java method name
N
The method to run when the UIAccess is changed.
This represents the name of a method that will be run when a UIAccess element associated with this UIComponent is updated.
The signature of this method must be:
void foo(WTPrincipal principal, WTContainer container, boolean isRender)
The principal passed in will be the group or user on which to operate. The boolean isRender is the updated value for the UIAccess.