Class RuleSubjectActAs
java.lang.Object
edu.internet2.middleware.grouper.rules.RuleSubjectActAs
definition for the subject act as for a rule
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
when packing things in a single param, this is the separator -
Constructor Summary
ConstructorDescriptionRuleSubjectActAs
(String subjectId, String sourceId, String subjectIdentifier) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
actAsThreadLocalAssign
(Subject subject) clear act as thread localstatic void
clear act as thread localstatic boolean
allowedToActAs
(RuleDefinition ruleDefinition, Subject subject, Subject subjectToActAs) see if a subject can act as another subjectsource id to act assubject id to act assubject identifier to act asvoid
setSourceId
(String sourceId1) source id to act asvoid
setSubjectId
(String subjectId1) subject id to act asvoid
setSubjectIdentifier
(String subjectIdentifier1) subject identifier to act assubject
(boolean exceptionIfNotFound) resolve the subjecttoString()
validate
(RuleDefinition ruleDefinition) validate this
-
Field Details
-
ACT_AS_SEPARATOR
when packing things in a single param, this is the separator- See Also:
-
-
Constructor Details
-
RuleSubjectActAs
- Parameters:
subjectId
-sourceId
-subjectIdentifier
-
-
RuleSubjectActAs
public RuleSubjectActAs()
-
-
Method Details
-
getSubjectId
subject id to act as- Returns:
- subject id to act as
-
setSubjectId
subject id to act as- Parameters:
subjectId1
-
-
getSourceId
source id to act as- Returns:
- source id to act as
-
setSourceId
source id to act as- Parameters:
sourceId1
-
-
getSubjectIdentifier
subject identifier to act as- Returns:
- subject id to act as
-
setSubjectIdentifier
subject identifier to act as- Parameters:
subjectIdentifier1
-
-
toString
-
subject
resolve the subject- Parameters:
exceptionIfNotFound
- true if exception if not found- Returns:
- the subject
-
actAsThreadLocalClear
public static void actAsThreadLocalClear()clear act as thread local -
actAsThreadLocalAssign
clear act as thread local -
validate
validate this- Parameters:
ruleDefinition
-- Returns:
- error or null if ok
-
allowedToActAs
public static boolean allowedToActAs(RuleDefinition ruleDefinition, Subject subject, Subject subjectToActAs) see if a subject can act as another subject- Parameters:
ruleDefinition
-subject
-subjectToActAs
-- Returns:
- true if a subject can act as another subject
-