public interface ResourceAccessManager
extends com.centrasite.jaxr.CentraSiteResourceAccessManager
GroupManager
, UserManager
, RoleManager
and PermissionManager
instancesCentraSiteConnection
, the current logged in CentraSiteUser
and the JAAS Subject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SYSTEM_JAAS_CONTEXT_PROPERTY
System property to override the default JAAS context property (CentraSite).
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the underlying connections if need be.
|
javax.security.auth.Subject |
getAuthenticatedSubject()
Get the authenticated subject (populated with principals).
|
com.centrasite.jaxr.CentraSiteConnection |
getConnection()
Get instance of JAXR Connection.
|
CentraSiteUser |
getCurrentUser()
Get the currently logged-in user instance.
|
ExternalRepositoryManager |
getExternalRepositoryManager()
Get instance of
ExternalRepositoryManager . |
GroupManager |
getGroupManager()
Get instance of
GroupManager . |
Importer |
getImporter()
Get instance of
Importer . |
PermissionManager |
getPermissionManager()
Get instance of
PermissionManager . |
java.lang.String |
getRepositoryType()
Returns type of the external repository being currently used.
|
RoleManager |
getRoleManager()
Get instance of
RoleManager . |
UserManager |
getUserManager()
Get instance of
UserManager . |
void |
open()
Open the underlying connections if need be.
|
static final java.lang.String SYSTEM_JAAS_CONTEXT_PROPERTY
com.centrasite.jaxr.CentraSiteConnection getConnection()
ResourceAccessManager
.CentraSiteConnection
instanceRoleManager getRoleManager() throws JAXRException, SagGeneralSecurityException
RoleManager
. This method will return only a single instance per ResourceAccessManager
.RoleManager
instanceJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursjava.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.UserManager getUserManager() throws JAXRException, SagGeneralSecurityException
UserManager
. This method will return only a single instance per ResourceAccessManager
.UserManager
instanceJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursjava.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.GroupManager getGroupManager() throws JAXRException, SagGeneralSecurityException
GroupManager
. This method will return only a single instance per ResourceAccessManager
.GroupManager
instanceJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursjava.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.PermissionManager getPermissionManager() throws JAXRException, SagGeneralSecurityException
PermissionManager
. This method will return only a single instance per ResourceAccessManager
.PermissionManager
instanceJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursjava.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.ExternalRepositoryManager getExternalRepositoryManager() throws JAXRException, SagGeneralSecurityException
ExternalRepositoryManager
. This method will return only a single instance per ResourceAccessManager
.ExternalRepositoryManager
instanceJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursjava.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.Importer getImporter() throws JAXRException, SagGeneralSecurityException
Importer
. This method will return only a single instance per ResourceAccessManager
.Importer
instanceJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursCentraSiteUser getCurrentUser()
CentraSiteUser
instance.java.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.void open() throws JAXRException, SagGeneralSecurityException, javax.security.auth.login.LoginException, java.io.IOException
ResourceAccessManagerFactory#createResourceManager(java.util.Set)
does not initiate the connection to the
external repository. It merely instantiates the ResourceAccessManager
instance. The connection to the external
repository is created only when this method is called.JAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursjavax.security.auth.login.LoginException
- If a login error occurs while trying to open the connection. Ex: Invalid credentialsjava.io.IOException
- If an input/output error occursvoid close() throws JAXRException, SagGeneralSecurityException, javax.security.auth.login.LoginException
JAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursjavax.security.auth.login.LoginException
- If a login error occurs while trying to close the connectionjavax.security.auth.Subject getAuthenticatedSubject()
Subject
instance.java.lang.String getRepositoryType() throws SagGeneralSecurityException
IUserRepositoryManager
provides implementation,
this is just a dummy method that will always return "OS".SagGeneralSecurityException
- In case of security errorjava.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.