Package org.openremote.model.asset
Class UserAssetLink
java.lang.Object
org.openremote.model.asset.UserAssetLink
An asset can be linked to many users, and a user can have links to many assets.
If a user has linked assets, it's a restricted user. When a client authenticates with such a user, the client can only access the assigned/linked assets of that user, and the available operations are limited:
-
When a restricted client reads assets, only dynamic attributes with
MetaItemType.ACCESS_RESTRICTED_READ
are included. A restricted client may submit a query for public assets and dynamic attributes withMetaItemType.ACCESS_PUBLIC_READ
. -
When a restricted client updates existing assets, new attributes can be added, but
only attributes with
MetaItemType.ACCESS_RESTRICTED_WRITE
can be updated or deleted; note Access meta items cannot be modified. Any new attributes are automatically set withMetaItemType.ACCESS_RESTRICTED_READ
andMetaItemType.ACCESS_RESTRICTED_WRITE
, thus ensuring that a restricted client can fully access its own attributes. - A restricted client can not create or delete assets. A restricted client can not change the name, parent, or realm of an asset. A restricted user can not make an asset public. A restricted user can change the location of an asset.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected Date
protected UserAssetLink.Id
protected String
protected String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
UserAssetLink
(String realm, String userId, String assetId) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
int
hashCode()
void
setCreatedOn
(Date createdOn) toString()
-
Field Details
-
id
-
createdOn
-
assetName
-
parentAssetName
-
userFullName
-
-
Constructor Details
-
UserAssetLink
protected UserAssetLink() -
UserAssetLink
-
UserAssetLink
-
-
Method Details