/** * Indicates whether this entity can be modified. * * @return {@code true} if this entity can be modified, * {@code false} if not. */ public boolean isModifiable() { return getEaiAcl().getBoolean("modifiable", false); } }
/** * Indicates whether this entity can be modified. * * @return {@code true} if this entity can be modified, * {@code false} if not. */ public boolean canWrite() { return getEaiAcl().getBoolean("can_write", false); }
/** * Returns the app context of this entity. * * @return The app context of this entity. */ public String getApp() { return getEaiAcl().getString("app", "system"); }
/** * Returns this entity's permissions, which represent an * allowable inclusive action:list-of-roles map. * * @return This entity's permissions map. */ public Record getPermissions() { return getEaiAcl().getValue("perms", null); }
/** * Indicates whether this entity can be shared via an app. * * @return {@code true} if this entity can be shared via an app, * {@code false} if not. */ public boolean canShareApp() { return getEaiAcl().getBoolean("can_share_app", false); }
/** * Indicates whether the entity can be shared globally. * * @return {@code true} if this entity can be shared globally, * {@code false} if not. */ public boolean canShareGlobal() { return getEaiAcl().getBoolean("can_share_global", false); }
/** * Indicates whether this entity's permission can be changed. * * @return {@code true} if this entity's permission can be changed, * {@code false} if not. */ public boolean canChangePermissions() { return getEaiAcl().getBoolean("can_change_perms", false); }
/** * Indicates whether the entity can be shared to a specific user. * * @return {@code true} if this entity can be shared to a specific user, * {@code false} if not. */ public boolean canShareUser() { return getEaiAcl().getBoolean("can_share_user", false); }
/** * Returns the username of the entity owner. * * @return The entity owner's username. */ public String getOwner() { return getEaiAcl().getString("owner"); }
/** * Returns how this entity is shared (app, global, and/or user). * * @return Values that indicate how this entity is shared. */ public String getSharing() { return getEaiAcl().getString("sharing"); }