pt.digitalis.dif.dem.managers.impl
Class RegistrationManagerImpl

java.lang.Object
  extended by pt.digitalis.dif.dem.managers.impl.RegistrationManagerImpl
All Implemented Interfaces:
IRegistrationManager

public class RegistrationManagerImpl
extends Object
implements IRegistrationManager

Manages the DEM Entities registration process.

Author:
Pedro Viegas pviegas@digitalis.pt, Rodrigo Gonçalves rgoncalves@digitalis.pt
Created on:
2007/06/01

Constructor Summary
RegistrationManagerImpl()
           
 
Method Summary
 void addToRegistry(Entity type, String entityID, String name, boolean registrable)
          Adds a new record to the registry.
 LicenseEditionType getApplicationEdition(String applicationID)
          Inspects the Application Edition
 LicenseEditionType getProviderEdition(String providerID)
          Inspects the Provider Edition
 LicenseEditionType getServiceEdition(String serviceID)
          Inspects the Service Edition
 String getStageClientName(IStage stage)
          Inspects the Stage Client Name
 LicenseEditionType getStageEdition(String stageID)
          Inspects the Stage Edition
 boolean isApplicationRegistered(String applicationID)
          Inspects the registration state of a given application
 boolean isApplicationRegistrable(String applicationID)
          Inspects the registration possibility of a given application
 boolean isProviderRegistered(String providerID)
          Inspects the registration state of a given provider
 boolean isProviderRegistrable(String providerID)
          Inspects the registration possibility of a given provider
 boolean isServiceRegistered(String serviceID)
          Inspects the registration state of a given service
 boolean isServiceRegistrable(String serviceID)
          Inspects the registration possibility of a given service
 boolean isStageRegistered(String stageId)
          Inspects the registration state of a given stage
 boolean isStageRegistrable(String stageId)
          Inspects the registration possibility of a given stage
 boolean registerApplication(String applicationID, String name, String key)
          Registers a given application if it's not already registered.
 boolean registerProvider(String providerID, String name, String key)
          Registers a given provider if it's not already registered.
 boolean registerService(String serviceID, String name, String key)
          Registers a given service if it's not already registered.
 boolean registerStage(String stageId, String name, String key)
          Registers a given stage if it's not already registered.
 void unregisterApplication(String applicationID)
          Unregisters a given application if it's registered.
 void unregisterProvider(String providerID)
          Unregisters a given provider if it's registered.
 void unregisterService(String serviceID)
          Unregisters a given service if it's registered.
 void unregisterStage(String stageId)
          Unregisters a given stage if it's registered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistrationManagerImpl

public RegistrationManagerImpl()
Method Detail

addToRegistry

public void addToRegistry(Entity type,
                          String entityID,
                          String name,
                          boolean registrable)
Description copied from interface: IRegistrationManager
Adds a new record to the registry. User registrations will be automatically picked up by the Registry

Specified by:
addToRegistry in interface IRegistrationManager
Parameters:
type - the Entity type
entityID - the entity ID
name - the name to register to (null if not registered by default)
registrable - if the Entity is registrable
See Also:
IRegistrationManager.addToRegistry(pt.digitalis.dif.dem.Entity, java.lang.String, java.lang.String, boolean)

getApplicationEdition

public LicenseEditionType getApplicationEdition(String applicationID)
Description copied from interface: IRegistrationManager
Inspects the Application Edition

Specified by:
getApplicationEdition in interface IRegistrationManager
Parameters:
applicationID - the application ID
Returns:
LicenseEditionType
See Also:
IRegistrationManager.getApplicationEdition(java.lang.String)

getProviderEdition

public LicenseEditionType getProviderEdition(String providerID)
Description copied from interface: IRegistrationManager
Inspects the Provider Edition

Specified by:
getProviderEdition in interface IRegistrationManager
Parameters:
providerID - the provider ID
Returns:
LicenseEditionType
See Also:
IRegistrationManager.getProviderEdition(java.lang.String)

