public class PermissionOwner extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GROUP_OWNER |
static String |
MEMBERSHIP_OWNER |
static String |
USER_OWNER |
| Constructor and Description |
|---|
PermissionOwner() |
| Modifier and Type | Method and Description |
|---|---|
static PermissionOwner |
createPermissionOwnerFrom(String permissionStatement)
example of permission statement
- membership: /platform/users/:*.manager - user: demo - user: /platform/users/:demo - group: /organization/management/executive-board/:*.* |
boolean |
equals(Object o)
compare 2 permissions owner equality happens when 2 permission owner has
the same type and id
|
String |
getGroupId() |
String |
getId() |
String |
getMeaningfulPermissionOwnerStatement()
returns a readable permission under form: user or membership in group
|
String |
getMembership() |
String |
getOwnerType() |
int |
hashCode() |
void |
setGroupId(String groupId) |
void |
setId(String permissionId) |
void |
setMembership(String membership) |
void |
setOwnerType(String ownerType) |
String |
toString()
get the owner statement for the permission
|
public static final String USER_OWNER
public static final String GROUP_OWNER
public static final String MEMBERSHIP_OWNER
public String getId()
public void setId(String permissionId)
public String getMembership()
public void setMembership(String membership)
public String getGroupId()
public void setGroupId(String groupId)
public String getOwnerType()
public void setOwnerType(String ownerType)
public static PermissionOwner createPermissionOwnerFrom(String permissionStatement)
public String getMeaningfulPermissionOwnerStatement()
public String toString()
public boolean equals(Object o)
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.