Package org.nasutekds.server.types

Examples of org.nasutekds.server.types.ResultCode


   */
  @DataProvider(name = "ResultCodes_1")
  public Object[][] initResultCodes_1()
  {
    // Short names...
    ResultCode rcSuccess      = ResultCode.SUCCESS;
    ResultCode rcNoSuchObject = ResultCode.NO_SUCH_OBJECT;
    ResultCode rcReferral     = ResultCode.REFERRAL;
    ResultCode rcOther        = ResultCode.ALIAS_PROBLEM;
    ResultCode rcOther2       = ResultCode.AUTHORIZATION_DENIED;

    // Sets of DNs
    Object[][] myData =
    {
        // received        current          expected
View Full Code Here


        DN.decode(""),
        SearchScope.SINGLE_LEVEL,
        LDAPFilter.decode("(objectClass=*)").toSearchFilter());

    // Check the number of found naming context
    ResultCode expectedRC =
      (shouldExist ? ResultCode.SUCCESS : ResultCode.NO_SUCH_OBJECT);
    assertEquals(search.getResultCode(), expectedRC);
    if (shouldExist)
    {
      assertEquals(search.getEntriesSent(), expectedNamingContexts);
View Full Code Here

        DN.decode(baseDN),
        SearchScope.BASE_OBJECT,
        LDAPFilter.decode("(objectClass=*)").toSearchFilter());

    // Compare the result code with the expected one
    ResultCode resultCode = search.getResultCode();
    if (shouldExist)
    {
      assertEquals(resultCode, ResultCode.SUCCESS);
    }
    else
View Full Code Here

    }
    catch(Exception e)
    {
      cause = e;
    }
    ResultCode resultCode = ResultCode.OTHER;
    Message message = ERR_INVALID_EXPORT_TARGET.get();

    if (cause != null)
      throw new DirectoryException(
          resultCode, message, cause);
View Full Code Here

        break;
      }
    }
    if (!allset)
    {
      ResultCode resultCode = ResultCode.OTHER;
      Message message = ERR_RESET_GENERATION_ID_FAILED.get(serviceID);
      throw new DirectoryException(
          resultCode, message);
    }
  }
View Full Code Here

      genIdMessage = new ResetGenerationIdMsg(generationIdNewValue);
    }

    if (!isConnected())
    {
      ResultCode resultCode = ResultCode.OTHER;
      Message message = ERR_RESET_GENERATION_CONN_ERR_ID.get(serviceID,
          Integer.toString(serverID),
          Long.toString(genIdMessage.getGenerationId()));
      throw new DirectoryException(
         resultCode, message);
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public ConfigChangeResult applyConfigurationChange(
      GSSAPISASLMechanismHandlerCfg configuration) {
    ResultCode resultCode = ResultCode.SUCCESS;
    boolean adminActionRequired = false;
    ArrayList<Message> messages = new ArrayList<Message>();
    return new ConfigChangeResult(resultCode, adminActionRequired, messages);
  }
View Full Code Here

   * {@inheritDoc}
   */
  public ConfigChangeResult applyConfigurationAdd(
          KeyManagerProviderCfg configuration)
  {
    ResultCode        resultCode          = ResultCode.SUCCESS;
    boolean           adminActionRequired = false;
    ArrayList<Message> messages            = new ArrayList<Message>();

    configuration.addChangeListener(this);

View Full Code Here

   * {@inheritDoc}
   */
  public ConfigChangeResult applyConfigurationDelete(
                                 KeyManagerProviderCfg configuration)
  {
    ResultCode        resultCode          = ResultCode.SUCCESS;
    boolean           adminActionRequired = false;
    ArrayList<Message> messages            = new ArrayList<Message>();

    DirectoryServer.deregisterKeyManagerProvider(configuration.dn());

View Full Code Here

   * {@inheritDoc}
   */
  public ConfigChangeResult applyConfigurationChange(
                                 KeyManagerProviderCfg configuration)
  {
    ResultCode        resultCode          = ResultCode.SUCCESS;
    boolean           adminActionRequired = false;
    ArrayList<Message> messages            = new ArrayList<Message>();


    // Get the existing provider if it's already enabled.
View Full Code Here

TOP

Related Classes of org.nasutekds.server.types.ResultCode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.