Examples of addIdentities()


Examples of org.jivesoftware.smackx.packet.DiscoverInfo.addIdentities()

                                getNodeInformationProvider(discoverInfo.getNode());
                        if (nodeInformationProvider != null) {
                            // Node was found. Add node features
                            response.addFeatures(nodeInformationProvider.getNodeFeatures());
                            // Add node identities
                            response.addIdentities(nodeInformationProvider.getNodeIdentities());
                            // Add packet extensions
                            response.addExtensions(nodeInformationProvider.getNodePacketExtensions());
                        }
                        else {
                            // Return <item-not-found/> error since specified node was not found
View Full Code Here

Examples of org.jivesoftware.smackx.packet.DiscoverItems.addIdentities()

                                getNodeInformationProvider(discoverInfo.getNode());
                        if (nodeInformationProvider != null) {
                            // Node was found. Add node features
                            response.addFeatures(nodeInformationProvider.getNodeFeatures());
                            // Add node identities
                            response.addIdentities(nodeInformationProvider.getNodeIdentities());
                            // Add packet extensions
                            response.addExtensions(nodeInformationProvider.getNodePacketExtensions());
                        }
                        else {
                            // Return <item-not-found/> error since specified node was not found
View Full Code Here

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

Examples of tigase.disco.ServiceEntity.addIdentities()

    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

Examples of tigase.disco.ServiceEntity.addIdentities()

    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

Examples of tigase.disco.ServiceEntity.addIdentities()

    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

Examples of tigase.disco.ServiceEntity.addIdentities()

    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

Examples of tigase.disco.ServiceEntity.addIdentities()

    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

Examples of tigase.disco.ServiceEntity.addIdentities()

    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

Examples of tigase.disco.ServiceEntity.addIdentities()

  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
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.