|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.services.AbstractRegisteredService
@Entity public abstract class AbstractRegisteredService
Base class for mutable, persistable registered services.
| Field Summary | |
|---|---|
protected String |
serviceId
|
| Constructor Summary | |
|---|---|
AbstractRegisteredService()
|
|
| Method Summary | |
|---|---|
Object |
clone()
|
int |
compareTo(RegisteredService other)
Compares this instance with the other registered service based on
evaluation order, name. |
void |
copyFrom(RegisteredService source)
Copies the properties of the source service into this instance. |
boolean |
equals(Object o)
|
List<String> |
getAllowedAttributes()
Returns the list of allowed attributes. |
String |
getDescription()
Returns the description of the service. |
int |
getEvaluationOrder()
Gets the relative evaluation order of this service when determining matches. |
long |
getId()
The numeric identifier for this service. |
String |
getName()
Returns the name of the service. |
String |
getServiceId()
The unique identifier for this service. |
String |
getTheme()
Returns a short theme name. |
String |
getUsernameAttribute()
Get the name of the attribute this service prefers to consume as username. |
int |
hashCode()
|
boolean |
isAllowedToProxy()
Is this application allowed to take part in the proxying capabilities of CAS? |
boolean |
isAnonymousAccess()
Determines whether the service is allowed anonymous or privileged access to user information. |
boolean |
isEnabled()
Is this application currently allowed to use CAS? |
boolean |
isIgnoreAttributes()
Sets whether we should bother to read the attribute list or not. |
boolean |
isSsoEnabled()
Does this application participate in the SSO session? |
protected abstract AbstractRegisteredService |
newInstance()
|
void |
setAllowedAttributes(List<String> allowedAttributes)
|
void |
setAllowedToProxy(boolean allowedToProxy)
|
void |
setAnonymousAccess(boolean anonymousAccess)
|
void |
setDescription(String description)
|
void |
setEnabled(boolean enabled)
|
void |
setEvaluationOrder(int evaluationOrder)
Sets the relative evaluation order of this service when determining matches. |
void |
setId(long id)
|
void |
setIgnoreAttributes(boolean ignoreAttributes)
|
void |
setName(String name)
|
abstract void |
setServiceId(String id)
|
void |
setSsoEnabled(boolean ssoEnabled)
|
void |
setTheme(String theme)
|
void |
setUsernameAttribute(String username)
Sets the name of the user attribute to use as the username when providing usernames to this registered service. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jasig.cas.services.RegisteredService |
|---|
matches |
| Field Detail |
|---|
protected String serviceId
| Constructor Detail |
|---|
public AbstractRegisteredService()
| Method Detail |
|---|
public boolean isAnonymousAccess()
RegisteredService
isAnonymousAccess in interface RegisteredServicepublic void setAnonymousAccess(boolean anonymousAccess)
public List<String> getAllowedAttributes()
RegisteredService
getAllowedAttributes in interface RegisteredServicepublic long getId()
RegisteredService
getId in interface RegisteredServicepublic String getDescription()
RegisteredService
getDescription in interface RegisteredServicepublic String getServiceId()
RegisteredService
getServiceId in interface RegisteredServicepublic String getName()
RegisteredService
getName in interface RegisteredServicepublic String getTheme()
RegisteredService
getTheme in interface RegisteredServicepublic boolean isAllowedToProxy()
RegisteredService
isAllowedToProxy in interface RegisteredServicepublic boolean isEnabled()
RegisteredService
isEnabled in interface RegisteredServicepublic boolean isSsoEnabled()
RegisteredService
isSsoEnabled in interface RegisteredServicepublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void setAllowedAttributes(List<String> allowedAttributes)
public void setAllowedToProxy(boolean allowedToProxy)
public void setDescription(String description)
public void setEnabled(boolean enabled)
public abstract void setServiceId(String id)
public void setId(long id)
public void setName(String name)
public void setSsoEnabled(boolean ssoEnabled)
public void setTheme(String theme)
public boolean isIgnoreAttributes()
RegisteredService
isIgnoreAttributes in interface RegisteredServicepublic void setIgnoreAttributes(boolean ignoreAttributes)
public void setEvaluationOrder(int evaluationOrder)
RegisteredService
setEvaluationOrder in interface RegisteredServicepublic int getEvaluationOrder()
RegisteredService
getEvaluationOrder in interface RegisteredServicepublic String getUsernameAttribute()
RegisteredService
getUsernameAttribute in interface RegisteredServiceString representing the name of the attribute to consume as usernamenull indicating the default usernamepublic void setUsernameAttribute(String username)
Note: The username attribute will have no affect on services that are marked for anonymous access.
username - attribute to release for this service that may be one of the following values:
null to enforce default CAS behaviorisAnonymousAccess()
public Object clone()
throws CloneNotSupportedException
clone in interface RegisteredServiceclone in class ObjectCloneNotSupportedExceptionpublic void copyFrom(RegisteredService source)
source - Source service from which to copy properties.public int compareTo(RegisteredService other)
other registered service based on
evaluation order, name. The name comparison is case insensitive.
compareTo in interface Comparable<RegisteredService>getEvaluationOrder()public String toString()
toString in class Objectprotected abstract AbstractRegisteredService newInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||