@Named
@Singleton
public class SearchSubjectHelper
extends org.sonatype.goodies.common.ComponentSupport
Subject
s into
Elasticsearch. The caller is provided with a SearchSubjectHelper.SubjectRegistration
that should typically be used as part of a
try-with-resources block.Modifier and Type | Class and Description |
---|---|
class |
SearchSubjectHelper.SubjectRegistration
AutoCloseable class demarcating the registration and unregistration of a subject. |
Constructor and Description |
---|
SearchSubjectHelper() |
Modifier and Type | Method and Description |
---|---|
org.apache.shiro.subject.Subject |
getSubject(String subjectId)
Gets the subject associated with the specified ID if present, throwing an exception if no subject exists.
|
SearchSubjectHelper.SubjectRegistration |
register(org.apache.shiro.subject.Subject subject)
Registers the subject, returning a
SearchSubjectHelper.SubjectRegistration . |
public SearchSubjectHelper.SubjectRegistration register(org.apache.shiro.subject.Subject subject)
SearchSubjectHelper.SubjectRegistration
.public org.apache.shiro.subject.Subject getSubject(String subjectId)
Copyright © 2008–2021 Sonatype, Inc.. All rights reserved.