Class PerRolePermissions
java.lang.Object
com.linecorp.centraldogma.server.metadata.PerRolePermissions
A default permission for a
Repository
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final PerRolePermissions
Deprecated.static final Collection
<Permission> static final Collection
<Permission> static final Collection
<Permission> Permission
s for administrators. -
Constructor Summary
ConstructorDescriptionPerRolePermissions
(Iterable<Permission> owner, Iterable<Permission> member, Iterable<Permission> guest, Iterable<Permission> unused) 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 an 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
-
READ_WRITE
Permission
s for administrators. -
READ_ONLY
-
NO_PERMISSION
-
DEFAULT
Deprecated.UseofDefault()
.The default permission.
-
-
Constructor Details
-
PerRolePermissions
public PerRolePermissions(Iterable<Permission> owner, Iterable<Permission> member, Iterable<Permission> guest, @Nullable Iterable<Permission> unused) Creates an instance.
-
-
Method Details
-
ofInternal
Creates aPerRolePermissions
which allows read/write a repository from an 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()
.