|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.security.internal.JResources
public class JResources
| Field Summary | |
|---|---|
static java.lang.String |
HEADER_XML
XML Header. |
| Constructor Summary | |
|---|---|
JResources()
Create a JResoures list attached to a given SecurityService. |
|
| Method Summary | |
|---|---|
void |
addJResource(JResource jResource)
Add the Resource (memory, ldap, datasource,...). |
JResource |
getJResource(java.lang.String name)
|
java.util.Enumeration<JResource> |
getResources()
|
boolean |
hasJmxService()
Allows to chek if the jmx service reference is set. |
JResource |
remove(java.lang.String resourceName)
Removes the named JResource from the JResource list. |
void |
setDomainName(java.lang.String domain)
Set the domain name |
void |
setJmxService(JmxService jmx)
Set the jmx service reference |
void |
setSecurityService(SecurityService service)
Set the security service reference |
java.lang.String |
toXML()
String representation of the JOnAS realm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String HEADER_XML
| Constructor Detail |
|---|
public JResources()
s - the parent SecurityService| Method Detail |
|---|
public void addJResource(JResource jResource)
throws java.lang.Exception
jResource - an instance of JResource or subclasses (JResourceMemory, JResourceDS,...)
java.lang.Exception - if the resource name already exists
public JResource remove(java.lang.String resourceName)
throws java.lang.Exception
resourceName - JResource name to be removed
java.lang.Exception - when JResource is not found with given name.public JResource getJResource(java.lang.String name)
name - the name of the JResource to get.
public java.util.Enumeration<JResource> getResources()
public java.lang.String toXML()
public void setSecurityService(SecurityService service)
sec - security service referencepublic void setDomainName(java.lang.String domain)
domain - the domain namepublic void setJmxService(JmxService jmx)
jmxService - the jmx service referencepublic boolean hasJmxService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||