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

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

public class InternalPrincipalImpl
extends Object
implements org.apache.jetspeed.security.om.InternalPrincipal

InternalPrincipalinterface implementation.

Author:
David Le Strat
See Also:
Serialized Form

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

Field Detail

serialVersionUID

private static final long serialVersionUID
The serial version uid.

See Also:
Constant Field Values

principalId

private long principalId
The principal id.


classname

private String classname
The class name.


isMappingOnly

private boolean isMappingOnly
The is mapping only.


fullPath

private String fullPath
The full path.


permissions

private Collection permissions
The collection of permissions.


creationDate

private Timestamp creationDate
The creation date.


modifiedDate

private Timestamp modifiedDate
The modified date.


enabled

private boolean enabled
The enabled state.


ojbConcreteClass

protected 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(String classname,
                             String fullPath)

InternalPrincipal constructor given a classname and name.

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

getPrincipalId

public long getPrincipalId()
Specified by:
getPrincipalId in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.getPrincipalId()

setPrincipalId

public void setPrincipalId(long principalId)
Specified by:
setPrincipalId in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.setPrincipalId(long)

getClassname

public String getClassname()
Specified by:
getClassname in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.getClassname()

setClassname

public void setClassname(String classname)
Specified by:
setClassname in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.setClassname(java.lang.String)

isMappingOnly

public boolean isMappingOnly()
Specified by:
isMappingOnly in interface org.apache.jetspeed.security.om.InternalPrincipal
Returns:
Returns the isMappingOnly.

setMappingOnly

public void setMappingOnly(boolean isMappingOnly)
Specified by:
setMappingOnly in interface org.apache.jetspeed.security.om.InternalPrincipal
Parameters:
isMappingOnly - The isMappingOnly to set.

getFullPath

public String getFullPath()
Specified by:
getFullPath in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.getFullPath()

setFullPath

public void setFullPath(String fullPath)
Specified by:
setFullPath in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.setFullPath(java.lang.String)

getPermissions

public Collection getPermissions()
Specified by:
getPermissions in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.getPermissions()

setPermissions

public void setPermissions(Collection permissions)
Specified by:
setPermissions in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.setPermissions(java.util.Collection)

getCreationDate

public Timestamp getCreationDate()
Specified by:
getCreationDate in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.getCreationDate()

setCreationDate

public void setCreationDate(Timestamp creationDate)
Specified by:
setCreationDate in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.setCreationDate(java.sql.Timestamp)

getModifiedDate

public Timestamp getModifiedDate()
Specified by:
getModifiedDate in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.getModifiedDate()

setModifiedDate

public void setModifiedDate(Timestamp modifiedDate)
Specified by:
setModifiedDate in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.setModifiedDate(java.sql.Timestamp)

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.isEnabled()

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface org.apache.jetspeed.security.om.InternalPrincipal
See Also:
InternalPrincipal.setEnabled(boolean)


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