org.apache.jetspeed.security.om.impl
Class InternalPrincipalImpl

java.lang.Object
  extended by org.apache.jetspeed.security.om.impl.InternalPrincipalImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, InternalPrincipal
Direct Known Subclasses:
InternalGroupPrincipalImpl, InternalRolePrincipalImpl, InternalUserPrincipalImpl

public class InternalPrincipalImpl
extends java.lang.Object
implements InternalPrincipal

InternalPrincipalinterface implementation.

Author:
David Le Strat
See Also:
Serialized Form

Field Summary
protected  java.lang.String ojbConcreteClass
           The special attribute telling OJB the object's concrete type.
 
Constructor Summary
InternalPrincipalImpl()
           InternalPrincipal implementation default constructor.
InternalPrincipalImpl(java.lang.String classname, java.lang.String fullPath)
           InternalPrincipal constructor given a classname and name.
 
Method Summary
 java.lang.String getClassname()
           Getter for the principal classname.
 java.sql.Timestamp getCreationDate()
           Getter for creation date.
 java.lang.String getFullPath()
           Getter for the principal full path.
 java.sql.Timestamp getModifiedDate()
           Getter for the modified date.
 java.util.Collection getPermissions()
           Getter for the principal permissions.
 long getPrincipalId()
           Getter for the principal id.
 boolean isEnabled()
          Getter for the enabled state
 boolean isMappingOnly()
           Getter for isMappingOnly.
 void setClassname(java.lang.String classname)
           Setter for the principal classname.
 void setCreationDate(java.sql.Timestamp creationDate)
           Setter for the creation date.
 void setEnabled(boolean enabled)
          Setter for the enabled state
 void setFullPath(java.lang.String fullPath)
           Setter for the principal name.
 void setMappingOnly(boolean isMappingOnly)
           Setter for isMappingOnly.
 void setModifiedDate(java.sql.Timestamp modifiedDate)
           Setter for the modified date.
 void setPermissions(java.util.Collection permissions)
           Setter for the principal permissions.
 void setPrincipalId(long principalId)
           Setter for the principal id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ojbConcreteClass

protected java.lang.String ojbConcreteClass

The special attribute telling OJB the object's concrete type.

NOTE: this attribute MUST be called ojbConcreteClass

Constructor Detail

InternalPrincipalImpl

public InternalPrincipalImpl()

InternalPrincipal implementation default constructor.


InternalPrincipalImpl

public InternalPrincipalImpl(java.lang.String classname,
                             java.lang.String fullPath)

InternalPrincipal constructor given a classname and name.

Parameters:
classname - The classname.
fullPath - The full path.
Method Detail

getPrincipalId

public long getPrincipalId()
Description copied from interface: InternalPrincipal

Getter for the principal id.

Specified by:
getPrincipalId in interface InternalPrincipal
Returns:
The principal id.
See Also:
InternalPrincipal.getPrincipalId()

setPrincipalId

public void setPrincipalId(long principalId)
Description copied from interface: InternalPrincipal

Setter for the principal id.

Specified by:
setPrincipalId in interface InternalPrincipal
Parameters:
principalId - The principal id.
See Also:
InternalPrincipal.setPrincipalId(long)

getClassname

public java.lang.String getClassname()
Description copied from interface: InternalPrincipal

Getter for the principal classname.

Specified by:
getClassname in interface InternalPrincipal
Returns:
The principal classname.
See Also:
InternalPrincipal.getClassname()

setClassname

public void setClassname(java.lang.String classname)
Description copied from interface: InternalPrincipal

Setter for the principal classname.

Specified by:
setClassname in interface InternalPrincipal
Parameters:
classname - The principal classname.
See Also:
InternalPrincipal.setClassname(java.lang.String)

isMappingOnly

public boolean isMappingOnly()
Description copied from interface: InternalPrincipal

Getter for isMappingOnly.

Specified by:
isMappingOnly in interface InternalPrincipal
Returns:
Returns the isMappingOnly.

setMappingOnly

public void setMappingOnly(boolean isMappingOnly)
Description copied from interface: InternalPrincipal

Setter for isMappingOnly.

Specified by:
setMappingOnly in interface InternalPrincipal
Parameters:
isMappingOnly - The isMappingOnly to set.

getFullPath

public java.lang.String getFullPath()
Description copied from interface: InternalPrincipal

Getter for the principal full path.

The full path allows to retrieve the principal preferences from the preferences services.

Specified by:
getFullPath in interface InternalPrincipal
Returns:
The principal full path.
See Also:
InternalPrincipal.getFullPath()

setFullPath

public void setFullPath(java.lang.String fullPath)
Description copied from interface: InternalPrincipal

Setter for the principal name.

The full path allows to retrieve the principal preferences from the preferences services.

Specified by:
setFullPath in interface InternalPrincipal
Parameters:
fullPath - The principal full path.
See Also:
InternalPrincipal.setFullPath(java.lang.String)

getPermissions

public java.util.Collection getPermissions()
Description copied from interface: InternalPrincipal

Getter for the principal permissions.

Specified by:
getPermissions in interface InternalPrincipal
Returns:
The principal permissions.
See Also:
InternalPrincipal.getPermissions()

setPermissions

public void setPermissions(java.util.Collection permissions)
Description copied from interface: InternalPrincipal

Setter for the principal permissions.

Specified by:
setPermissions in interface InternalPrincipal
Parameters:
permissions - The principal permissions.
See Also:
InternalPrincipal.setPermissions(java.util.Collection)

getCreationDate

public java.sql.Timestamp getCreationDate()
Description copied from interface: InternalPrincipal

Getter for creation date.

Specified by:
getCreationDate in interface InternalPrincipal
Returns:
The creation date.
See Also:
InternalPrincipal.getCreationDate()

setCreationDate

public void setCreationDate(java.sql.Timestamp creationDate)
Description copied from interface: InternalPrincipal

Setter for the creation date.

Specified by:
setCreationDate in interface InternalPrincipal
Parameters:
creationDate - The creation date.
See Also:
InternalPrincipal.setCreationDate(java.sql.Timestamp)

getModifiedDate

public java.sql.Timestamp getModifiedDate()
Description copied from interface: InternalPrincipal

Getter for the modified date.

Specified by:
getModifiedDate in interface InternalPrincipal
Returns:
The modified date.
See Also:
InternalPrincipal.getModifiedDate()

setModifiedDate

public void setModifiedDate(java.sql.Timestamp modifiedDate)
Description copied from interface: InternalPrincipal

Setter for the modified date.

Specified by:
setModifiedDate in interface InternalPrincipal
Parameters:
modifiedDate - The modified date.
See Also:
InternalPrincipal.setModifiedDate(java.sql.Timestamp)

isEnabled

public boolean isEnabled()
Description copied from interface: InternalPrincipal

Getter for the enabled state

Specified by:
isEnabled in interface InternalPrincipal
Returns:
true if enabled
See Also:
InternalPrincipal.isEnabled()

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: InternalPrincipal
Setter for the enabled state

Specified by:
setEnabled in interface InternalPrincipal
Parameters:
enabled - The enabled state
See Also:
InternalPrincipal.setEnabled(boolean)


Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.