Modifier and Type | Class and Description |
---|---|
static class |
WsSubject.WsSubjectResultCode
result code of a request
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SUBJECT_ATTRIBUTE_PREFIX
prefix of attribute that refers to subject: subject.
|
Constructor and Description |
---|
WsSubject()
constructor
|
WsSubject(Member member,
java.lang.String[] subjectAttributeNames,
WsSubjectLookup subjectLookup,
boolean includeSubjectDetails)
construct with member to set internal fields
|
WsSubject(Subject subject,
java.lang.String[] subjectAttributeNames,
WsSubjectLookup wsSubjectLookup)
constructor to convert jdbc subject to a ws subject
|
WsSubject(WsSubjectLookup wsSubjectLookup)
this is a temporary constructor to just put the lookup info here
in case there is an error retrieving the subject
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
assignResultCode(WsSubject.WsSubjectResultCode wsSubjectResultCode)
assign the code from the enum
|
int |
compareTo(WsSubject o2) |
static WsSubject[] |
convertMembers(java.util.Set<Member> memberSet,
java.lang.String[] attributeNames,
boolean includeSubjectDetail)
convert members to subject results
|
java.lang.String[] |
getAttributeValues()
if attributes are being sent back per config in the grouper.properties,
this is attribute0 value, this is extended subject data
|
java.lang.String |
getId()
subject id, note if no subject found, and identifier was passed in,
that will be placed here
|
java.lang.String |
getIdentifierLookup()
identifier used to lookup subject
|
java.lang.String |
getName() |
java.lang.String |
getResultCode() |
java.lang.String |
getSourceId() |
java.lang.String |
getSuccess()
T or F for success
|
void |
setAttributeValues(java.lang.String[] attributesa)
attribute data of subjects in group (in same order as attributeNames)
|
void |
setId(java.lang.String id1)
subject id, note if no subject found, and identifier was passed in,
that will be placed here
|
void |
setIdentifierLookup(java.lang.String identifierLookup1)
return the identifier looked up
|
void |
setName(java.lang.String name1) |
void |
setResultCode(java.lang.String resultCode1) |
void |
setSourceId(java.lang.String source1) |
void |
setSuccess(java.lang.String success1)
T or F for success
|
java.lang.String |
toString()
make sure this is an explicit toString
|
public static final java.lang.String SUBJECT_ATTRIBUTE_PREFIX
public WsSubject()
public WsSubject(WsSubjectLookup wsSubjectLookup)
wsSubjectLookup
- to be based on (assuming subject not found,
just copy the fieldspublic WsSubject(Subject subject, java.lang.String[] subjectAttributeNames, WsSubjectLookup wsSubjectLookup)
subject
- (can be null)subjectAttributeNames
- (should be calculated based on if detail or not)wsSubjectLookup
- can be null, else the lookup which got the subjectpublic WsSubject(Member member, java.lang.String[] subjectAttributeNames, WsSubjectLookup subjectLookup, boolean includeSubjectDetails)
member
- subjectAttributeNames
- are the attributes the user is getting (either requested or in config)
(should be calculated for is detail or not)subjectLookup
- includeSubjectDetails
- retrieveExtendedSubjectDataBoolean
- true to retrieve subject info (more than just the id)public java.lang.String getIdentifierLookup()
public void setIdentifierLookup(java.lang.String identifierLookup1)
identifierLookup1
- public java.lang.String toString()
toString
in class java.lang.Object
public static WsSubject[] convertMembers(java.util.Set<Member> memberSet, java.lang.String[] attributeNames, boolean includeSubjectDetail)
attributeNames
- to get from subjectsmemberSet
- includeSubjectDetail
- public java.lang.String getId()
public void setId(java.lang.String id1)
id1
- public java.lang.String getName()
public void setName(java.lang.String name1)
name1
- the name to setpublic java.lang.String[] getAttributeValues()
public void setAttributeValues(java.lang.String[] attributesa)
attributesa
- the attributes to setpublic java.lang.String getSourceId()
public void setSourceId(java.lang.String source1)
source1
- the source to setpublic java.lang.String getResultCode()
public void setResultCode(java.lang.String resultCode1)
resultCode1
- the resultCode to setpublic void assignResultCode(WsSubject.WsSubjectResultCode wsSubjectResultCode)
wsSubjectResultCode
- public java.lang.String getSuccess()
public void setSuccess(java.lang.String success1)
success1
- the success to set