org.nakedobjects.security
Class Role

java.lang.Object
  extended byjava.util.Observable
      extended byorg.nakedobjects.object.AbstractNakedObject
          extended byorg.nakedobjects.security.Role
All Implemented Interfaces:
java.io.Externalizable, Naked, NakedObject, java.io.Serializable

public class Role
extends AbstractNakedObject

See Also:
Serialized Form

Constructor Summary
Role()
           
Role(java.lang.String name)
           
 
Method Summary
 TextString getName()
           
 boolean isSame(Role role)
           
 Permission permission(Role role)
           
 Title title()
          every Naked Object is required to provide a Title by which it is identified to the end user.
 
Methods inherited from class org.nakedobjects.object.AbstractNakedObject
about, aboutExplorationActionClass, aboutExplorationActionClone, aboutExplorationActionMakePersistent, canClone, contextualTitle, copyObject, created, createInstance, createInstance, createTransientInstance, deleted, destroy, equals, explorationActionClass, explorationActionClone, explorationActionMakePersistent, getClassHelpText, getClassName, getCollectiveName, getFullClassName, getIconName, getIdString, getNakedClass, getObjectHelpText, getObjectStore, getOid, hashCode, iconImage, init, isEmpty, isFinder, isLookupElement, isPersistent, isResolved, isSameAs, isValid, makeFinder, makePersistent, objectChanged, readExternal, resolve, resolve, setChangedAndNotifyObservers, setOid, setResolved, summary, toString, writeExternal
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.object.NakedObject
addObserver, countObservers, deleteObserver, hasChanged
 

Constructor Detail

Role

public Role()

Role

public Role(java.lang.String name)
Method Detail

getName

public final TextString getName()

isSame

public boolean isSame(Role role)

permission

public Permission permission(Role role)

title

public Title title()
Description copied from class: AbstractNakedObject
every Naked Object is required to provide a Title by which it is identified to the end user.

Unless overridden, the String representation of this Title object is available through contextualTitle().

Specified by:
title in interface Naked
Overrides:
title in class AbstractNakedObject
See Also:
AbstractNakedObject.contextualTitle()