public class InstanceLevelPermissionModel
extends java.lang.Object
Constructor and Description |
---|
InstanceLevelPermissionModel() |
Modifier and Type | Method and Description |
---|---|
java.util.List<CentraSitePrivilege> |
getInstancePrivilege()
Gets the instance level privileges.
|
java.lang.String |
getOrgId()
Get the id of the owner's organization.
|
java.lang.String |
getOwnerId()
Gets the owner (user/group) id.
|
java.lang.String |
getOwnerName()
Get the name of the user/group to whom this permission is applied.
|
java.lang.String |
getOwnerOrgName()
The name of the organization for the owner.
|
boolean |
isLoggedInOwner()
Checks if the logged in user is the owner.
|
boolean |
isUser()
Checks if this instance level permission is applied for a user or a group.
|
void |
setInstancePrivilege(java.util.List<CentraSitePrivilege> instancePrivilege)
Sets the instance level privileges.
|
void |
setIsLoggedInOwner(boolean isLoggedInOwner)
Set if the logged in user is the owner.
|
void |
setOrgId(java.lang.String orgId)
Set the id of the owner's organization.
|
void |
setOwnerId(java.lang.String ownerId)
Sets the owner id.
|
void |
setOwnerName(java.lang.String ownerName)
Set the user/group name.
|
void |
setOwnerOrgName(java.lang.String orgName)
Set the owner's organization name.
|
void |
setUser(boolean isUser)
Sets that the permission is applied to a user.
|
public boolean isUser()
public void setUser(boolean isUser)
isUser
- If true, it means that the permission will be applied to a userpublic java.lang.String getOwnerName()
public void setOwnerName(java.lang.String ownerName)
ownerName
- The name to setpublic java.lang.String getOwnerOrgName()
public void setOwnerOrgName(java.lang.String orgName)
orgName
- The name of the organization to set.public java.util.List<CentraSitePrivilege> getInstancePrivilege()
List
of CentraSitePrivilege
spublic void setInstancePrivilege(java.util.List<CentraSitePrivilege> instancePrivilege)
instancePrivilege
- The List
of CentraSitePrivilege
s to set.public java.lang.String getOwnerId()
public void setOwnerId(java.lang.String ownerId)
ownerId
- The user/group id to set.public boolean isLoggedInOwner()
public void setIsLoggedInOwner(boolean isLoggedInOwner)
isLoggedInOwner
- If true it means the logged in user is the ownerpublic java.lang.String getOrgId()
public void setOrgId(java.lang.String orgId)
orgId
- The id to set