Interface ViewPermission
- All Superinterfaces:
Entity
,Resource
,Serializable
Represents a permission to view a resource.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the ResourceReference associated to this ViewPermission.Returns the UUID UserGroup that is the owner of this ViewPermission, if the owner is a group, otherwisenull
will be returned.Returns the UUID of the user that is the owner of this ViewPermission, if the owner is a user, otherwisenull
will be returned.Methods inherited from interface Resource
getCreatedBy, getCreatedOn, getLastModifiedBy, getLastModifiedOn, getResourceType, isSystem
-
Method Details
-
getUserId
UUID getUserId()Returns the UUID of the user that is the owner of this ViewPermission, if the owner is a user, otherwisenull
will be returned.- Returns:
- the UUID of the user
-
getUserGroupId
UUID getUserGroupId()Returns the UUID UserGroup that is the owner of this ViewPermission, if the owner is a group, otherwisenull
will be returned.- Returns:
- the UUID of the userGroup
-
getBaseResource
ResourceReference getBaseResource()Returns the ResourceReference associated to this ViewPermission. The Resource is either a Domain or a Community.- Returns:
- the ResourceReference of the linked Resource
-