|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.presence.api.authorization.AuthorizationServiceManager
public class AuthorizationServiceManager
This class is a POJO wrapper that used by an authorization service to register/unregister to the presence server. It is implemented as a singleton that ensures one instance of this class. Once an authorization service is registered, the presence server will invoke its methods for getting authorization rules.
Field Summary | |
---|---|
private static javax.naming.Context |
_ctx
JNDI initial context |
private static AuthorizationServiceManager |
_instance
Singleton instance |
private static java.util.logging.Logger |
_logger
Logger for authorization service messages |
private static java.lang.String |
REGISTER_AUTHORIZATION_SERVICE_JNDI_NAME
A JNDI name for EJB that the manager wraps |
Constructor Summary | |
---|---|
AuthorizationServiceManager()
Constructs a singleton instance of this class (the code implementation prevents multiple instances) |
Method Summary | |
---|---|
private com.ibm.presence.api.authorization.RegisterAuthorizationService |
getRegisterAuthorizationService()
Returns a RegisterAuthorizationService bean that this class wraps |
static AuthorizationServiceManager |
instance()
Returns an instance of this AuthorizationService manager |
int |
registerAuthorizationService(AuthorizationServiceData data)
Registers an authorization service. |
int |
unregisterAuthorizationService(AuthorizationServiceData data)
Unregister an authorization service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.logging.Logger _logger
private static final AuthorizationServiceManager _instance
private static final java.lang.String REGISTER_AUTHORIZATION_SERVICE_JNDI_NAME
private static javax.naming.Context _ctx
Constructor Detail |
---|
public AuthorizationServiceManager()
Method Detail |
---|
public static AuthorizationServiceManager instance()
private com.ibm.presence.api.authorization.RegisterAuthorizationService getRegisterAuthorizationService()
public int registerAuthorizationService(AuthorizationServiceData data) throws com.ibm.presence.api.exceptions.DataLayerException
data
- includes an AuthorizationService object to register
com.ibm.presence.api.exceptions.DataLayerException
public int unregisterAuthorizationService(AuthorizationServiceData data)
data
- includes an AuthorizationService object to unregister
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |