public class RuleSubjectActAs extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACT_AS_SEPARATOR
when packing things in a single param, this is the separator
|
Constructor and Description |
---|
RuleSubjectActAs() |
RuleSubjectActAs(String subjectId,
String sourceId,
String subjectIdentifier) |
Modifier and Type | Method and Description |
---|---|
static void |
actAsThreadLocalAssign(Subject subject)
clear act as thread local
|
static void |
actAsThreadLocalClear()
clear act as thread local
|
static boolean |
allowedToActAs(RuleDefinition ruleDefinition,
Subject subject,
Subject subjectToActAs)
see if a subject can act as another subject
|
String |
getSourceId()
source id to act as
|
String |
getSubjectId()
subject id to act as
|
String |
getSubjectIdentifier()
subject identifier to act as
|
void |
setSourceId(String sourceId1)
source id to act as
|
void |
setSubjectId(String subjectId1)
subject id to act as
|
void |
setSubjectIdentifier(String subjectIdentifier1)
subject identifier to act as
|
Subject |
subject(boolean exceptionIfNotFound)
resolve the subject
|
String |
toString() |
String |
validate(RuleDefinition ruleDefinition)
validate this
|
public static final String ACT_AS_SEPARATOR
public RuleSubjectActAs(String subjectId, String sourceId, String subjectIdentifier)
subjectId
- sourceId
- subjectIdentifier
- public RuleSubjectActAs()
public String getSubjectId()
public void setSubjectId(String subjectId1)
subjectId1
- public String getSourceId()
public void setSourceId(String sourceId1)
sourceId1
- public String getSubjectIdentifier()
public void setSubjectIdentifier(String subjectIdentifier1)
subjectIdentifier1
- public String toString()
toString
in class Object
Object.toString()
public Subject subject(boolean exceptionIfNotFound)
exceptionIfNotFound
- true if exception if not foundpublic static void actAsThreadLocalClear()
public static void actAsThreadLocalAssign(Subject subject)
public String validate(RuleDefinition ruleDefinition)
ruleDefinition
- public static boolean allowedToActAs(RuleDefinition ruleDefinition, Subject subject, Subject subjectToActAs)
ruleDefinition
- subject
- subjectToActAs
- Copyright © 2016 Internet2. All rights reserved.