|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.grouperUi.beans.simpleMembershipUpdate.ImportSubjectWrapper
public class ImportSubjectWrapper
bean which is a subject, though a thin wrapper just for import purposes
Constructor Summary | |
---|---|
ImportSubjectWrapper(int theRow,
String theSourceId,
String theSubjectId,
String subjectIdentifier,
String subjectIdOrIdentifier,
String[] theRowData)
|
Method Summary | |
---|---|
String |
errorLabelForError()
get the data for an error message |
static String |
errorLabelForRowStatic(int row,
String[] rowData)
get the data for an error message |
Map<String,Set<String>> |
getAttributes()
Gets a map attribute names and values. |
String |
getAttributeValue(String name)
Returns the value of a single-valued attribute. |
String |
getAttributeValueOrCommaSeparated(String attributeName)
Returns the attribute value if single-valued, or if multi-valued, returns the values comma separated (with a space too). |
Set<String> |
getAttributeValues(String name)
Returns the values of a multi-valued attribute, or a set of size one for a single valued attribute. |
String |
getAttributeValueSingleValued(String attributeName)
Returns the attribute value if single-valued, or if multi-valued, throws an exception. |
String |
getDescription()
Gets this Subject's description. |
String |
getId()
Gets this Subject's ID. |
String |
getName()
Gets this Subject's name. |
int |
getRow()
this is the row of the file, row 1 is the header |
Source |
getSource()
Returns the Source of this Subject. |
String |
getSourceId()
get the source id of a subject |
SubjectType |
getType()
Gets this Subject's type. |
String |
getTypeName()
get the type name |
Subject |
wrappedSubject()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImportSubjectWrapper(int theRow, String theSourceId, String theSubjectId, String subjectIdentifier, String subjectIdOrIdentifier, String[] theRowData) throws SubjectNotFoundException, SubjectNotUniqueException, SourceUnavailableException, Exception
theRow
- theSourceId
- theSubjectId
- subjectIdentifier
- subjectIdOrIdentifier
- theRowData
-
SubjectNotFoundException
SubjectNotUniqueException
SourceUnavailableException
Exception
Method Detail |
---|
public Subject wrappedSubject()
public int getRow()
public String errorLabelForError()
public static String errorLabelForRowStatic(int row, String[] rowData)
row
- rowData
-
public String getAttributeValue(String name)
Subject
getAttributeValue
in interface Subject
Subject.getAttributeValue(java.lang.String)
public Set<String> getAttributeValues(String name)
Subject
getAttributeValues
in interface Subject
Subject.getAttributeValues(java.lang.String)
public Map<String,Set<String>> getAttributes()
Subject
getAttributes
in interface Subject
Subject.getAttributes()
public String getDescription()
Subject
getDescription
in interface Subject
Subject.getDescription()
public String getId()
Subject
getId
in interface Subject
Subject.getId()
public String getName()
Subject
getName
in interface Subject
Subject.getName()
public Source getSource()
Subject
getSource
in interface Subject
Subject.getSource()
public SubjectType getType()
Subject
getType
in interface Subject
Subject.getType()
public String getAttributeValueOrCommaSeparated(String attributeName)
Subject
Returns the attribute value if single-valued, or if multi-valued, returns the values comma separated (with a space too). So if the values are: a b c; this would return the string: "a, b, c" Implementors can use the static helper in SubjectImpl
getAttributeValueOrCommaSeparated
in interface Subject
Subject.getAttributeValueOrCommaSeparated(java.lang.String)
public String getAttributeValueSingleValued(String attributeName)
Subject
getAttributeValueSingleValued
in interface Subject
Subject.getAttributeValueSingleValued(java.lang.String)
public String getSourceId()
Subject
getSourceId
in interface Subject
Subject.getSourceId()
public String getTypeName()
Subject
getTypeName
in interface Subject
Subject.getTypeName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |