|
||||||||||
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 |
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 |
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 |
setName(String name)
Set the name of this resource |
void |
setUsers(Hashtable users)
|
Method Detail |
---|
void setName(String name)
name
- Name of the resourceString getName()
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 removedJUser findUser(String name) throws JResourceException
name
- the wanted user name
JResourceException
- if there is an error during the searchboolean isValidUser(JUser user, String credentials)
user
- user to check its credentialscredentials
- the given credentials
ArrayList getArrayListCombinedRoles(JUser user) throws JResourceException
user
- the given user
JResourceException
- if it failsHashtable getUsers()
void setUsers(Hashtable users)
users
- The users to set.void clearCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |