|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.app.RemoteRegistryService
public class RemoteRegistryService
This is a core class used by application that use registry in the remote mode. This class is used
to create remote registry instances for user sessions. The class acts in a manner that is similar
to an EmbeddedRegistryService
.
Constructor Summary | |
---|---|
RemoteRegistryService(String registryURL,
String username,
String password)
Creates a new remote registry service. |
|
RemoteRegistryService(String registryURL,
String username,
String password,
org.wso2.carbon.user.core.service.RealmService realmService,
String chroot)
Creates a new remote registry service. |
|
RemoteRegistryService(String registryURL,
String username,
String password,
org.wso2.carbon.user.core.service.RealmService realmService,
String chroot,
boolean populateConfiguration)
Creates a new remote registry service. |
|
RemoteRegistryService(String registryURL,
String username,
String password,
String chroot)
Creates a new remote registry service. |
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(String userName)
Creates a Registry instance for the given user from the configuration registry space. |
UserRegistry |
getConfigUserRegistry(String userName,
int tenantId)
Creates a Registry instance for the given user from the configuration registry space with the tenant id. |
UserRegistry |
getConfigUserRegistry(String userName,
String password)
Creates Registry instances for normal users from the configuration registry space. |
UserRegistry |
getConfigUserRegistry(String userName,
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(String userName)
Creates a Registry instance for anonymous user from the Governance space. |
UserRegistry |
getGovernanceUserRegistry(String userName,
int tenantId)
Creates a Registry instance for anonymous user from the Governance space. |
UserRegistry |
getGovernanceUserRegistry(String userName,
String password)
Creates a Registry instance for anonymous user from the Governance space. |
UserRegistry |
getGovernanceUserRegistry(String userName,
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(String userName)
Creates a Registry instance for anonymous user which contains the entire registry tree starting from '/'. |
UserRegistry |
getRegistry(String userName,
int tenantId)
Creates a Registry instance for anonymous user which contains the entire registry tree starting from '/'. |
UserRegistry |
getRegistry(String userName,
int tenantId,
String chroot)
Creates a Registry instance for anonymous user which contains the entire registry tree starting from '/'. |
UserRegistry |
getRegistry(String userName,
String password)
Creates a Registry instance for anonymous user which contains the entire registry tree starting from '/'. |
UserRegistry |
getRegistry(String userName,
String password,
int tenantId)
Creates a Registry instance for anonymous user which contains the entire registry tree starting from '/'. |
UserRegistry |
getRegistry(String userName,
String password,
int tenantId,
String chroot)
Creates a Registry instance for anonymous user which contains the entire registry tree starting from '/'. |
UserRegistry |
getSystemRegistry()
Returns a registry to be used for system operations. |
UserRegistry |
getSystemRegistry(int tenantId)
Returns a registry to be used for system operations. |
UserRegistry |
getSystemRegistry(int tenantId,
String chroot)
Returns a registry to be used for system operations. |
org.wso2.carbon.user.core.UserRealm |
getUserRealm(int tenantId)
This will return a realm specific to the tenant. |
UserRegistry |
getUserRegistry()
Creates a UserRegistry instance for anonymous user. |
UserRegistry |
getUserRegistry(String userName)
Creates a Registry instance for the given user. |
UserRegistry |
getUserRegistry(String userName,
int tenantId)
Creates a Registry instance for the given user with tenant id. |
UserRegistry |
getUserRegistry(String userName,
int tenantId,
String chroot)
Creates a Registry instance for the given user with tenant id. |
UserRegistry |
getUserRegistry(String username,
String password)
Creates UserRegistry instances for normal users. |
UserRegistry |
getUserRegistry(String username,
String password,
int tenantId)
Creates UserRegistry instances for normal users. |
UserRegistry |
getUserRegistry(String username,
String password,
int tenantId,
String chroot)
Creates UserRegistry instances for normal users. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteRegistryService(String registryURL, String username, String password) throws RegistryException
registryURL
- URL to the registry.username
- the user name.password
- the password.
RegistryException
- if an error occurred.public RemoteRegistryService(String registryURL, String username, String password, String chroot) throws RegistryException
registryURL
- the registry url.username
- the user name.password
- the password.chroot
- the chroot.
RegistryException
- if an error occurred.public RemoteRegistryService(String registryURL, String username, String password, org.wso2.carbon.user.core.service.RealmService realmService, String chroot) throws RegistryException
registryURL
- the registry url.username
- the user name.password
- the password.realmService
- the OSGi user realm service.chroot
- the chroot.
RegistryException
- if an error occurred.public RemoteRegistryService(String registryURL, String username, String password, org.wso2.carbon.user.core.service.RealmService realmService, String chroot, boolean populateConfiguration) throws RegistryException
registryURL
- the registry url.username
- the user name.password
- the password.realmService
- the OSGi user realm service.chroot
- the chroot.populateConfiguration
- whether the configuration must be populated or not.
RegistryException
- if an error occurred.Method Detail |
---|
public UserRegistry getUserRegistry() throws RegistryException
RegistryService
RegistryException
- if an error occurspublic UserRegistry getSystemRegistry() throws RegistryException
RegistryService
RegistryException
- if an error occurspublic UserRegistry getSystemRegistry(int tenantId) throws RegistryException
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 occurspublic UserRegistry getSystemRegistry(int tenantId, String chroot) throws RegistryException
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.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 occurspublic UserRegistry getUserRegistry(String username, String password) throws RegistryException
RegistryService
username
- User name of the user.password
- Password of the user.
RegistryException
- if an error occurspublic UserRegistry getUserRegistry(String username, String password, int tenantId) throws RegistryException
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 occurspublic UserRegistry getUserRegistry(String username, String password, int tenantId, String chroot) throws RegistryException
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 occurspublic UserRegistry getUserRegistry(String userName) throws RegistryException
RegistryService
userName
- User name of the user.
RegistryException
- if an error occurspublic UserRegistry getUserRegistry(String userName, int tenantId) throws RegistryException
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 occurspublic UserRegistry getUserRegistry(String userName, int tenantId, String chroot) throws RegistryException
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 occurspublic org.wso2.carbon.user.core.UserRealm getUserRealm(int tenantId) throws RegistryException
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 occurspublic UserRegistry getRegistry(String userName, int tenantId, String chroot) throws RegistryException
RegistryService
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 occurspublic UserRegistry getRegistry(String userName, String password, int tenantId, String chroot) throws RegistryException
RegistryService
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 occurspublic UserRegistry getRegistry() throws RegistryException
RegistryService
getRegistry
in interface org.wso2.carbon.registry.api.RegistryService
RegistryException
- if an error occurspublic UserRegistry getRegistry(String userName) throws RegistryException
RegistryService
getRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.
RegistryException
- if an error occurspublic UserRegistry getRegistry(String userName, int tenantId) throws RegistryException
RegistryService
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 occurspublic UserRegistry getRegistry(String userName, String password) throws RegistryException
RegistryService
getRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.password
- Password of the user.
RegistryException
- if an error occurspublic UserRegistry getRegistry(String userName, String password, int tenantId) throws RegistryException
RegistryService
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 occurspublic UserRegistry getLocalRepository() throws RegistryException
RegistryService
getLocalRepository
in interface org.wso2.carbon.registry.api.RegistryService
RegistryException
- if an error occurspublic UserRegistry getLocalRepository(int tenantId) throws RegistryException
RegistryService
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 occurspublic UserRegistry getConfigSystemRegistry(int tenantId) throws RegistryException
RegistryService
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 occurspublic UserRegistry getConfigSystemRegistry() throws RegistryException
RegistryService
getConfigSystemRegistry
in interface org.wso2.carbon.registry.api.RegistryService
RegistryException
- if an error occurspublic UserRegistry getConfigUserRegistry(String userName, int tenantId) throws RegistryException
RegistryService
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 occurspublic UserRegistry getConfigUserRegistry(String userName, String password, int tenantId) throws RegistryException
RegistryService
getConfigUserRegistry
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 occurspublic UserRegistry getConfigUserRegistry() throws RegistryException
RegistryService
getConfigUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
RegistryException
- if an error occurspublic UserRegistry getConfigUserRegistry(String userName) throws RegistryException
RegistryService
getConfigUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.
RegistryException
- if an error occurspublic UserRegistry getConfigUserRegistry(String userName, String password) throws RegistryException
RegistryService
getConfigUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.password
- Password of the user.
RegistryException
- if an error occurspublic UserRegistry getGovernanceSystemRegistry(int tenantId) throws RegistryException
RegistryService
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 occurspublic UserRegistry getGovernanceSystemRegistry() throws RegistryException
RegistryService
getGovernanceSystemRegistry
in interface org.wso2.carbon.registry.api.RegistryService
RegistryException
- if an error occurspublic UserRegistry getGovernanceUserRegistry(String userName, int tenantId) throws RegistryException
RegistryService
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 occurspublic UserRegistry getGovernanceUserRegistry(String userName, String password, int tenantId) throws RegistryException
RegistryService
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 occurspublic UserRegistry getGovernanceUserRegistry() throws RegistryException
RegistryService
getGovernanceUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
RegistryException
- if an error occurspublic UserRegistry getGovernanceUserRegistry(String userName) throws RegistryException
RegistryService
getGovernanceUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.
RegistryException
- if an error occurspublic UserRegistry getGovernanceUserRegistry(String userName, String password) throws RegistryException
RegistryService
getGovernanceUserRegistry
in interface org.wso2.carbon.registry.api.RegistryService
userName
- User name of the user.password
- Password of the user.
RegistryException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |