Class AbstractVisualInventoryAction

    • Constructor Detail

      • AbstractVisualInventoryAction

        public AbstractVisualInventoryAction​(String moduleId)
    • Method Detail

      • appliesTo

        public String appliesTo()
        Tells the system what inventory objects support said action. Superclasses are also allowed. For example, returning GenericCommunicationsElement applies to all devices such as routers, multiplexers or switches, while InventoryObject will apply to any object.
        Returns:
        The class or superclass whose instances the action applies to. If null, this indicate that while the action is related to inventory, it doesn't apply to a particular type, for example, when creating a Customer pool in the service manager (or any root pool, for that matter). By default, the action will apply to all instances.
      • getRequiredSelectedObjects

        public abstract int getRequiredSelectedObjects()
        How many objects have to be selected so this action is enabled. Use -1 for any (-1), 0 if no objects have to be selected (0), or a number greater than 0 for a fixed number.
        Returns:
        The number of objects that have to be selected so the action is enabled.
      • getName

        public String getName()