com.centrasite.control.registry.items.accessors
Class PrincipalNameAccessor

java.lang.Object
  extended by com.centrasite.control.discovery.AbstractPropertyAccessor
      extended by com.centrasite.control.discovery.ReadOnlyPropertyAccessor
          extended by com.centrasite.control.registry.items.accessors.PrincipalNameAccessor
All Implemented Interfaces:
PropertyAccessor, StylablePropertyAccessor

public class PrincipalNameAccessor
extends ReadOnlyPropertyAccessor
implements StylablePropertyAccessor


Method Summary
static PrincipalNameAccessor get()
           
 java.lang.String getDisplayName(java.util.Locale locale)
          Obtain a localized display name for the property accessed using this PropertyAccessor
 java.lang.String getPropertyName()
          Obtain name of property being accessed via this accessor.
 java.lang.String getStyle(Item item)
           
 java.lang.String getValue(Item item)
          Get value of property for given Item
 boolean isRequired()
           
 
Methods inherited from class com.centrasite.control.discovery.ReadOnlyPropertyAccessor
getReferencedItem, isReadOnly, setValue
 
Methods inherited from class com.centrasite.control.discovery.AbstractPropertyAccessor
editProperty, getActivatingMessage, getCommands, getDescription, getReferencedItem, getSelectReferencedItemDescriptor, isComplexProperty, isDateProperty, isIntProperty, isTextEditAllowed, selectReferencedItem
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static PrincipalNameAccessor get()

getPropertyName

public java.lang.String getPropertyName()
Description copied from interface: PropertyAccessor
Obtain name of property being accessed via this accessor.

Specified by:
getPropertyName in interface PropertyAccessor
Returns:
The string being returned is an internal string NOT being constructed by means of I18N infrastructure. It may be used internally for storing user-specific settings for example selected columns in a table. This selection should not depend on the language!

getDisplayName

public java.lang.String getDisplayName(java.util.Locale locale)
Description copied from class: AbstractPropertyAccessor
Obtain a localized display name for the property accessed using this PropertyAccessor

Specified by:
getDisplayName in interface PropertyAccessor
Overrides:
getDisplayName in class AbstractPropertyAccessor
Returns:
the localized display name

getValue

public java.lang.String getValue(Item item)
                          throws java.lang.Exception
Description copied from interface: PropertyAccessor
Get value of property for given Item

Specified by:
getValue in interface PropertyAccessor
Throws:
java.lang.Exception

getStyle

public java.lang.String getStyle(Item item)
Specified by:
getStyle in interface StylablePropertyAccessor
Parameters:
item - Used to make style decisions based on the specifics of the current item to be displayed.
Returns:
String formated after CSS specification.

isRequired

public boolean isRequired()