org.apache.directory.server.kerberos.shared.store.operations
Class AddPrincipal

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.store.operations.AddPrincipal
All Implemented Interfaces:
java.io.Serializable, DirectoryServiceOperation

public class AddPrincipal
extends java.lang.Object
implements DirectoryServiceOperation

Command for adding a principal to a JNDI context.

Version:
$Rev: 682235 $, $Date: 2008-08-04 02:43:52 +0200 (Mo, 04 Aug 2008) $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
protected  PrincipalStoreEntry entry
          The Kerberos principal who is to be added.
 
Constructor Summary
AddPrincipal(PrincipalStoreEntry entry)
          Creates the action to be used against the embedded ApacheDS DIT.
 
Method Summary
 java.lang.Object execute(CoreSession session, org.apache.directory.shared.ldap.name.LdapDN searchBaseDn)
          The command pattern execute method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entry

protected PrincipalStoreEntry entry
The Kerberos principal who is to be added.

Constructor Detail

AddPrincipal

public AddPrincipal(PrincipalStoreEntry entry)
Creates the action to be used against the embedded ApacheDS DIT.

Parameters:
entry - The PrincipalStoreEntry to add.
Method Detail

execute

public java.lang.Object execute(CoreSession session,
                                org.apache.directory.shared.ldap.name.LdapDN searchBaseDn)
                         throws java.lang.Exception
Description copied from interface: DirectoryServiceOperation
The command pattern execute method.

Specified by:
execute in interface DirectoryServiceOperation
Parameters:
session - The CoreSession to execute the command with
searchBaseDn - The base DN for working with the context
Returns:
Object The result returned by the command
Throws:
java.lang.Exception - The exception thrown by the command


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.