Properties
StorageProvider | s | Read only | ||
StorageIdentifier | v | Read only | ||
StorageSpecificInformation | a{sv} | Read only | ||
StorageRestrictions | u ( Storage_Restriction_Flags) | Read only |
Types
Storage_Restriction_Flags | Flags | u |
Description
This interface extends the core Account interface to specify details regarding the storage of this account.
Rationale:
Single-sign-on systems do not generally have directly user-editable properties for Accounts, and require the user to visit a specific UI to alter their account properties. User interfaces should know not to expose these account properties as user-editable, and instead redirect the user to the appropriate interface.
Properties
StorageProvider — s
The name of the account storage implementation, which SHOULD start with a reversed domain name in the same way as D-Bus interface names. When this is the empty string the account is internally stored.
This property cannot change once an Account has been created.
StorageIdentifier — v
Unique identification of the account within the storage backend. The contents of the variant are defined by the StorageProvider.
This property cannot change once an Account has been created.
Rationale:
Different storage systems will have their own way of uniquely identifying an account, typically an integer or a string. Given that all users of this property should have direct knowledge of the backend they should know what types to expect and how to handle it.
StorageSpecificInformation — a{sv}
Map containing information specific to the storage backend. The keys and the types of their values are defined by the StorageProvider, and are not interpreted by the AccountManager implementation.
As the values in this map may change at any time (due to an external application manipulating the storage provider directly), this property should not be cached; it should instead be retrieved each time it is needed.
Rationale:
This can be used to provide additional hints to user interfaces aware of a specific storage provider, without requiring those user interfaces to use the StorageIdentifier to query the storage provider directly.
StorageRestrictions — u (Storage_Restriction_Flags)
Bitfield which defines what restrictions this Storage method has.
This property cannot change once an Account has been created.
Types
Storage_Restriction_Flags — u
- Cannot_Set_Parameters (1)
- Cannot_Set_Enabled (2)
- Cannot_Set_Presence (4)
- Cannot_Set_Service (8)