Class Roles
java.lang.Object
com.linecorp.centraldogma.server.metadata.Roles
- All Implemented Interfaces:
HasWeight
Role metadata for a repository.
-
Constructor Summary
ConstructorsConstructorDescriptionRoles(ProjectRoles projectRoles, Map<String, RepositoryRole> users, Map<String, RepositoryRole> tokens) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()Returns theProjectRolesof the repository.tokens()Returns theRepositoryRoles of tokens.toString()users()Returns theRepositoryRoles of users.intweight()Returns the weight of this object.
-
Constructor Details
-
Roles
public Roles(ProjectRoles projectRoles, Map<String, RepositoryRole> users, Map<String, RepositoryRole> tokens) Creates a new instance.
-
-
Method Details
-
projectRoles
Returns theProjectRolesof the repository. -
users
Returns theRepositoryRoles of users. -
tokens
Returns theRepositoryRoles of tokens. -
weight
public int weight()Description copied from interface:HasWeightReturns the weight of this object. -
equals
-
hashCode
public int hashCode() -
toString
-