public interface SubjectCollection
Modifier and Type | Method and Description |
---|---|
Subject |
get(String identifier)
Returns the subject specified.
|
Iterable<Subject> |
getAllSubjects()
Returns all subjects.
|
Map<Subject,Boolean> |
getAllWithPermission(Set<Context> contexts,
String permission)
Return all known subjects with the given permission information.
|
Map<Subject,Boolean> |
getAllWithPermission(String permission)
Return all known subjects with the given permission information.
|
String |
getIdentifier()
Return the identifier for the type of subjects this collection contains.
|
boolean |
hasRegistered(String identifier)
Returns whether there is any data stored for the given subject.
|
String getIdentifier()
Subject get(String identifier)
identifier
- The identifier to look up a subject by.
Case-insensitiveboolean hasRegistered(String identifier)
get(String)
should be queried.identifier
- The identifier of the given subjectIterable<Subject> getAllSubjects()
Map<Subject,Boolean> getAllWithPermission(String permission)
permission
- The permission to checkMap<Subject,Boolean> getAllWithPermission(Set<Context> contexts, String permission)
contexts
- The context combination to check for permissions inpermission
- The permission to check