org.apache.jetspeed.sso.impl
Class SSOSiteImpl

java.lang.Object
  extended byorg.apache.jetspeed.sso.impl.SSOSiteImpl
All Implemented Interfaces:
org.apache.jetspeed.sso.SSOSite

public class SSOSiteImpl
extends Object
implements org.apache.jetspeed.sso.SSOSite

SSOSiteImpl Class holding information about the Site and credentials for Single Sign on SSO. OJB will map the database entries into this class

Version:
$Id: SSOSiteImpl.java 188283 2005-01-28 22:37:51Z rogerrut $
Author:
Roger Ruttimann

Field Summary
private  boolean isAllowUserSet
           
private  boolean isCertificateRequired
           
private  String name
           
private  Collection principals
           
private  Collection remotePrincipals
           
private  int siteId
           
private  String siteURL
           
 
Constructor Summary
SSOSiteImpl()
           
 
Method Summary
 void addPrincipal(org.apache.jetspeed.sso.SSOPrincipal principal)
          addPrincipal Adds the SSOPrincipal to the principals collection
 String getName()
           
 Collection getPrincipals()
           
 Collection getRemotePrincipals()
           
 int getSiteId()
           
 String getSiteURL()
           
 boolean isAllowUserSet()
           
 boolean isCertificateRequired()
           
 void removePrincipal(long principalId)
          removePrincipal() removes a principal from the principals collection
 void setAllowUserSet(boolean isAllowUserSet)
           
 void setCertificateRequired(boolean isCertificateRequired)
           
 void setName(String name)
           
 void setPrincipals(Collection principals)
           
 void setRemotePrincipals(Collection remotePrincipals)
           
 void setSiteId(int siteId)
           
 void setSiteURL(String siteURL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

siteId

private int siteId

name

private String name

siteURL

private String siteURL

isAllowUserSet

private boolean isAllowUserSet

isCertificateRequired

private boolean isCertificateRequired

principals

private Collection principals

remotePrincipals

private Collection remotePrincipals
Constructor Detail

SSOSiteImpl

public SSOSiteImpl()
Method Detail

isAllowUserSet

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

setAllowUserSet

public void setAllowUserSet(boolean isAllowUserSet)
Specified by:
setAllowUserSet in interface org.apache.jetspeed.sso.SSOSite
Parameters:
isAllowUserSet - The isAllowUserSet to set.

isCertificateRequired

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

setCertificateRequired

public void setCertificateRequired(boolean isCertificateRequired)
Specified by:
setCertificateRequired in interface org.apache.jetspeed.sso.SSOSite
Parameters:
isCertificateRequired - The isCertificateRequired to set.

getName

public String getName()
Specified by:
getName in interface org.apache.jetspeed.sso.SSOSite
Returns:
Returns the name.

setName

public void setName(String name)
Specified by:
setName in interface org.apache.jetspeed.sso.SSOSite
Parameters:
name - The name to set.

getPrincipals

public Collection getPrincipals()
Specified by:
getPrincipals in interface org.apache.jetspeed.sso.SSOSite
Returns:
Returns the principals.

setPrincipals

public void setPrincipals(Collection principals)
Specified by:
setPrincipals in interface org.apache.jetspeed.sso.SSOSite
Parameters:
principals - The principals to set.

getSiteId

public int getSiteId()
Specified by:
getSiteId in interface org.apache.jetspeed.sso.SSOSite
Returns:
Returns the siteId.

setSiteId

public void setSiteId(int siteId)
Specified by:
setSiteId in interface org.apache.jetspeed.sso.SSOSite
Parameters:
siteId - The siteId to set.

getSiteURL

public String getSiteURL()
Specified by:
getSiteURL in interface org.apache.jetspeed.sso.SSOSite
Returns:
Returns the siteURL.

setSiteURL

public void setSiteURL(String siteURL)
Specified by:
setSiteURL in interface org.apache.jetspeed.sso.SSOSite
Parameters:
siteURL - The siteURL to set.

addPrincipal

public void addPrincipal(org.apache.jetspeed.sso.SSOPrincipal principal)
                  throws org.apache.jetspeed.sso.SSOException
addPrincipal Adds the SSOPrincipal to the principals collection

Specified by:
addPrincipal in interface org.apache.jetspeed.sso.SSOSite
Throws:
org.apache.jetspeed.sso.SSOException

removePrincipal

public void removePrincipal(long principalId)
                     throws org.apache.jetspeed.sso.SSOException
removePrincipal() removes a principal from the principals collection

Specified by:
removePrincipal in interface org.apache.jetspeed.sso.SSOSite
Throws:
org.apache.jetspeed.sso.SSOException

getRemotePrincipals

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

setRemotePrincipals

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


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