DigitalDocumentPermissionBuilder

public final class DigitalDocumentPermissionBuilder extends IndexableBuilder<DigitalDocumentPermissionBuilder>

Builder to construct an Indexable for a permission on a digital document.

For reference, see: //schema.org/DigitalDocumentPermission.

Constant Summary

String COMMENT_PERMISSION The permission to comment on a digital document (does not imply the permission to read or modify it).
String READ_PERMISSION The permission to read a digital document.
String WRITE_PERMISSION The permission to modify a digital document.

Public Method Summary

DigitalDocumentPermissionBuilder
setGrantee(PersonBuilder... grantees)
Sets the grantees who get the permission to access.
DigitalDocumentPermissionBuilder
setPermissionType(String type)
Sets the type of access permission.

Inherited Method Summary

Constants

public static final String COMMENT_PERMISSION

The permission to comment on a digital document (does not imply the permission to read or modify it).

Constant Value: "CommentPermission"

public static final String READ_PERMISSION

The permission to read a digital document.

Constant Value: "ReadPermission"

public static final String WRITE_PERMISSION

The permission to modify a digital document.

Constant Value: "WritePermission"

Public Methods

public DigitalDocumentPermissionBuilder setGrantee (PersonBuilder... grantees)

Sets the grantees who get the permission to access.

Parameters
grantees The grantees who get the permission to access.

public DigitalDocumentPermissionBuilder setPermissionType (String type)

Sets the type of access permission.

Parameters
type The type of access permission.