Package com.sun.enterprise.config

Examples of com.sun.enterprise.config.ConfigException


  // Add a new element returning its index in the list with a boolean flag
  public int addConvergedLbClusterRef(ConvergedLbClusterRef value, boolean overwrite)
      throws ConfigException{
    ConvergedLbClusterRef old = getConvergedLbClusterRefByRef(value.getRef());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(ConvergedLbConfig.class).getString("cannotAddDuplicate""ConvergedLbClusterRef"));
    }
    return this.addValue(CONVERGED_LB_CLUSTER_REF, value, overwrite);
  }
View Full Code Here


  // Add a new element returning its index in the list with a boolean flag
  public int addServerRef(ServerRef value, boolean overwrite)
      throws ConfigException{
    ServerRef old = getServerRefByRef(value.getRef());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(ConvergedLbConfig.class).getString("cannotAddDuplicate""ServerRef"));
    }
    return this.addValue(SERVER_REF, value, overwrite);
  }
View Full Code Here

  // Add a new element returning its index in the list with a boolean flag
  public int addElementProperty(ElementProperty value, boolean overwrite)
      throws ConfigException{
    ElementProperty old = getElementPropertyByName(value.getName());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(ConvergedLbConfig.class).getString("cannotAddDuplicate""ElementProperty"));
    }
    return this.addValue(ELEMENT_PROPERTY, value, overwrite);
  }
View Full Code Here

  // Add a new element returning its index in the list with a boolean flag
  public int addConvergedLbConfig(ConvergedLbConfig value, boolean overwrite)
      throws ConfigException{
    ConvergedLbConfig old = getConvergedLbConfigByName(value.getName());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(ConvergedLbConfigs.class).getString("cannotAddDuplicate""ConvergedLbConfig"));
    }
    return this.addValue(CONVERGED_LB_CONFIG, value, overwrite);
  }
View Full Code Here

  // Add a new element returning its index in the list with a boolean flag
  public int addElementProperty(ElementProperty value, boolean overwrite)
      throws ConfigException{
    ElementProperty old = getElementPropertyByName(value.getName());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(StackLayer.class).getString("cannotAddDuplicate""ElementProperty"));
    }
    return this.addValue(ELEMENT_PROPERTY, value, overwrite);
  }
View Full Code Here

  // Add a new element returning its index in the list with a boolean flag
  public int addAuthRealm(AuthRealm value, boolean overwrite)
      throws ConfigException{
    AuthRealm old = getAuthRealmByName(value.getName());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(SecurityService.class).getString("cannotAddDuplicate""AuthRealm"));
    }
    return this.addValue(AUTH_REALM, value, overwrite);
  }
View Full Code Here

  // Add a new element returning its index in the list with a boolean flag
  public int addJaccProvider(JaccProvider value, boolean overwrite)
      throws ConfigException{
    JaccProvider old = getJaccProviderByName(value.getName());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(SecurityService.class).getString("cannotAddDuplicate""JaccProvider"));
    }
    return this.addValue(JACC_PROVIDER, value, overwrite);
  }
View Full Code Here

  // Add a new element returning its index in the list with a boolean flag
  public int addAuditModule(AuditModule value, boolean overwrite)
      throws ConfigException{
    AuditModule old = getAuditModuleByName(value.getName());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(SecurityService.class).getString("cannotAddDuplicate""AuditModule"));
    }
    return this.addValue(AUDIT_MODULE, value, overwrite);
  }
View Full Code Here

  // Add a new element returning its index in the list with a boolean flag
  public int addMessageSecurityConfig(MessageSecurityConfig value, boolean overwrite)
      throws ConfigException{
    MessageSecurityConfig old = getMessageSecurityConfigByAuthLayer(value.getAuthLayer());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(SecurityService.class).getString("cannotAddDuplicate""MessageSecurityConfig"));
    }
    return this.addValue(MESSAGE_SECURITY_CONFIG, value, overwrite);
  }
View Full Code Here

  // Add a new element returning its index in the list with a boolean flag
  public int addIdentityAssertionTrust(IdentityAssertionTrust value, boolean overwrite)
      throws ConfigException{
    IdentityAssertionTrust old = getIdentityAssertionTrustById(value.getId());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(SecurityService.class).getString("cannotAddDuplicate""IdentityAssertionTrust"));
    }
    return this.addValue(IDENTITY_ASSERTION_TRUST, value, overwrite);
  }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.ConfigException

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.