org.jasig.cas.services
Class InMemoryServiceRegistryDaoImpl

java.lang.Object
  extended by org.jasig.cas.services.InMemoryServiceRegistryDaoImpl
All Implemented Interfaces:
ServiceRegistryDao

public final class InMemoryServiceRegistryDaoImpl
extends java.lang.Object
implements ServiceRegistryDao

Default In Memory Service Registry Dao for test/demonstration purposes.

Since:
3.1
Version:
$Revision: 1.1 $ $Date: 2005/08/19 18:27:17 $
Author:
Scott Battaglia

Constructor Summary
InMemoryServiceRegistryDaoImpl()
           
 
Method Summary
 boolean delete(RegisteredService registeredService)
          Remove the service from the data store.
 RegisteredService findServiceById(long id)
           
 java.util.List<RegisteredService> load()
          Retrieve the services from the data store.
 RegisteredService save(RegisteredService registeredService)
          Persist the service in the data store.
 void setRegisteredServices(java.util.List<RegisteredService> registeredServices)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryServiceRegistryDaoImpl

public InMemoryServiceRegistryDaoImpl()
Method Detail

delete

public boolean delete(RegisteredService registeredService)
Description copied from interface: ServiceRegistryDao
Remove the service from the data store.

Specified by:
delete in interface ServiceRegistryDao
Parameters:
registeredService - the service to remove.
Returns:
true if it was removed, false otherwise.

findServiceById

public RegisteredService findServiceById(long id)
Specified by:
findServiceById in interface ServiceRegistryDao

load

public java.util.List<RegisteredService> load()
Description copied from interface: ServiceRegistryDao
Retrieve the services from the data store.

Specified by:
load in interface ServiceRegistryDao
Returns:
the collection of services.

save

public RegisteredService save(RegisteredService registeredService)
Description copied from interface: ServiceRegistryDao
Persist the service in the data store.

Specified by:
save in interface ServiceRegistryDao
Parameters:
registeredService - the service to persist.
Returns:
the updated RegisteredService.

setRegisteredServices

public void setRegisteredServices(java.util.List<RegisteredService> registeredServices)


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