public class EntityMetadata extends Object
EntityMetadata
class provides access to the metadata properties
of a corresponding entity. Use Entity.getMetadata
to obtain an
instance of this class.Modifier and Type | Method and Description |
---|---|
boolean |
canChangePermissions()
Indicates whether this entity's permission can be changed.
|
boolean |
canShareApp()
Indicates whether this entity can be shared via an app.
|
boolean |
canShareGlobal()
Indicates whether the entity can be shared globally.
|
boolean |
canShareUser()
Indicates whether the entity can be shared to a specific user.
|
boolean |
canWrite()
Indicates whether this entity can be modified.
|
String |
getApp()
Returns the app context of this entity.
|
String |
getOwner()
Returns the username of the entity owner.
|
Record |
getPermissions()
Returns this entity's permissions, which represent an
allowable inclusive action:list-of-roles map.
|
String |
getSharing()
Returns how this entity is shared (app, global, and/or user).
|
boolean |
isModifiable()
Indicates whether this entity can be modified.
|
public boolean canChangePermissions()
true
if this entity's permission can be changed,
false
if not.public boolean canShareApp()
true
if this entity can be shared via an app,
false
if not.public boolean canShareGlobal()
true
if this entity can be shared globally,
false
if not.public boolean canShareUser()
true
if this entity can be shared to a specific user,
false
if not.public boolean canWrite()
true
if this entity can be modified,
false
if not.public String getApp()
public String getOwner()
public Record getPermissions()
public String getSharing()
public boolean isModifiable()
true
if this entity can be modified,
false
if not.Copyright © 2022 Splunk, Inc.. All rights reserved.