org.freedesktop.dbus.interfaces.DBusInterfaceCollectionpublic abstract class Collection extends AbstractInterface implements org.freedesktop.dbus.interfaces.DBusInterface
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Collection.ItemChanged |
|
static class |
Collection.ItemCreated |
|
static class |
Collection.ItemDeleted |
| Modifier and Type | Field | Description |
|---|---|---|
static String |
LABEL |
The key of the D-Bus properties for the label of a collection.
|
connection, interfaceName, msg, objectPath, serviceName, sh| Constructor | Description |
|---|---|
Collection(org.freedesktop.dbus.connections.impl.DBusConnection connection,
List<Class<? extends org.freedesktop.dbus.messages.DBusSignal>> signals,
String serviceName,
String objectPath,
String interfaceName) |
| Modifier and Type | Method | Description |
|---|---|---|
abstract org.freedesktop.dbus.types.UInt64 |
created() |
|
abstract Pair<org.freedesktop.dbus.ObjectPath,org.freedesktop.dbus.ObjectPath> |
createItem(Map<String,org.freedesktop.dbus.types.Variant> properties,
Secret secret,
boolean replace) |
Create an item with the given attributes, secret and label.
|
static Map<String,org.freedesktop.dbus.types.Variant> |
createProperties(String label) |
Create propterties for a new collection.
|
abstract org.freedesktop.dbus.ObjectPath |
delete() |
Delete this collection.
|
abstract List<org.freedesktop.dbus.ObjectPath> |
getItems() |
Items is a D-Bus Property.
|
abstract String |
getLabel() |
Label is a D-Bus Property.
|
abstract boolean |
isLocked() |
|
abstract org.freedesktop.dbus.types.UInt64 |
modified() |
|
abstract List<org.freedesktop.dbus.ObjectPath> |
searchItems(Map<String,String> attributes) |
Search for items in this collection matching the lookup attributes.
|
abstract void |
setLabel(String label) |
Label is a D-Bus Property.
|
getObjectPath, isRemotegetAllProperties, getConnection, getInterfaceName, getMessageHandler, getObjectPath, getPath, getProperty, getServiceName, getSignalHandler, send, send, setPropertypublic static final String LABEL
public static Map<String,org.freedesktop.dbus.types.Variant> createProperties(String label)
label - The displayable label of this collection.
Note:
The displayable label can differ from the actual name of a collection.
{org.freedesktop.Secret.Collection.Label: label}
Note: Properties for a collection and properties for an item are not the same.
public abstract org.freedesktop.dbus.ObjectPath delete()
ObjectPathpublic abstract List<org.freedesktop.dbus.ObjectPath> searchItems(Map<String,String> attributes)
public abstract Pair<org.freedesktop.dbus.ObjectPath,org.freedesktop.dbus.ObjectPath> createItem(Map<String,org.freedesktop.dbus.types.Variant> properties, Secret secret, boolean replace)
properties - The properties for the new item.
This allows setting the new item's properties upon its creation. All READWRITE properties
are useable. Specify the property names in full interface.Property form.
Example 13.2. Example for properties of an item:
properties = {
"org.freedesktop.Secret.Item.Label": "MyItem",
"org.freedesktop.Secret.Item.Attributes": {
"Attribute1": "Value1",
"Attribute2": "Value2"
}
}
Note: Please note that there is a distinction between the terms Property, which refers to D-Bus properties of an object, and Attribute, which refers to one of a secret item's string-valued attributes.
secret - The secret to store in the item, encoded with the included session.replace - Whether to replace an item with the same attributes or not.Pair,
ObjectPath,
Secret,
Itempublic abstract List<org.freedesktop.dbus.ObjectPath> getItems()
It is managed by using the org.freedesktop.DBus.Properties interface.
public abstract String getLabel()
It is managed by using the org.freedesktop.DBus.Properties interface.
Note:
The displayable label can differ from the actual name of a collection.
public abstract void setLabel(String label)
It is managed by using the org.freedesktop.DBus.Properties interface.
label - The displayable label of this collection.
Note:
The displayable label can differ from the actual name of a collection.
public abstract boolean isLocked()
public abstract org.freedesktop.dbus.types.UInt64 created()
public abstract org.freedesktop.dbus.types.UInt64 modified()
Copyright © 2019. All rights reserved.