|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JResource
This interface represents JOnAS realm factory objects.
| Method Summary | |
|---|---|
void |
clearCache()
Clear the cache. |
JUser |
findUser(String name)
Check if a user is found and return it. |
ArrayList<String> |
getArrayListCombinedRoles(JUser user)
Get all the roles (from the roles and from the groups) of the given user. |
String |
getName()
Get the name of this resource. |
Reference |
getReference()
Retrieves the Reference of the object. |
Hashtable<String,JUser> |
getUsers()
Return users. |
boolean |
isValidUser(JUser user,
String credentials)
Check if the given credential is the right credential for the given user. |
void |
removeMBeans()
Remove all the Mbeans used by this resource. |
void |
setDomainName(String domain)
Set the domain name |
void |
setJmxService(JmxService jmxService)
Set the jmx service reference |
void |
setName(String name)
Set the name of this resource. |
void |
setSecurityService(SecurityService sec)
Set the security service reference |
void |
setUsers(Hashtable<String,JUser> users)
|
| Method Detail |
|---|
void setName(String name)
name - Name of the resourceString getName()
void setJmxService(JmxService jmxService)
jmxService - the jmx service referencevoid setDomainName(String domain)
domain - the domain namevoid setSecurityService(SecurityService sec)
sec - security service reference
Reference getReference()
throws NamingException
NamingException - if a naming exception was encountered while
retrieving the reference.
void removeMBeans()
throws JResourceException
JResourceException - if the MBeans can not be removed
JUser findUser(String name)
throws JResourceException
name - the wanted user name
JResourceException - if there is an error during the search
boolean isValidUser(JUser user,
String credentials)
user - user to check its credentialscredentials - the given credentials
ArrayList<String> getArrayListCombinedRoles(JUser user)
throws JResourceException
user - the given user
JResourceException - if it failsHashtable<String,JUser> getUsers()
void setUsers(Hashtable<String,JUser> users)
users - The users to set.void clearCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||