org.jasig.cas.services
Interface RegisteredService

All Superinterfaces:
java.lang.Cloneable, java.io.Serializable
All Known Implementing Classes:
RegisteredServiceImpl

public interface RegisteredService
extends java.lang.Cloneable, java.io.Serializable

Interface for a service that can be registered by the Services Management interface.

Since:
3.1
Version:
$Revision: 47787 $ $Date: 2010-01-19 23:12:31 -0500 (Tue, 19 Jan 2010) $
Author:
Scott Battaglia

Method Summary
 java.lang.Object clone()
           
 java.util.List<java.lang.String> getAllowedAttributes()
          Returns the list of allowed attributes.
 java.lang.String getDescription()
          Returns the description of the service.
 int getEvaluationOrder()
          Gets the relative evaluation order of this service when determining matches.
 long getId()
           
 java.lang.String getName()
          Returns the name of the service.
 java.lang.String getServiceId()
          The unique identifier for this service.
 java.lang.String getTheme()
          Returns a short theme name.
 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 priveleged 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?
 boolean matches(Service service)
          Returns whether the service matches the registered service.
 

Method Detail

isEnabled

boolean isEnabled()
Is this application currently allowed to use CAS?

Returns:
true if it can use CAS, false otherwise.

isAnonymousAccess

boolean isAnonymousAccess()
Determines whether the service is allowed anonymous or priveleged access to user information. Anonymous access should not return any identifying information such as user id.


isIgnoreAttributes

boolean isIgnoreAttributes()
Sets whether we should bother to read the attribute list or not.

Returns:
true if we should read it, false otherwise.

getAllowedAttributes

java.util.List<java.lang.String> getAllowedAttributes()
Returns the list of allowed attributes.

Returns:
the list of attributes

isAllowedToProxy

boolean isAllowedToProxy()
Is this application allowed to take part in the proxying capabilities of CAS?

Returns:
true if it can, false otherwise.

getServiceId

java.lang.String getServiceId()
The unique identifier for this service.

Returns:
the unique identifier for this service.

getId

long getId()

getName

java.lang.String getName()
Returns the name of the service.

Returns:
the name of the service.

getTheme

java.lang.String getTheme()
Returns a short theme name. Services do not need to have unique theme names.

Returns:
the theme name associated with this service.

isSsoEnabled

boolean isSsoEnabled()
Does this application participate in the SSO session?

Returns:
true if it does, false otherwise.

getDescription

java.lang.String getDescription()
Returns the description of the service.

Returns:
the description of the service.

getEvaluationOrder

int getEvaluationOrder()
Gets the relative evaluation order of this service when determining matches.

Returns:
Evaluation order relative to other registered services. Services with lower values will be evaluated for a match before others.

matches

boolean matches(Service service)
Returns whether the service matches the registered service.

Note, as of 3.1.2, matches are case insensitive.

Parameters:
service - the service to match.
Returns:
true if they match, false otherwise.

clone

java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.