getServiceEdition

public LicenseEditionType getServiceEdition(String serviceID)
Description copied from interface: IRegistrationManager
Inspects the Service Edition

Specified by:
getServiceEdition in interface IRegistrationManager
Parameters:
serviceID - the service ID
Returns:
LicenseEditionType
See Also:
IRegistrationManager.getServiceEdition(java.lang.String)

getStageClientName

public String getStageClientName(IStage stage)
Description copied from interface: IRegistrationManager
Inspects the Stage Client Name

Specified by:
getStageClientName in interface IRegistrationManager
Parameters:
stage - the stage ID
Returns:
the stage client name
See Also:
IRegistrationManager.getStageClientName(pt.digitalis.dif.dem.interfaces.IStage)

getStageEdition

public LicenseEditionType getStageEdition(String stageID)
Description copied from interface: IRegistrationManager
Inspects the Stage Edition

Specified by:
getStageEdition in interface IRegistrationManager
Parameters:
stageID - the stage ID
Returns:
LicenseEditionType
See Also:
IRegistrationManager.getStageEdition(java.lang.String)

isApplicationRegistered

public boolean isApplicationRegistered(String applicationID)
Description copied from interface: IRegistrationManager
Inspects the registration state of a given application

Specified by:
isApplicationRegistered in interface IRegistrationManager
Parameters:
applicationID - the provider ID
Returns:
T if the application is registered, F otherwise
See Also:
IRegistrationManager.isApplicationRegistered(java.lang.String)

isApplicationRegistrable

public boolean isApplicationRegistrable(String applicationID)
Description copied from interface: IRegistrationManager
Inspects the registration possibility of a given application

Specified by:
isApplicationRegistrable in interface IRegistrationManager
Parameters:
applicationID - the provider ID
Returns:
T if the application is registrable, F otherwise
See Also:
IRegistrationManager.isApplicationRegistrable(java.lang.String)

isProviderRegistered

public boolean isProviderRegistered(String providerID)
Description copied from interface: IRegistrationManager
Inspects the registration state of a given provider

Specified by:
isProviderRegistered in interface IRegistrationManager
Parameters:
providerID - the provider ID
Returns:
T if the provider is registered, F otherwise
See Also:
IRegistrationManager.isProviderRegistered(java.lang.String)

isProviderRegistrable

public boolean isProviderRegistrable(String providerID)
Description copied from interface: IRegistrationManager
Inspects the registration possibility of a given provider

Specified by:
isProviderRegistrable in interface IRegistrationManager
Parameters:
providerID - the provider ID
Returns:
T if the provider is registrable, F otherwise
See Also:
IRegistrationManager.isProviderRegistrable(java.lang.String)

isServiceRegistered

public boolean isServiceRegistered(String serviceID)
Description copied from interface: IRegistrationManager
Inspects the registration state of a given service

Specified by:
isServiceRegistered in interface IRegistrationManager
Parameters:
serviceID - the service ID
Returns:
T if the service is registered, F otherwise
See Also:
IRegistrationManager.isServiceRegistered(java.lang.String)

isServiceRegistrable

public boolean isServiceRegistrable(String serviceID)
Description copied from interface: IRegistrationManager
Inspects the registration possibility of a given service

Specified by:
isServiceRegistrable in interface IRegistrationManager
Parameters:
serviceID - the service ID
Returns:
T if the service is registrable, F otherwise
See Also:
IRegistrationManager.isServiceRegistrable(java.lang.String)

isStageRegistered

public boolean isStageRegistered(String stageId)
Description copied from interface: IRegistrationManager
Inspects the registration state of a given stage

Specified by:
isStageRegistered in interface IRegistrationManager
Parameters:
stageId - the stage ID
Returns:
T if the stage is registered, F otherwise
See Also:
IRegistrationManager.isStageRegistered(java.lang.String)

