org.ow2.bonita.identity
Class IdentityService

java.lang.Object
  extended by org.ow2.bonita.identity.IdentityService
All Implemented Interfaces:
IdentityServiceMBean

public class IdentityService
extends java.lang.Object
implements IdentityServiceMBean

Author:
"Pierre Vigneras"

Field Summary
static java.lang.String CONFIGURATION
           
 
Constructor Summary
IdentityService()
           
 
Method Summary
 void commit()
           
 java.lang.String createGroup()
           
 java.lang.String createGroup(java.lang.String parentId)
           
 java.lang.String createUser()
           
 java.util.Collection<java.lang.String> getAllGroups()
           
 java.util.Collection<java.lang.String> getAllUsers()
           
 GroupOp getGroup(java.lang.String id)
           
 java.lang.String getImplName()
          Get the concrete IdentityServiceOp implementation class name.
 UserOp getUser(java.lang.String id)
           
static void main(java.lang.String[] args)
           
static void newServer()
           
 void setMembership(java.lang.String userId, java.lang.String groupId)
           
static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION

public static final java.lang.String CONFIGURATION
See Also:
Constant Field Values
Constructor Detail

IdentityService

public IdentityService()
Method Detail

commit

public void commit()
            throws CommitException
Throws:
CommitException

createGroup

public java.lang.String createGroup()
Specified by:
createGroup in interface IdentityServiceMBean

createGroup

public java.lang.String createGroup(java.lang.String parentId)
Specified by:
createGroup in interface IdentityServiceMBean

createUser

public java.lang.String createUser()
Specified by:
createUser in interface IdentityServiceMBean

getAllGroups

public java.util.Collection<java.lang.String> getAllGroups()
Specified by:
getAllGroups in interface IdentityServiceMBean

getAllUsers

public java.util.Collection<java.lang.String> getAllUsers()
Specified by:
getAllUsers in interface IdentityServiceMBean

setMembership

public void setMembership(java.lang.String userId,
                          java.lang.String groupId)
Specified by:
setMembership in interface IdentityServiceMBean

newServer

public static void newServer()
                      throws javax.management.MBeanRegistrationException
Throws:
javax.management.MBeanRegistrationException

usage

public static void usage()

main

public static void main(java.lang.String[] args)
                 throws javax.management.MBeanRegistrationException
Throws:
javax.management.MBeanRegistrationException

getImplName

public java.lang.String getImplName()
Description copied from interface: IdentityServiceMBean
Get the concrete IdentityServiceOp implementation class name.

Specified by:
getImplName in interface IdentityServiceMBean
Returns:
the concrete IdentityServiceOp implementation class name.

getGroup

public GroupOp getGroup(java.lang.String id)
                 throws GroupNotFoundException
Specified by:
getGroup in interface IdentityServiceMBean
Throws:
GroupNotFoundException

getUser

public UserOp getUser(java.lang.String id)
               throws UserNotFoundException
Specified by:
getUser in interface IdentityServiceMBean
Throws:
UserNotFoundException


Copyright © 2009 OW2 Consortium. All Rights Reserved.