Class Item

  • All Implemented Interfaces:
    org.freedesktop.dbus.interfaces.DBusInterface

    public class Item
    extends Item
    • Constructor Detail

      • Item

        public Item​(org.freedesktop.dbus.ObjectPath item,
                    Service service)
    • Method Detail

      • delete

        public org.freedesktop.dbus.ObjectPath delete()
        Description copied from class: Item
        Delete this item.
        Specified by:
        delete in class Item
        Returns:
        Prompt — A prompt objectpath, or the special value '/' if no prompt is necessary.
      • getSecret

        public Secret getSecret​(org.freedesktop.dbus.ObjectPath session)
        Description copied from class: Item
        Retrieve the secret for this item.
        Specified by:
        getSecret in class Item
        Parameters:
        session - The session to use to encode the secret.
        Returns:
        secret — The secret retrieved.
      • setSecret

        public void setSecret​(Secret secret)
        Description copied from class: Item
        Set the secret for this item.
        Specified by:
        setSecret in class Item
        Parameters:
        secret - The secret to set, encoded for the included session.
      • isLocked

        public boolean isLocked()
        Specified by:
        isLocked in class Item
        Returns:
        Whether the item is locked and requires authentication, or not.
      • getAttributes

        public Map<String,​String> getAttributes()
        Description copied from class: Item
        The lookup attributes for this item. Attributes is a D-Bus Property.

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

        Specified by:
        getAttributes in class Item
        Returns:
        The attributes of the item.
      • setAttributes

        public void setAttributes​(Map<String,​String> attributes)
        Description copied from class: Item
        The lookup attributes for this item. Attributes is a D-Bus Property.

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

        Specified by:
        setAttributes in class Item
        Parameters:
        attributes - The attributes of the item.
      • getLabel

        public String getLabel()
        Description copied from class: Item
        Label is a D-Bus Property.

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

        Specified by:
        getLabel in class Item
        Returns:
        The displayable label of this collection.

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

      • setLabel

        public void setLabel​(String label)
        Description copied from class: Item
        Label is a D-Bus Property.

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

        Specified by:
        setLabel in class Item
        Parameters:
        label - The displayable label of this collection.

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

      • getType

        public String getType()
        Specified by:
        getType in class Item
        Returns:
        The "xdg:schema" of the item attributes.
      • created

        public org.freedesktop.dbus.types.UInt64 created()
        Specified by:
        created in class Item
        Returns:
        The unix time when the item was created.
      • modified

        public org.freedesktop.dbus.types.UInt64 modified()
        Specified by:
        modified in class Item
        Returns:
        The unix time when the item was last modified.
      • isRemote

        public boolean isRemote()
      • getObjectPath

        public String getObjectPath()
        Specified by:
        getObjectPath in interface org.freedesktop.dbus.interfaces.DBusInterface
        Overrides:
        getObjectPath in class Messaging
      • getId

        public String getId()