public class UsersDomainsCacheManagerService extends Object implements UsersDomainsCacheManager
Constructor and Description |
---|
UsersDomainsCacheManagerService() |
Modifier and Type | Method and Description |
---|---|
void |
addDomain(Domain domain)
Adds a domain to the cache manager
|
UserDomainInfo |
associateUserWithDomain(String userName,
String domainName)
Associate a user with a domain
|
void |
create()
This method is called upon the bean creation as part
of the management Service bean lifecycle.
|
Domain |
getDomain(String domainName)
Get domain according to its name
|
static UsersDomainsCacheManager |
getInstance() |
UserDomainInfo |
getUserDomainInfo(String userName,
String domainName)
Gets a user domain info according to user name
|
void |
postConstruct() |
void |
removeDomain(String domainName)
Remove domain info object based on domain name
|
void |
removeUserDomainInfo(String userName,
String domainName)
Removes a user domain info based on ad user
|
public void addDomain(Domain domain)
UsersDomainsCacheManager
addDomain
in interface UsersDomainsCacheManager
@PostConstruct public void postConstruct()
public void create()
public static UsersDomainsCacheManager getInstance()
public UserDomainInfo associateUserWithDomain(String userName, String domainName)
UsersDomainsCacheManager
associateUserWithDomain
in interface UsersDomainsCacheManager
public UserDomainInfo getUserDomainInfo(String userName, String domainName)
UsersDomainsCacheManager
getUserDomainInfo
in interface UsersDomainsCacheManager
public Domain getDomain(String domainName)
UsersDomainsCacheManager
getDomain
in interface UsersDomainsCacheManager
public void removeUserDomainInfo(String userName, String domainName)
UsersDomainsCacheManager
removeUserDomainInfo
in interface UsersDomainsCacheManager
public void removeDomain(String domainName)
UsersDomainsCacheManager
removeDomain
in interface UsersDomainsCacheManager
Copyright © 2012. All Rights Reserved.