Package com.collibra.dgc.core.api.model.viewpermission

# Interface ViewPermission

All Superinterfaces:
  `Entity`, `Resource`, `Serializable`

public interface ViewPermission extends Resource
Represents a permission to view a resource.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ResourceReference`
  `getBaseResource()`
  Returns the ResourceReference associated to this ViewPermission.
  `UUID`
  `getUserGroupId()`
  Returns the UUID UserGroup that is the owner of this ViewPermission, if the owner is a group, otherwise `null` will be returned.
  `UUID`
  `getUserId()`
  Returns the UUID of the user that is the owner of this ViewPermission, if the owner is a user, otherwise `null` will be returned.

  ### Methods inherited from interface Entity

  `getId, setId`

  ### 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, otherwise `null` 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, otherwise `null` 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 (resourceDiscriminator: "Domain" or "Community").
    Returns:
      the ResourceReference of the linked Resource