Package tigase.disco

Examples of tigase.disco.ServiceEntity.addIdentities()


          "Config settings")});
    config_set.addFeatures(DEF_FEATURES);
    ServiceEntity item = new ServiceEntity(getName(), "--none--",
      "Add new component...");
    item.addFeatures(CMD_FEATURES);
    item.addIdentities(new ServiceIdentity("automation", "command-node",
          "Add new component..."));
    config_set.addItems(item);
    serviceEntity.addItems(config_list, config_set);
  }
View Full Code Here


    ServiceEntity item = config_list.findNode(component.getName());
    if (item == null) {
      item = new ServiceEntity(getName(), component.getName(),
        "Component: " + component.getName());
      item.addFeatures(CMD_FEATURES);
      item.addIdentities(new ServiceIdentity[] {
          new ServiceIdentity("automation", "command-node",
            "Component: " + component.getName())});
      config_list.addItems(new ServiceEntity[] {item});
    }
    if (config_set.findNode(component.getName()) == null) {
View Full Code Here

    ServiceEntity item = serviceEntity.findNode(component.getName());
    if (item == null) {
      item = new ServiceEntity(getName(), component.getName(),
        "Component: " + component.getName());
      item.addFeatures(CMD_FEATURES);
      item.addIdentities(new ServiceIdentity("automation", "command-node",
            "Component: " + component.getName()));
      serviceEntity.addItems(item);
    }
  }
View Full Code Here

    ServiceEntity item = new ServiceEntity(getName(),
            Command.VHOSTS_RELOAD.toString(),
            "Reload VHosts from repository");
    item.addFeatures(CMD_FEATURES);
    item.addIdentities(new ServiceIdentity("automation", "command-node",
            "Reload VHosts from repository"));
    serviceEntity.addItems(item);

    item = new ServiceEntity(getName(),
            Command.VHOSTS_UPDATE.toString(),
View Full Code Here

    item = new ServiceEntity(getName(),
            Command.VHOSTS_UPDATE.toString(),
            "Add/Update selected VHost information");
    item.addFeatures(CMD_FEATURES);
    item.addIdentities(new ServiceIdentity("automation", "command-node",
            "Add/Update selected VHost information"));
    serviceEntity.addItems(item);

    item = new ServiceEntity(getName(),
            Command.VHOSTS_REMOVE.toString(),
View Full Code Here

    item = new ServiceEntity(getName(),
            Command.VHOSTS_REMOVE.toString(),
            "Remove selected VHost");
    item.addFeatures(CMD_FEATURES);
    item.addIdentities(new ServiceIdentity("automation", "command-node",
            "Remove selected VHost"));
    serviceEntity.addItems(item);

  }
View Full Code Here

    ServiceEntity item = serviceEntity.findNode(component.getName());
    if (item == null) {
      item = new ServiceEntity(getName(), component.getName(),
        "Component: " + component.getName());
      item.addFeatures(CMD_FEATURES);
      item.addIdentities(new ServiceIdentity("automation", "command-node",
            "Component: " + component.getName()));
      serviceEntity.addItems(item);
    }
  }
View Full Code Here

  private void addTaskToInstances(ReceiverTaskIfc task) {
    task_instances.put(task.getJID(), task);
    ServiceEntity item = new ServiceEntity(task.getJID(),
      JIDUtils.getNodeNick(task.getJID()), task.getDescription());
    item.addIdentities(
      new ServiceIdentity("component", "generic", task.getJID()));
    item.addFeatures(CMD_FEATURES);
    serviceEntity.addItems(item);
    Queue<Packet> results = new LinkedList<Packet>();
    task.init(results);
View Full Code Here

      new ServiceIdentity("component", "generic", "Stanza Receiver"));
    serviceEntity.addFeatures(DEF_FEATURES);
    ServiceEntity com = new ServiceEntity(my_hostname, "commands",
      "Tasks management commands");
    com.addFeatures(DEF_FEATURES);
    com.addIdentities(
      new ServiceIdentity("automation", "command-list",
        "Tasks management commands"));
    serviceEntity.addItems(com);
    for (TaskCommandIfc comm: commands.values()) {
      ServiceEntity item =
View Full Code Here

    for (TaskCommandIfc comm: commands.values()) {
      ServiceEntity item =
              new ServiceEntity(my_hostname,
              comm.getNodeName(), comm.getDescription());
      item.addFeatures(CMD_FEATURES);
      item.addIdentities(new ServiceIdentity("automation", "command-node",
          comm.getDescription()));
      com.addItems(item);
    } // end of for (TaskCommandIfc comm: commands.values())

    admins = (String[])props.get(ADMINS_PROP_KEY);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.