Class ImportSubjectWrapper
java.lang.Object
edu.internet2.middleware.grouper.grouperUi.beans.simpleMembershipUpdate.ImportSubjectWrapper
- All Implemented Interfaces:
Subject,Serializable
bean which is a subject, though a thin wrapper just for import purposes
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionImportSubjectWrapper(int theRow, String theSourceId, String theSubjectId, String subjectIdentifier, String theSubjectIdOrIdentifier, org.apache.commons.csv.CSVRecord theRowData) -
Method Summary
Modifier and TypeMethodDescriptionget the data for an error messagestatic StringerrorLabelForRowStatic(int row, org.apache.commons.csv.CSVRecord rowData) get the data for an error messagegetAttributes(boolean excludeInternalAttributes) getAttributeValue(String name) getAttributeValue(String attributeName, boolean excludeInternalAttributes) getAttributeValueOrCommaSeparated(String attributeName) getAttributeValueOrCommaSeparated(String attributeName, boolean excludeInternalAttributes) getAttributeValues(String name) getAttributeValues(String attributeName, boolean excludeInternalAttributes) getAttributeValueSingleValued(String attributeName) getAttributeValueSingleValued(String attributeName, boolean excludeInternalAttributes) getId()getName()intgetRow()this is the row of the file, row 1 is the headerorg.apache.commons.csv.CSVRecordwhatever was entered, id or identifiergetType()booleanvoidsetResolvedFromSource(boolean isResolvedFromSource) voidsetTranslationMap(Map<String, Object> translationMap)
-
Constructor Details
-
ImportSubjectWrapper
public ImportSubjectWrapper(int theRow, String theSourceId, String theSubjectId, String subjectIdentifier, String theSubjectIdOrIdentifier, org.apache.commons.csv.CSVRecord theRowData) throws SubjectNotFoundException, SubjectNotUniqueException, SourceUnavailableException, Exception - Parameters:
theRow-theSourceId-theSubjectId-subjectIdentifier-theSubjectIdOrIdentifier-theRowData-- Throws:
SubjectNotFoundExceptionSubjectNotUniqueExceptionSourceUnavailableExceptionException
-
-
Method Details
-
getRowData
public org.apache.commons.csv.CSVRecord getRowData() -
getSubjectIdOrIdentifier
whatever was entered, id or identifier- Returns:
- the subjectIdOrIdentifier
-
wrappedSubject
- Returns:
- lazy loaded wrapped subject
-
getRow
public int getRow()this is the row of the file, row 1 is the header- Returns:
- the row
-
errorLabelForError
get the data for an error message- Returns:
- the row
-
errorLabelForRowStatic
get the data for an error message- Parameters:
row-rowData-- Returns:
- the error label
-
getAttributeValue
- Specified by:
getAttributeValuein interfaceSubject- See Also:
-
getAttributeValues
- Specified by:
getAttributeValuesin interfaceSubject- See Also:
-
getAttributes
- Specified by:
getAttributesin interfaceSubject- See Also:
-
getDescription
- Specified by:
getDescriptionin interfaceSubject- See Also:
-
getId
-
getName
-
getSource
-
getType
-
getAttributeValueOrCommaSeparated
- Specified by:
getAttributeValueOrCommaSeparatedin interfaceSubject- See Also:
-
getAttributeValueSingleValued
- Specified by:
getAttributeValueSingleValuedin interfaceSubject- See Also:
-
getSourceId
- Specified by:
getSourceIdin interfaceSubject- See Also:
-
getTypeName
- Specified by:
getTypeNamein interfaceSubject- See Also:
-
getAttributeValue
- Specified by:
getAttributeValuein interfaceSubject- See Also:
-
getAttributeValueOrCommaSeparated
public String getAttributeValueOrCommaSeparated(String attributeName, boolean excludeInternalAttributes) - Specified by:
getAttributeValueOrCommaSeparatedin interfaceSubject- See Also:
-
getAttributeValueSingleValued
public String getAttributeValueSingleValued(String attributeName, boolean excludeInternalAttributes) - Specified by:
getAttributeValueSingleValuedin interfaceSubject- See Also:
-
getAttributeValues
- Specified by:
getAttributeValuesin interfaceSubject- See Also:
-
getAttributes
- Specified by:
getAttributesin interfaceSubject- See Also:
-
getTranslationMap
- Specified by:
getTranslationMapin interfaceSubject
-
setTranslationMap
- Specified by:
setTranslationMapin interfaceSubject
-
isResolvedFromSource
public boolean isResolvedFromSource()- Specified by:
isResolvedFromSourcein interfaceSubject
-
setResolvedFromSource
public void setResolvedFromSource(boolean isResolvedFromSource) - Specified by:
setResolvedFromSourcein interfaceSubject
-