org.apache.jetspeed.sso.impl
Class SSOPrincipalImpl

java.lang.Object
  extended by org.apache.jetspeed.sso.impl.SSOPrincipalImpl
All Implemented Interfaces:
org.apache.jetspeed.sso.SSOPrincipal

public class SSOPrincipalImpl
extends Object
implements org.apache.jetspeed.sso.SSOPrincipal

SSOPrincipalImpl Class used for mapping Principal information for a site. This is the short form of the InternalPrincipalImpl .

Author:
Roger Ruttimann

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
          Permissions not used by required by the interface
private  long principalId
          The principal id.
private  Collection remotePrincipals
          Remote principals for Principal
private  int siteID
          SIteID for Remote principal
 
Constructor Summary
SSOPrincipalImpl()
           InternalPrincipal implementation default constructor.
SSOPrincipalImpl(String classname, String fullPath)
           InternalPrincipal constructor given a classname and name.
 
Method Summary
 void addRemotePrincipal(org.apache.jetspeed.security.om.InternalUserPrincipal principal)
          addRemotePrincipal() adds a principal to the list of remote principals
 String getClassname()
           
 Timestamp getCreationDate()
           
 String getFullPath()
           
 Timestamp getModifiedDate()
           
 Collection getPermissions()
           
 long getPrincipalId()
           
 Collection getRemotePrincipals()
           
 int getSiteID()
           
 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)
           
 void setRemotePrincipals(Collection remotePrincipals)
           
 void setSiteID(int siteID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.


creationDate

private Timestamp creationDate
The creation date.


modifiedDate

private Timestamp modifiedDate
The modified date.


enabled

private boolean enabled
The enabled state.


permissions

private Collection permissions
Permissions not used by required by the interface


remotePrincipals

private Collection remotePrincipals
Remote principals for Principal


siteID

private int siteID
SIteID for Remote principal


ojbConcreteClass

protected String ojbConcreteClass

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

NOTE: this attribute MUST be called ojbConcreteClass

Constructor Detail

SSOPrincipalImpl

public SSOPrincipalImpl()

InternalPrincipal implementation default constructor.


SSOPrincipalImpl

public SSOPrincipalImpl(String classname,
                        String fullPath)

InternalPrincipal constructor given a classname and name.

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

addRemotePrincipal

public void addRemotePrincipal(org.apache.jetspeed.security.om.InternalUserPrincipal principal)
addRemotePrincipal() adds a principal to the list of remote principals

Specified by:
addRemotePrincipal in interface org.apache.jetspeed.sso.SSOPrincipal

getPrincipalId

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

setPrincipalId

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

getClassname

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

setClassname

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

isMappingOnly

public boolean isMappingOnly()
Specified by:
isMappingOnly in interface org.apache.jetspeed.sso.SSOPrincipal
Returns:
Returns the isMappingOnly.

setMappingOnly

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

getFullPath

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

setFullPath

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

getPermissions

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

setPermissions

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

getCreationDate

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

setCreationDate

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

getModifiedDate

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

setModifiedDate

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

isEnabled

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

setEnabled

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

getRemotePrincipals

public Collection getRemotePrincipals()
Specified by:
getRemotePrincipals in interface org.apache.jetspeed.sso.SSOPrincipal
Returns:
Returns the remotePrincipals.

setRemotePrincipals

public void setRemotePrincipals(Collection remotePrincipals)
Specified by:
setRemotePrincipals in interface org.apache.jetspeed.sso.SSOPrincipal
Parameters:
remotePrincipals - The remotePrincipals to set.

getSiteID

public int getSiteID()
Specified by:
getSiteID in interface org.apache.jetspeed.sso.SSOPrincipal
Returns:
Returns the siteID.

setSiteID

public void setSiteID(int siteID)
Specified by:
setSiteID in interface org.apache.jetspeed.sso.SSOPrincipal
Parameters:
siteID - The siteID to set.


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