|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RegistryService
This interface can be used to implement an OSGi Service of the Registry. By doing so, the registry would become accessible beyond the Registry Kernel. The OSGi service also can be used as means to make sure that no registry related logic executes before the registry has been fully initialized, and made operational. Also, when the registry is no longer in service, all external entities that use the registry would also become automatically suspended.
Method Summary | |
---|---|
UserRegistry |
getConfigSystemRegistry()
Returns a registry to be used for system operations. |
UserRegistry |
getConfigSystemRegistry(int tenantId)
Returns a registry to be used for system operations. |
UserRegistry |
getConfigUserRegistry()
Creates a Registry instance for anonymous user from the configuration registry space. |
UserRegistry |
getConfigUserRegistry(java.lang.String userName)
Creates a Registry instance for the given user from the configuration registry space. |
UserRegistry |
getConfigUserRegistry(java.lang.String userName,
int tenantId)
Creates a Registry instance for the given user from the configuration registry space with the tenant id. |
UserRegistry |
getConfigUserRegistry(java.lang.String userName,
java.lang.String password)
Creates Registry instances for normal users from the configuration registry space. |
UserRegistry |
getConfigUserRegistry(java.lang.String userName,
java.lang.String password,
int tenantId)
Creates Registry instances for normal users from the configuration registry space. |
UserRegistry |
getGovernanceSystemRegistry()
Creates a Registry instance for the Governance space. |
UserRegistry |
getGovernanceSystemRegistry(int tenantId)
Creates a Registry instance for the Governance space. |
UserRegistry |
getGovernanceUserRegistry()
Creates a Registry instance for anonymous user from the Governance space. |
UserRegistry |
getGovernanceUserRegistry(java.lang.String userName)
Creates a Registry instance for anonymous user from the Governance space. |
UserRegistry |
getGovernanceUserRegistry(java.lang.String userName,
int tenantId)
Creates a Registry instance for anonymous user from the Governance space. |
UserRegistry |
getGovernanceUserRegistry(java.lang.String userName,
java.lang.String password)
Creates a Registry instance for anonymous user from the Governance space. |
UserRegistry |
getGovernanceUserRegistry(java.lang.String userName,
java.lang.String password,
int tenantId)
Creates a Registry instance for anonymous user from the Governance space. |
UserRegistry |
getLocalRepository()
Returns a registry to be used for node-specific system operations. |
UserRegistry |
getLocalRepository(int tenantId)
Returns a registry to be used for node-specific system operations. |
UserRegistry |
getRegistry()
Creates a Registry instance for anonymous user which contains the entire registry tree starting from '/'. |
UserRegistry |
getRegistry(java.lang.String userName)
Creates a Registry instance for anonymous user which contains the entire registry tree starting from '/'. |
UserRegistry |
getRegistry(java.lang.String userName,
int tenantId)
Creates a Registry instance for anonymous user which contains the entire registry tree starting from '/'. |
UserRegistry |
getRegistry(java.lang.String userName,
int tenantId,
java.lang.String chroot)
Creates a Registry instance for anonymous user which contains the entire registry tree starting from '/'. |
UserRegistry |
getRegistry(java.lang.String userName,
java.lang.String password)
Creates a Registry instance for anonymous user which contains the entire registry tree starting from '/'. |
UserRegistry |
getRegistry(java.lang.String userName,
java.lang.String password,
int tenantId)
Creates a Registry instance for anonymous user which contains the entire registry tree starting from '/'. |
UserRegistry |
getRegistry(java.lang.String userName,
java.lang.String password,
int tenantId,
java.lang.String chroot)
Creates a Registry instance for anonymous user which contains the entire registry tree starting from '/'. |
UserRegistry |
getSystemRegistry()
Deprecated. |
UserRegistry |
getSystemRegistry(int tenantId)
Deprecated. |
UserRegistry |
getSystemRegistry(int tenantId,
java.lang.String chroot)
Deprecated. |
org.wso2.carbon.user.core.UserRealm |
getUserRealm(int tenantId)
This will return a realm specific to the tenant. |
UserRegistry |
getUserRegistry()
Deprecated. |
UserRegistry |
getUserRegistry(java.lang.String userName)
Deprecated. |
UserRegistry |
getUserRegistry(java.lang.String userName,
int tenantId)
Deprecated. |
UserRegistry |
getUserRegistry(java.lang.String userName,
int tenantId,
java.lang.String chroot)
Deprecated. |
UserRegistry |
getUserRegistry(java.lang.String userName,
java.lang.String password)
Deprecated. |
UserRegistry |
getUserRegistry(java.lang.String userName,
java.lang.String password,
int tenantId)
Deprecated. |
UserRegistry |
getUserRegistry(java.lang.String userName,
java.lang.String password,
int tenantId,
java.lang.String chroot)
Deprecated. |
Method Detail |
---|
@Deprecated UserRegistry getUserRegistry() throws RegistryException
RegistryException
- if an error occurs@Deprecated UserRegistry getSystemRegistry() throws RegistryException
RegistryException
- if an error occurs@Deprecated UserRegistry getSystemRegistry(int tenantId) throws RegistryException
tenantId
- the tenant id of the system. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.
RegistryException
- if an error occurs@Deprecated UserRegistry getSystemRegistry(int tenantId, java.lang.String chroot) throws RegistryException
tenantId
- the tenant id of the system. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.chroot
- to return a chrooted registry. The whole registry can be accessed by using
the chroot, '/', and a subset of the registry can be accessed by using a
chroot, '/x/y/z'. For example, the repository of the configuration local
registry can be obtained from '/_system/config/repository'.
RegistryException
- if an error occurs@Deprecated UserRegistry getUserRegistry(java.lang.String userName, java.lang.String password) throws RegistryException
userName
- User name of the user.password
- Password of the user.
RegistryException
- if an error occurs@Deprecated UserRegistry getUserRegistry(java.lang.String userName) throws RegistryException
userName
- User name of the user.
RegistryException
- if an error occurs@Deprecated UserRegistry getUserRegistry(java.lang.String userName, java.lang.String password, int tenantId) throws RegistryException
userName
- User name of the user.password
- Password of the user.tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.
RegistryException
- if an error occurs@Deprecated UserRegistry getUserRegistry(java.lang.String userName, java.lang.String password, int tenantId, java.lang.String chroot) throws RegistryException
userName
- User name of the user.password
- Password of the user.tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.chroot
- to return a chrooted registry. The whole registry can be accessed by using
the chroot, '/', and a subset of the registry can be accessed by using a
chroot, '/x/y/z'. For example, the repository of the configuration local
registry can be obtained from '/_system/config/repository'.
RegistryException
- if an error occurs@Deprecated UserRegistry getUserRegistry(java.lang.String userName, int tenantId) throws RegistryException
userName
- User name of the user.tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.
RegistryException
- if an error occurs@Deprecated UserRegistry getUserRegistry(java.lang.String userName, int tenantId, java.lang.String chroot) throws RegistryException
userName
- User name of the user.tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.chroot
- to return a chrooted registry. The whole registry can be accessed by using
the chroot, '/', and a subset of the registry can be accessed by using a
chroot, '/x/y/z'. For example, the repository of the configuration local
registry can be obtained from '/_system/config/repository'.
RegistryException
- if an error occursorg.wso2.carbon.user.core.UserRealm getUserRealm(int tenantId) throws RegistryException
tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.
RegistryException
- if an error occursUserRegistry getRegistry() throws RegistryException
getRegistry
in interface org.wso2.carbon.registry.api.RegistryService
RegistryException
- if an error occursUserRegistry getRegistry(java.lang.String userName, java.lang.String password) throws RegistryException
getRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.password
- Password of the user.
RegistryException
- if an error occursUserRegistry getRegistry(java.lang.String userName) throws RegistryException
getRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.
RegistryException
- if an error occursUserRegistry getRegistry(java.lang.String userName, java.lang.String password, int tenantId) throws RegistryException
getRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.password
- Password of the user.tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.
RegistryException
- if an error occursUserRegistry getRegistry(java.lang.String userName, java.lang.String password, int tenantId, java.lang.String chroot) throws RegistryException
getRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.password
- Password of the user.tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.chroot
- to return a chrooted registry. The whole registry can be accessed by using
the chroot, '/', and a subset of the registry can be accessed by using a
chroot, '/x/y/z'. For example, the repository of the configuration local
registry can be obtained from '/_system/config/repository'.
RegistryException
- if an error occursUserRegistry getRegistry(java.lang.String userName, int tenantId) throws RegistryException
getRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.
RegistryException
- if an error occursUserRegistry getRegistry(java.lang.String userName, int tenantId, java.lang.String chroot) throws RegistryException
getRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.chroot
- to return a chrooted registry. The whole registry can be accessed by using
the chroot, '/', and a subset of the registry can be accessed by using a
chroot, '/x/y/z'. For example, the repository of the configuration local
registry can be obtained from '/_system/config/repository'.
RegistryException
- if an error occursUserRegistry getLocalRepository() throws RegistryException
getLocalRepository
in interface org.wso2.carbon.registry.api.RegistryService
RegistryException
- if an error occursUserRegistry getLocalRepository(int tenantId) throws RegistryException
getLocalRepository
in interface org.wso2.carbon.registry.api.RegistryService
tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.
RegistryException
- if an error occursUserRegistry getConfigSystemRegistry() throws RegistryException
getConfigSystemRegistry
in interface org.wso2.carbon.registry.api.RegistryService
RegistryException
- if an error occursUserRegistry getConfigSystemRegistry(int tenantId) throws RegistryException
getConfigSystemRegistry
in interface org.wso2.carbon.registry.api.RegistryService
tenantId
- the tenant id of the system. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.
RegistryException
- if an error occursUserRegistry getConfigUserRegistry() throws RegistryException
getConfigUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
RegistryException
- if an error occursUserRegistry getConfigUserRegistry(java.lang.String userName, java.lang.String password) throws RegistryException
getConfigUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.password
- Password of the user.
RegistryException
- if an error occursUserRegistry getConfigUserRegistry(java.lang.String userName) throws RegistryException
getConfigUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.
RegistryException
- if an error occursUserRegistry getConfigUserRegistry(java.lang.String userName, int tenantId) throws RegistryException
getConfigUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.
RegistryException
- if an error occursUserRegistry getConfigUserRegistry(java.lang.String userName, java.lang.String password, int tenantId) throws RegistryException
getConfigUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.password
- Password of the user.
RegistryException
- if an error occursUserRegistry getGovernanceSystemRegistry() throws RegistryException
getGovernanceSystemRegistry
in interface org.wso2.carbon.registry.api.RegistryService
RegistryException
- if an error occursUserRegistry getGovernanceSystemRegistry(int tenantId) throws RegistryException
getGovernanceSystemRegistry
in interface org.wso2.carbon.registry.api.RegistryService
tenantId
- the tenant id of the system. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.
RegistryException
- if an error occursUserRegistry getGovernanceUserRegistry() throws RegistryException
getGovernanceUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
RegistryException
- if an error occursUserRegistry getGovernanceUserRegistry(java.lang.String userName, java.lang.String password) throws RegistryException
getGovernanceUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.password
- Password of the user.
RegistryException
- if an error occursUserRegistry getGovernanceUserRegistry(java.lang.String userName) throws RegistryException
getGovernanceUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.
RegistryException
- if an error occursUserRegistry getGovernanceUserRegistry(java.lang.String userName, java.lang.String password, int tenantId) throws RegistryException
getGovernanceUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.password
- Password of the user.tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.
RegistryException
- if an error occursUserRegistry getGovernanceUserRegistry(java.lang.String userName, int tenantId) throws RegistryException
getGovernanceUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.tenantId
- tenant id of the user tenant. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.
RegistryException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |