|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.ws.soap.WsSubject
public class WsSubject
subject bean for web services
Nested Class Summary | |
---|---|
static class |
WsSubject.WsSubjectResultCode
result code of a request |
Field Summary | |
---|---|
static String |
SUBJECT_ATTRIBUTE_PREFIX
prefix of attribute that refers to subject: subject. |
Constructor Summary | |
---|---|
WsSubject()
constructor |
|
WsSubject(Member member,
String[] subjectAttributeNames,
WsSubjectLookup subjectLookup,
boolean includeSubjectDetails)
construct with member to set internal fields |
|
WsSubject(Subject subject,
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 |
Method Summary | |
---|---|
void |
assignResultCode(WsSubject.WsSubjectResultCode wsSubjectResultCode)
assign the code from the enum |
int |
compareTo(WsSubject o2)
|
static WsSubject[] |
convertMembers(Set<Member> memberSet,
String[] attributeNames,
boolean includeSubjectDetail)
convert members to subject results |
String[] |
getAttributeValues()
if attributes are being sent back per config in the grouper.properties, this is attribute0 value, this is extended subject data |
String |
getId()
subject id, note if no subject found, and identifier was passed in, that will be placed here |
String |
getIdentifierLookup()
identifier used to lookup subject |
String |
getName()
|
String |
getResultCode()
|
String |
getSourceId()
|
String |
getSuccess()
T or F for success |
void |
setAttributeValues(String[] attributesa)
attribute data of subjects in group (in same order as attributeNames) |
void |
setId(String id1)
subject id, note if no subject found, and identifier was passed in, that will be placed here |
void |
setIdentifierLookup(String identifierLookup1)
return the identifier looked up |
void |
setName(String name1)
|
void |
setResultCode(String resultCode1)
|
void |
setSourceId(String source1)
|
void |
setSuccess(String success1)
T or F for success |
String |
toString()
make sure this is an explicit toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String SUBJECT_ATTRIBUTE_PREFIX
Constructor Detail |
---|
public WsSubject()
public WsSubject(WsSubjectLookup wsSubjectLookup)
wsSubjectLookup
- to be based on (assuming subject not found,
just copy the fieldspublic WsSubject(Subject subject, 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, 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)Method Detail |
---|
public String getIdentifierLookup()
public void setIdentifierLookup(String identifierLookup1)
identifierLookup1
- public String toString()
toString
in class Object
public static WsSubject[] convertMembers(Set<Member> memberSet, String[] attributeNames, boolean includeSubjectDetail)
attributeNames
- to get from subjectsmemberSet
- includeSubjectDetail
-
public String getId()
public void setId(String id1)
id1
- public String getName()
public void setName(String name1)
name1
- the name to setpublic String[] getAttributeValues()
public void setAttributeValues(String[] attributesa)
attributesa
- the attributes to setpublic String getSourceId()
public void setSourceId(String source1)
source1
- the source to setpublic String getResultCode()
public void setResultCode(String resultCode1)
resultCode1
- the resultCode to setpublic void assignResultCode(WsSubject.WsSubjectResultCode wsSubjectResultCode)
wsSubjectResultCode
- public String getSuccess()
public void setSuccess(String success1)
success1
- the success to setpublic int compareTo(WsSubject o2)
compareTo
in interface Comparable<WsSubject>
Comparable.compareTo(java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |