|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.security.internal.JResources
public class JResources
Field Summary | |
---|---|
static 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(String name)
|
Enumeration<JResource> |
getResources()
|
boolean |
hasJmxService()
Allows to chek if the jmx service reference is set. |
JResource |
remove(String resourceName)
Removes the named JResource from the JResource list. |
void |
setDomainName(String domain)
Set the domain name |
void |
setJmxService(JmxService jmx)
Set the jmx service reference |
void |
setSecurityService(SecurityService service)
Set the security service reference |
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 String HEADER_XML
Constructor Detail |
---|
public JResources()
s
- the parent SecurityServiceMethod Detail |
---|
public void addJResource(JResource jResource) throws Exception
jResource
- an instance of JResource or subclasses (JResourceMemory, JResourceDS,...)
Exception
- if the resource name already existspublic JResource remove(String resourceName) throws Exception
resourceName
- JResource name to be removed
Exception
- when JResource is not found with given name.public JResource getJResource(String name)
name
- the name of the JResource to get.
public Enumeration<JResource> getResources()
public String toXML()
public void setSecurityService(SecurityService service)
sec
- security service referencepublic void setDomainName(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 |