SubjectReferences should be used when a subject needs to be represented, but the backing Subject is not needed.
SubjectReferences are unique to a given PermissionService, and will not resolve to the correct service if the provider changes.
Note that implementations of this interface should be capable of resolving the reference to a real subject.
Instances can be obtained using
Method SummaryModifier and TypeMethodDescriptionGets the identifier of the collection containing the subject being referenced.
resolve()Resolves and returns the Subject being referenced.Gets the identifier of the subject.
collectionIdentifierString collectionIdentifier()Gets the identifier of the collection containing the subject being referenced.
- The identifier of the collection holding this subject
subjectIdentifierString subjectIdentifier()Gets the identifier of the subject.
- The subject identifier
resolveResolves and returns the Subject being referenced.
The returned future will complete exceptionally if the subject collection with the given identifier cannot be loaded.
- The subject being referenced by this instance.