org.romaframework.module.users.domain
Class BaseProfile

java.lang.Object
  extended by org.romaframework.module.users.domain.BaseProfile
All Implemented Interfaces:
java.io.Serializable, java.security.Principal

public class BaseProfile
extends java.lang.Object
implements java.io.Serializable, java.security.Principal

See Also:
Serialized Form

Nested Class Summary
static class BaseProfile.Mode
           
 
Field Summary
static byte MODE_ALLOW_ALL_BUT
           
static byte MODE_DENY_ALL_BUT
           
 
Constructor Summary
BaseProfile()
           
BaseProfile(java.lang.String iName, BaseProfile iParent, BaseProfile.Mode iMode, java.lang.String iHomePage)
           
 
Method Summary
 BaseProfile addFunction(java.lang.String iName, boolean iAllowed)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Map<java.lang.String,BaseFunction> getFunctions()
           
 java.lang.String getHomePage()
           
 BaseProfile.Mode getMode()
           
 java.lang.String getName()
           
 java.lang.String getNotes()
           
 BaseProfile getParent()
           
 int hashCode()
           
 void onParent()
           
 BaseProfile removeFunction(java.lang.String iKey)
           
 BaseProfile setFunctions(java.util.Map<java.lang.String,BaseFunction> functions)
           
 BaseProfile setHomePage(java.lang.String homePage)
           
 BaseProfile setMode(BaseProfile.Mode iInheritMode)
           
 BaseProfile setName(java.lang.String name)
           
 BaseProfile setNotes(java.lang.String notes)
           
 BaseProfile setParent(BaseProfile parent)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MODE_ALLOW_ALL_BUT

public static final byte MODE_ALLOW_ALL_BUT
See Also:
Constant Field Values

MODE_DENY_ALL_BUT

public static final byte MODE_DENY_ALL_BUT
See Also:
Constant Field Values
Constructor Detail

BaseProfile

public BaseProfile()

BaseProfile

public BaseProfile(java.lang.String iName,
                   BaseProfile iParent,
                   BaseProfile.Mode iMode,
                   java.lang.String iHomePage)
Method Detail

onParent

public void onParent()

toString

public java.lang.String toString()
Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object

getMode

public BaseProfile.Mode getMode()

setMode

public BaseProfile setMode(BaseProfile.Mode iInheritMode)

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal

setName

public BaseProfile setName(java.lang.String name)

getParent

public BaseProfile getParent()

setParent

public BaseProfile setParent(BaseProfile parent)

getFunctions

public java.util.Map<java.lang.String,BaseFunction> getFunctions()

setFunctions

public BaseProfile setFunctions(java.util.Map<java.lang.String,BaseFunction> functions)

addFunction

public BaseProfile addFunction(java.lang.String iName,
                               boolean iAllowed)

removeFunction

public BaseProfile removeFunction(java.lang.String iKey)

getNotes

public java.lang.String getNotes()

setNotes

public BaseProfile setNotes(java.lang.String notes)

getHomePage

public java.lang.String getHomePage()

setHomePage

public BaseProfile setHomePage(java.lang.String homePage)

hashCode

public int hashCode()
Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.security.Principal
Overrides:
equals in class java.lang.Object