org.apache.karaf.jaas.command
Class RoleAddCommand

java.lang.Object
  extended by org.apache.karaf.shell.console.AbstractAction
      extended by org.apache.karaf.shell.console.OsgiCommandSupport
          extended by org.apache.karaf.jaas.command.JaasCommandSupport
              extended by org.apache.karaf.jaas.command.RoleAddCommand
All Implemented Interfaces:
Action, BundleContextAware

public class RoleAddCommand
extends JaasCommandSupport

Adds a role to a user of the active realm/module.

Author:
iocanel

Field Summary
 
Fields inherited from class org.apache.karaf.jaas.command.JaasCommandSupport
backingEngineService, JAAS_CMDS, JAAS_ENTRY, JAAS_REALM
 
Fields inherited from class org.apache.karaf.shell.console.OsgiCommandSupport
bundleContext, usedReferences
 
Fields inherited from class org.apache.karaf.shell.console.AbstractAction
log, session
 
Constructor Summary
RoleAddCommand()
           
 
Method Summary
protected  java.lang.Object doExecute(BackingEngine engine)
          Execute the RoleAddCommand in the given Excecution Context.
 java.lang.String getRole()
           
 java.lang.String getUsername()
           
 void setRole(java.lang.String role)
           
 void setUsername(java.lang.String username)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.karaf.jaas.command.JaasCommandSupport
doExecute, findEntryByRealmAndName, findRealmByName, getBackingEngineService, getRealms, setBackingEngineService, setRealms
 
Methods inherited from class org.apache.karaf.shell.console.OsgiCommandSupport
execute, getAllServices, getBundleContext, getService, setBundleContext, ungetServices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoleAddCommand

public RoleAddCommand()
Method Detail

doExecute

protected java.lang.Object doExecute(BackingEngine engine)
                              throws Exception
Execute the RoleAddCommand in the given Excecution Context.

Specified by:
doExecute in class JaasCommandSupport
Parameters:
engine -
Returns:
Throws:
Exception

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)

getRole

public java.lang.String getRole()

setRole

public void setRole(java.lang.String role)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.