org.nees.repo.chef.service
Class BaseNMDSService

java.lang.Object
  extended byTurbineBaseService
      extended byorg.nees.repo.chef.service.BaseNEESService
          extended byorg.nees.repo.chef.service.BaseNMDSService
All Implemented Interfaces:
NMDSService
Direct Known Subclasses:
NMDSOGSIService

public class BaseNMDSService
extends BaseNEESService
implements NMDSService

A CHEF service providing access to a NEES Metadata Service.

Typical Usage:

Used to retrieve an NMDSFacade instance, against which client code can make calls to retrieve, inspect, and modify metadata objects available from the service.

BaseNMDSService takes the following parameters:

Life Cycle:

Same as other CHEF services.

See Also:
Serialized Form

Field Summary
static java.lang.String SERVICE_NAME
          The name of the service.
 
Constructor Summary
BaseNMDSService()
           
 
Method Summary
 java.lang.String getRepositoryTitle()
          Get the full name of the repository.
 Identifier getRootContainerId()
          Get the root container identifier for this repository.
 SessionProvider getSessionProvider(AuthenticIdentity aId)
          Get a session provider that will provide NMDS sessions for the given user
 void init(javax.servlet.ServletConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
The name of the service. Config file entries must match this.

See Also:
Constant Field Values
Constructor Detail

BaseNMDSService

public BaseNMDSService()
Method Detail

getRootContainerId

public Identifier getRootContainerId()
                              throws NMDSException
Description copied from interface: NMDSService
Get the root container identifier for this repository.

Specified by:
getRootContainerId in interface NMDSService
Returns:
the Identifier of the root container
Throws:
NMDSException

getRepositoryTitle

public java.lang.String getRepositoryTitle()
Get the full name of the repository.

Specified by:
getRepositoryTitle in interface NMDSService

getSessionProvider

public SessionProvider getSessionProvider(AuthenticIdentity aId)
Description copied from interface: NMDSService
Get a session provider that will provide NMDS sessions for the given user

Specified by:
getSessionProvider in interface NMDSService
Parameters:
aId - the user's identity
Returns:
an appropriately-configured session provider

init

public void init(javax.servlet.ServletConfig config)
          throws InitializationException
Overrides:
init in class BaseNEESService
Throws:
InitializationException