|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.ow2.jonas.lib.reconfig.ReconfigEmitter
org.ow2.jonas.security.internal.realm.factory.AbstractJResource
public abstract class AbstractJResource
This class implements JOnAS realm factory objects. It is build from an xml file by the security service of JOnAS.
| Field Summary |
|---|
| Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Constructor Summary | |
|---|---|
AbstractJResource()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addNotificationListener(NotificationListener arg0,
NotificationFilter arg1,
Object arg2)
Allows for listener objects to receive notifications emitted by this resource. |
void |
clearCache()
|
static org.objectweb.util.monolog.api.Logger |
getLogger()
|
String |
getName()
Get the name of this resource |
protected long |
getSequenceNumber()
Return a sequence number and increase this number. |
Hashtable |
getUsers()
|
protected void |
registerGroupMBean(Group group)
Create and register an MBean for the group |
protected void |
registerRoleMBean(Role role)
Create and register an MBean for this role |
protected void |
registerUserMBean(User user)
Create and register an MBean for the user. |
void |
saveConfig()
Save the resource configuration. |
void |
setDomainName(String domain)
|
void |
setJmxService(org.ow2.jonas.jmx.JmxService jmx)
|
static void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
|
void |
setName(String name)
|
void |
setSecurityService(org.ow2.jonas.security.SecurityService sec)
|
void |
setUsers(Hashtable users)
|
protected void |
unregisterGroupMBean(String resourceName,
String groupName)
Unregister MBean associated to a group |
protected void |
unregisterRoleMBean(String resourceName,
String roleName)
|
protected void |
unregisterUserMBean(String resourceName,
String userName)
Unregister MBean associated to a user. |
| Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
initLogger, sendReconfigNotification, sendSaveNotification |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.naming.Referenceable |
|---|
getReference |
| Methods inherited from interface org.ow2.jonas.security.realm.factory.JResource |
|---|
findUser, getArrayListCombinedRoles, getReference, isValidUser, removeMBeans |
| Constructor Detail |
|---|
public AbstractJResource()
throws Exception
Exception - if a service can't be retrieved| Method Detail |
|---|
public void setDomainName(String domain)
public void setJmxService(org.ow2.jonas.jmx.JmxService jmx)
public void setSecurityService(org.ow2.jonas.security.SecurityService sec)
public void setName(String name)
setName in interface org.ow2.jonas.security.realm.factory.JResourcename - the resource (realm) namepublic String getName()
JResourceMBean
getName in interface JResourceMBeangetName in interface org.ow2.jonas.security.realm.factory.JResourcepublic Hashtable getUsers()
getUsers in interface org.ow2.jonas.security.realm.factory.JResourceprotected long getSequenceNumber()
public void saveConfig()
saveConfig in interface JResourceMBeanpublic static org.objectweb.util.monolog.api.Logger getLogger()
public static void setLogger(org.objectweb.util.monolog.api.Logger logger)
logger - The logger to set.public void setUsers(Hashtable users)
setUsers in interface org.ow2.jonas.security.realm.factory.JResourceusers - the users tablepublic void clearCache()
clearCache in interface org.ow2.jonas.security.realm.factory.JResource
public void addNotificationListener(NotificationListener arg0,
NotificationFilter arg1,
Object arg2)
addNotificationListener in interface NotificationBroadcasteraddNotificationListener in class NotificationBroadcasterSupportarg0 - listener objectarg1 - notification filterarg2 - handback object
protected void registerUserMBean(User user)
throws MalformedObjectNameException
user - the user to be managed
MalformedObjectNameException - if we could not construct ObjectName for the user
protected void unregisterUserMBean(String resourceName,
String userName)
throws MalformedObjectNameException
resourceName - userName -
MalformedObjectNameException - if MBean is not unregistered
protected void registerGroupMBean(Group group)
throws MalformedObjectNameException
group - the group to be managed
MalformedObjectNameException - if MBean is not created
protected void unregisterGroupMBean(String resourceName,
String groupName)
throws MalformedObjectNameException
resourceName - groupName -
MalformedObjectNameException - could not construct ObjectName for the user
protected void registerRoleMBean(Role role)
throws MalformedObjectNameException
role - the role to be managed
MalformedObjectNameException - not construct ObjectName for this role
protected void unregisterRoleMBean(String resourceName,
String roleName)
throws MalformedObjectNameException
resourceName - roleName -
MalformedObjectNameException - could not construct ObjectName for this role
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||