org.objectweb.jonas.security.JResources Class Reference

Collaboration diagram for org.objectweb.jonas.security.JResources:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JResources (SecurityService s)
void addJResource (JResource jResource) throws Exception
JResource remove (String resourceName) throws Exception
JResource getJResource (String name)
Enumeration getResources ()
String toXML ()

Static Public Attributes

final String HEADER_XML

Detailed Description

Author:
Guillaume Sauthier

Definition at line 41 of file JResources.java.


Constructor & Destructor Documentation

org.objectweb.jonas.security.JResources.JResources SecurityService  s  ) 
 

Create a JResoures list attached to a given SecurityService.

Parameters:
s the parent SecurityService

Definition at line 66 of file JResources.java.


Member Function Documentation

void org.objectweb.jonas.security.JResources.addJResource JResource  jResource  )  throws Exception
 

Add the Resource (memory, ldap, datasource,...)

Parameters:
jResource an instance of JResource or subclasses (JResourceMemory, JResourceDS,...)
Exceptions:
Exception if the resource name already exists

Definition at line 76 of file JResources.java.

References org.objectweb.jonas.security.SecurityService.bindResource().

Here is the call graph for this function:

JResource org.objectweb.jonas.security.JResources.getJResource String  name  ) 
 

Parameters:
name the name of the JResource to get.
Returns:
Returns the named JResource

Definition at line 105 of file JResources.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.getJResource().

Enumeration org.objectweb.jonas.security.JResources.getResources  ) 
 

Returns:
Returns the JResources Enumeration

Definition at line 112 of file JResources.java.

JResource org.objectweb.jonas.security.JResources.remove String  resourceName  )  throws Exception
 

Removes the named JResource from the JResource list.

Parameters:
resourceName JResource name to be removed
Returns:
the removed JResource
Exceptions:
Exception when JResource is not found with given name.

Definition at line 92 of file JResources.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.removeJResource().

String org.objectweb.jonas.security.JResources.toXML  ) 
 

String representation of the JOnAS realm

Returns:
the xml representation of the JOnAS realm

Definition at line 120 of file JResources.java.

Referenced by org.objectweb.jonas.security.JonasSecurityServiceImpl.toXML().


Member Data Documentation

final String org.objectweb.jonas.security.JResources.HEADER_XML [static]
 

Initial value:

        "<?xml version='1.0' encoding='utf-8'?>\n"
        + "<!DOCTYPE jonas-realm PUBLIC\n"
        + "          \"-//ObjectWeb//DTD JOnAS realm 1.0//EN\"\n"
        + "          \"http://www.objectweb.org/jonas/dtds/jonas-realm_1_0.dtd\">\n"
Xml Header

Definition at line 56 of file JResources.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:38 2005 for JOnAS by  doxygen 1.3.9.1