isStageRegistrable

public boolean isStageRegistrable(String stageId)
Description copied from interface: IRegistrationManager
Inspects the registration possibility of a given stage

Specified by:
isStageRegistrable in interface IRegistrationManager
Parameters:
stageId - the stage ID
Returns:
T if the stage is registrable, F otherwise
See Also:
IRegistrationManager.isStageRegistrable(java.lang.String)

registerApplication

public boolean registerApplication(String applicationID,
                                   String name,
                                   String key)
                            throws RegistrationManagerException
Description copied from interface: IRegistrationManager
Registers a given application if it's not already registered.

Specified by:
registerApplication in interface IRegistrationManager
Parameters:
applicationID - the application ID
name - the name to register to
key - the key to register
Returns:
T if the registration was successful
Throws:
RegistrationManagerException - if a error occurrs in registration manager
See Also:
IRegistrationManager.registerApplication(java.lang.String, java.lang.String, java.lang.String)

registerProvider

public boolean registerProvider(String providerID,
                                String name,
                                String key)
                         throws RegistrationManagerException
Description copied from interface: IRegistrationManager
Registers a given provider if it's not already registered.

Specified by:
registerProvider in interface IRegistrationManager
Parameters:
providerID - the provider ID
name - the name to register to
key - the key to register
Returns:
T if the registration was successful
Throws:
RegistrationManagerException - if a error occurrs in registration manager
See Also:
IRegistrationManager.registerProvider(java.lang.String, java.lang.String, java.lang.String)

registerService

public boolean registerService(String serviceID,
                               String name,
                               String key)
                        throws RegistrationManagerException
Description copied from interface: IRegistrationManager
Registers a given service if it's not already registered.

Specified by:
registerService in interface IRegistrationManager
Parameters:
serviceID - the service ID
name - the name to register to
key - the key to register
Returns:
T if the registration was successful
Throws:
RegistrationManagerException - if a error occurrs in registration manager
See Also:
IRegistrationManager.registerService(java.lang.String, java.lang.String, java.lang.String)

registerStage

public boolean registerStage(String stageId,
                             String name,
                             String key)
                      throws RegistrationManagerException
Description copied from interface: IRegistrationManager
Registers a given stage if it's not already registered.

Specified by:
registerStage in interface IRegistrationManager
Parameters:
stageId - the stage ID
name - the name to register to
key - the key to register
Returns:
T if the registration was successful
Throws:
RegistrationManagerException - if a error occurrs in registration manager
See Also:
IRegistrationManager.registerStage(java.lang.String, java.lang.String, java.lang.String)

unregisterApplication

public void unregisterApplication(String applicationID)
Description copied from interface: IRegistrationManager
Unregisters a given application if it's registered.

Specified by:
unregisterApplication in interface IRegistrationManager
Parameters:
applicationID - the application ID
See Also:
IRegistrationManager.unregisterApplication(java.lang.String)

unregisterProvider

public void unregisterProvider(String providerID)
Description copied from interface: IRegistrationManager
Unregisters a given provider if it's registered.

Specified by:
unregisterProvider in interface IRegistrationManager
Parameters:
providerID - the provider ID
See Also:
IRegistrationManager.unregisterProvider(java.lang.String)

unregisterService

public void unregisterService(String serviceID)
Description copied from interface: IRegistrationManager
Unregisters a given service if it's registered.

Specified by:
unregisterService in interface IRegistrationManager
Parameters:
serviceID - the service ID
See Also:
IRegistrationManager.unregisterService(java.lang.String)

unregisterStage

public void unregisterStage(String stageId)
Description copied from interface: IRegistrationManager
Unregisters a given stage if it's registered.

Specified by:
unregisterStage in interface IRegistrationManager
Parameters:
stageId - the stage ID
See Also:
IRegistrationManager.unregisterStage(java.lang.String)


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.