Class PerRolePermissions
java.lang.Object
com.linecorp.centraldogma.server.metadata.PerRolePermissions
A default permission for a
Repository
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Collection<Permission>
Permission
s for administrators.static final PerRolePermissions
Deprecated.static final Collection<Permission>
static final Collection<Permission>
static final Collection<Permission>
-
Constructor Summary
ConstructorsConstructorDescriptionPerRolePermissions
(Iterable<Permission> owner, Iterable<Permission> member, Iterable<Permission> guest) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
guest()
Returns the permissions granted to guests.int
hashCode()
member()
Returns the permissions granted to members.static PerRolePermissions
Creates aPerRolePermissions
which allows read/write to owners and members.static PerRolePermissions
Creates aPerRolePermissions
which allows read/write a repository from a owner.static PerRolePermissions
Creates aPerRolePermissions
which allows accessing a repository from a project member.static PerRolePermissions
ofPublic()
Creates aPerRolePermissions
which allows accessing a repository from everyone.owner()
Returns the permissions granted to owners.toString()
-
Field Details
-
ALL_PERMISSION
Permission
s for administrators. -
READ_WRITE
-
READ_ONLY
-
NO_PERMISSION
-
DEFAULT
Deprecated.UseofDefault()
.The default permission.
-
-
Constructor Details
-
PerRolePermissions
public PerRolePermissions(Iterable<Permission> owner, Iterable<Permission> member, Iterable<Permission> guest) Creates an instance.
-
-
Method Details
-
ofInternal
Creates aPerRolePermissions
which allows read/write a repository from a owner. -
ofDefault
Creates aPerRolePermissions
which allows read/write to owners and members. -
ofPublic
Creates aPerRolePermissions
which allows accessing a repository from everyone. -
ofPrivate
Creates aPerRolePermissions
which allows accessing a repository from a project member. -
owner
Returns the permissions granted to owners. -
member
Returns the permissions granted to members. -
guest
Returns the permissions granted to guests. -
hashCode
public int hashCode() -
equals
-
toString
-
ofDefault()
.