Package org.radarbase.auth.authorization
Class AuthorityReferenceSet
-
- All Implemented Interfaces:
public final class AuthorityReferenceSet
-
-
Field Summary
Fields Modifier and Type Field Description private final Set<String>
allProjects
private final Boolean
global
private final Set<String>
organizations
private final Set<String>
projects
private final Set<String>
personalProjects
-
Method Summary
Modifier and Type Method Description final Set<String>
getAllProjects()
final Boolean
getGlobal()
Identity has global authority. final Set<String>
getOrganizations()
Identity has explicit authority over these organizations. final Set<String>
getProjects()
Identity has explicit authority over these projects. final Set<String>
getPersonalProjects()
Identity has explicit personal authority over these projects. final Boolean
isEmpty()
Identity does not have any authority. final Boolean
hasOrganization(String organization)
Identity has authority over the given organization. final Boolean
hasAnyProject(String project)
Identity has authority over any project, personal or not. final Boolean
hasAnyProjects()
Identity has authority over any project. -
-
Method Detail
-
getAllProjects
final Set<String> getAllProjects()
-
getOrganizations
final Set<String> getOrganizations()
Identity has explicit authority over these organizations.
-
getProjects
final Set<String> getProjects()
Identity has explicit authority over these projects.
-
getPersonalProjects
final Set<String> getPersonalProjects()
Identity has explicit personal authority over these projects.
-
hasOrganization
final Boolean hasOrganization(String organization)
Identity has authority over the given organization.
-
hasAnyProject
final Boolean hasAnyProject(String project)
Identity has authority over any project, personal or not.
-
hasAnyProjects
final Boolean hasAnyProjects()
Identity has authority over any project.
-
-
-
-