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 addElementProperty(ElementProperty value, boolean overwrite)
      throws ConfigException{
    ElementProperty old = getElementPropertyByName(value.getName());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(SecurityService.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 addTrustedEntity(TrustedEntity value, boolean overwrite)
      throws ConfigException{
    TrustedEntity old = getTrustedEntityById(value.getId());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(IdentityAssertionTrust.class).getString("cannotAddDuplicate""TrustedEntity"));
    }
    return this.addValue(TRUSTED_ENTITY, 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(SipContainer.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 addPeer(Peer value, boolean overwrite)
      throws ConfigException{
    Peer old = getPeerById(value.getId());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(Peers.class).getString("cannotAddDuplicate""Peer"));
    }
    return this.addValue(PEER, 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(Proxy.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 addSystemProperty(SystemProperty value, boolean overwrite)
      throws ConfigException{
    SystemProperty old = getSystemPropertyByName(value.getName());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(Config.class).getString("cannotAddDuplicate""SystemProperty"));
    }
    return this.addValue(SYSTEM_PROPERTY, 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(Config.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 addBindto(Bindto value, boolean overwrite)
      throws ConfigException{
    Bindto old = getBindtoByTransport(value.getTransport());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(Listener.class).getString("cannotAddDuplicate""Bindto"));
    }
    return this.addValue(BINDTO, 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(AvailabilityService.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 addApplication(Application value, boolean overwrite)
      throws ConfigException{
    Application old = getApplicationByVendorid(value.getVendorid());
    if(old != null) {
      throw new ConfigException(StringManager.getManager(DiameterApplications.class).getString("cannotAddDuplicate""Application"));
    }
    return this.addValue(APPLICATION, 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.