public final class PlanPermissions extends RootEntityPropertiesBuilder<PlanPermissionsProperties>
Plan
.
Pre-existing permissions that are not defined in associated Permissions
object are revoked when this object is published.Constructor and Description |
---|
PlanPermissions(BambooKey projectKey,
BambooKey planKey) |
PlanPermissions(BambooOid planOid) |
PlanPermissions(PlanIdentifier planIdentifier) |
Modifier and Type | Method and Description |
---|---|
PlanPermissions |
addDefaultPermissions()
Adds defaults permissions, ie.
|
protected PlanPermissionsProperties |
build() |
Permissions |
getPermissions() |
PlanIdentifier |
getPlanIdentifier() |
String |
humanReadableId()
Entity type and id representation that is shown to human.
|
String |
humanReadableType()
Entity type that is shown to human.
|
PlanPermissions |
permissions(Permissions permissions) |
public static final String TYPE
public PlanPermissions(BambooOid planOid)
public PlanPermissions(PlanIdentifier planIdentifier)
public PlanPermissions permissions(@NotNull Permissions permissions)
public PlanPermissions addDefaultPermissions()
PermissionType.VIEW
for logged-in and anonymous users.@NotNull public PlanIdentifier getPlanIdentifier()
public Permissions getPermissions()
protected PlanPermissionsProperties build()
build
in class EntityPropertiesBuilder<PlanPermissionsProperties>
public String humanReadableType()
RootEntityPropertiesBuilder
humanReadableType
in class RootEntityPropertiesBuilder<PlanPermissionsProperties>
public String humanReadableId()
RootEntityPropertiesBuilder
humanReadableId
in class RootEntityPropertiesBuilder<PlanPermissionsProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.