Class Item

  • All Implemented Interfaces:
    org.freedesktop.dbus.interfaces.DBusInterface
    Direct Known Subclasses:
    Item

    public abstract class Item
    extends Messaging
    implements org.freedesktop.dbus.interfaces.DBusInterface
    • Field Detail

      • ATTRIBUTES

        public static final String ATTRIBUTES
        The key of the D-Bus properties for the attributes of an item.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Item

        public Item​(org.freedesktop.dbus.connections.impl.DBusConnection connection,
                    List<Class<? extends org.freedesktop.dbus.messages.DBusSignal>> signals,
                    String serviceName,
                    String objectPath,
                    String interfaceName)
    • Method Detail

      • delete

        public abstract org.freedesktop.dbus.ObjectPath delete()
        Delete this item.
        Returns:
        Prompt — A prompt objectpath, or the special value '/' if no prompt is necessary.
      • getSecret

        public abstract Secret getSecret​(org.freedesktop.dbus.ObjectPath session)
        Retrieve the secret for this item.
        Parameters:
        session - The session to use to encode the secret.
        Returns:
        secret — The secret retrieved.
      • setSecret

        public abstract void setSecret​(Secret secret)
        Set the secret for this item.
        Parameters:
        secret - The secret to set, encoded for the included session.
      • isLocked

        public abstract boolean isLocked()
        Returns:
        Whether the item is locked and requires authentication, or not.
      • getAttributes

        public abstract Map<String,​String> getAttributes()
        The lookup attributes for this item. Attributes is a D-Bus Property.

        It is managed by using the org.freedesktop.DBus.Properties interface.

        Returns:
        The attributes of the item.
      • setAttributes

        public abstract void setAttributes​(Map<String,​String> attributes)
        The lookup attributes for this item. Attributes is a D-Bus Property.

        It is managed by using the org.freedesktop.DBus.Properties interface.

        Parameters:
        attributes - The attributes of the item.
      • getLabel

        public abstract String getLabel()
        Label is a D-Bus Property.

        It is managed by using the org.freedesktop.DBus.Properties interface.

        Returns:
        The displayable label of this collection.

        Note: The displayable label can differ from the actual name of a collection.

      • setLabel

        public abstract void setLabel​(String label)
        Label is a D-Bus Property.

        It is managed by using the org.freedesktop.DBus.Properties interface.

        Parameters:
        label - The displayable label of this collection.

        Note: The displayable label can differ from the actual name of a collection.

      • getType

        public abstract String getType()
        Returns:
        The "xdg:schema" of the item attributes.
      • created

        public abstract org.freedesktop.dbus.types.UInt64 created()
        Returns:
        The unix time when the item was created.
      • modified

        public abstract org.freedesktop.dbus.types.UInt64 modified()
        Returns:
        The unix time when the item was last modified.