org.apache.aries.jmx.useradmin
Class UserAdmin
java.lang.Object
org.apache.aries.jmx.useradmin.UserAdmin
- All Implemented Interfaces:
- UserAdminMBean
public class UserAdmin
- extends Object
- implements UserAdminMBean
UserAdmin represents UserAdminMBean implementation.
- Version:
- $Rev: 953097 $ $Date: 2010-06-09 18:48:01 +0100 (Wed, 09 Jun 2010) $
- See Also:
UserAdminMBean
| Fields inherited from interface org.osgi.jmx.service.useradmin.UserAdminMBean |
AUTORIZATION_TYPE, CREDENTIALS, CREDENTIALS_ITEM, GROUP_TYPE, MEMBERS, MEMBERS_ITEM, NAME, NAME_ITEM, OBJECTNAME, PROPERTIES, PROPERTIES_ITEM, REQUIRED_MEMBERS, REQUIRED_MEMBERS_ITEM, ROLE_TYPE, ROLES, ROLES_ITEM, TYPE, TYPE_ITEM, USER_TYPE |
|
Constructor Summary |
UserAdmin(org.osgi.service.useradmin.UserAdmin userAdmin)
Constructs new UserAdmin MBean. |
|
Method Summary |
void |
addCredential(String key,
byte[] value,
String username)
|
void |
addCredentialString(String key,
String value,
String username)
|
boolean |
addMember(String groupname,
String rolename)
|
void |
addProperty(String key,
byte[] value,
String rolename)
|
void |
addPropertyString(String key,
String value,
String rolename)
|
boolean |
addRequiredMember(String groupname,
String rolename)
|
void |
createGroup(String name)
|
void |
createRole(String name)
|
void |
createUser(String name)
|
CompositeData |
getAuthorization(String username)
|
TabularData |
getCredentials(String username)
|
CompositeData |
getGroup(String groupname)
|
String[] |
getGroups(String filter)
|
String[] |
getImpliedRoles(String username)
|
String[] |
getMembers(String groupname)
|
TabularData |
getProperties(String rolename)
|
String[] |
getRequiredMembers(String groupname)
|
CompositeData |
getRole(String name)
|
String[] |
getRoles(String filter)
|
CompositeData |
getUser(String username)
|
String[] |
getUsers(String filter)
|
String |
getUserWithProperty(String key,
String value)
|
String[] |
listGroups()
|
String[] |
listRoles()
|
String[] |
listUsers()
|
void |
removeCredential(String key,
String username)
|
boolean |
removeGroup(String name)
|
boolean |
removeMember(String groupname,
String rolename)
|
void |
removeProperty(String key,
String rolename)
|
boolean |
removeRole(String name)
|
boolean |
removeUser(String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserAdmin
public UserAdmin(org.osgi.service.useradmin.UserAdmin userAdmin)
- Constructs new UserAdmin MBean.
- Parameters:
userAdmin - UserAdmin service reference.
addCredential
public void addCredential(String key,
byte[] value,
String username)
throws IOException
- Specified by:
addCredential in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.addCredential(java.lang.String, byte[], java.lang.String)
addCredentialString
public void addCredentialString(String key,
String value,
String username)
throws IOException
- Specified by:
addCredentialString in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.addCredentialString(String, String, String)
addMember
public boolean addMember(String groupname,
String rolename)
throws IOException
- Specified by:
addMember in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.addMember(java.lang.String, java.lang.String)
addPropertyString
public void addPropertyString(String key,
String value,
String rolename)
throws IOException
- Specified by:
addPropertyString in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.addPropertyString(String, String, String)
addProperty
public void addProperty(String key,
byte[] value,
String rolename)
throws IOException
- Specified by:
addProperty in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.addProperty(java.lang.String, byte[], java.lang.String)
addRequiredMember
public boolean addRequiredMember(String groupname,
String rolename)
throws IOException
- Specified by:
addRequiredMember in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.addRequiredMember(java.lang.String, java.lang.String)
createGroup
public void createGroup(String name)
throws IOException
- Specified by:
createGroup in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.createGroup(java.lang.String)
createRole
public void createRole(String name)
throws IOException
- Specified by:
createRole in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.createRole(java.lang.String)
createUser
public void createUser(String name)
throws IOException
- Specified by:
createUser in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.createUser(java.lang.String)
getAuthorization
public CompositeData getAuthorization(String username)
throws IOException
- Specified by:
getAuthorization in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.getAuthorization(java.lang.String)
getCredentials
public TabularData getCredentials(String username)
throws IOException
- Specified by:
getCredentials in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.getCredentials(java.lang.String)
getGroup
public CompositeData getGroup(String groupname)
throws IOException
- Specified by:
getGroup in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.getGroup(java.lang.String)
getGroups
public String[] getGroups(String filter)
throws IOException
- Specified by:
getGroups in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.getGroups(java.lang.String)
getImpliedRoles
public String[] getImpliedRoles(String username)
throws IOException
- Specified by:
getImpliedRoles in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.getImpliedRoles(java.lang.String)
getMembers
public String[] getMembers(String groupname)
throws IOException
- Specified by:
getMembers in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.getMembers(java.lang.String)
getProperties
public TabularData getProperties(String rolename)
throws IOException
- Specified by:
getProperties in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.getProperties(java.lang.String)
getRequiredMembers
public String[] getRequiredMembers(String groupname)
throws IOException
- Specified by:
getRequiredMembers in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.getRequiredMembers(java.lang.String)
getRole
public CompositeData getRole(String name)
throws IOException
- Specified by:
getRole in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.getRole(java.lang.String)
getRoles
public String[] getRoles(String filter)
throws IOException
- Specified by:
getRoles in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.getRoles(java.lang.String)
getUser
public CompositeData getUser(String username)
throws IOException
- Specified by:
getUser in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.getUser(java.lang.String)
getUserWithProperty
public String getUserWithProperty(String key,
String value)
throws IOException
- Specified by:
getUserWithProperty in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.getUserWithProperty(String, String)
getUsers
public String[] getUsers(String filter)
throws IOException
- Specified by:
getUsers in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.getUsers(java.lang.String)
listGroups
public String[] listGroups()
throws IOException
- Specified by:
listGroups in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.listGroups()
listRoles
public String[] listRoles()
throws IOException
- Specified by:
listRoles in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.listRoles()
listUsers
public String[] listUsers()
throws IOException
- Specified by:
listUsers in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.listUsers()
removeCredential
public void removeCredential(String key,
String username)
throws IOException
- Specified by:
removeCredential in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.removeCredential(java.lang.String, java.lang.String)
removeGroup
public boolean removeGroup(String name)
throws IOException
- Specified by:
removeGroup in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.removeGroup(java.lang.String)
removeMember
public boolean removeMember(String groupname,
String rolename)
throws IOException
- Specified by:
removeMember in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.removeMember(java.lang.String, java.lang.String)
removeProperty
public void removeProperty(String key,
String rolename)
throws IOException
- Specified by:
removeProperty in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.removeProperty(java.lang.String, java.lang.String)
removeRole
public boolean removeRole(String name)
throws IOException
- Specified by:
removeRole in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.removeRole(java.lang.String)
removeUser
public boolean removeUser(String name)
throws IOException
- Specified by:
removeUser in interface UserAdminMBean
- Throws:
IOException- See Also:
UserAdminMBean.removeUser(java.lang.String)
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.