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 String
errorLabelForRowStatic
(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()
int
getRow()
this is the row of the file, row 1 is the headerorg.apache.commons.csv.CSVRecord
whatever was entered, id or identifiergetType()
boolean
void
setResolvedFromSource
(boolean isResolvedFromSource) void
setTranslationMap
(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:
SubjectNotFoundException
SubjectNotUniqueException
SourceUnavailableException
Exception
-
-
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:
getAttributeValue
in interfaceSubject
- See Also:
-
getAttributeValues
- Specified by:
getAttributeValues
in interfaceSubject
- See Also:
-
getAttributes
- Specified by:
getAttributes
in interfaceSubject
- See Also:
-
getDescription
- Specified by:
getDescription
in interfaceSubject
- See Also:
-
getId
-
getName
-
getSource
-
getType
-
getAttributeValueOrCommaSeparated
- Specified by:
getAttributeValueOrCommaSeparated
in interfaceSubject
- See Also:
-
getAttributeValueSingleValued
- Specified by:
getAttributeValueSingleValued
in interfaceSubject
- See Also:
-
getSourceId
- Specified by:
getSourceId
in interfaceSubject
- See Also:
-
getTypeName
- Specified by:
getTypeName
in interfaceSubject
- See Also:
-
getAttributeValue
- Specified by:
getAttributeValue
in interfaceSubject
- See Also:
-
getAttributeValueOrCommaSeparated
public String getAttributeValueOrCommaSeparated(String attributeName, boolean excludeInternalAttributes) - Specified by:
getAttributeValueOrCommaSeparated
in interfaceSubject
- See Also:
-
getAttributeValueSingleValued
public String getAttributeValueSingleValued(String attributeName, boolean excludeInternalAttributes) - Specified by:
getAttributeValueSingleValued
in interfaceSubject
- See Also:
-
getAttributeValues
- Specified by:
getAttributeValues
in interfaceSubject
- See Also:
-
getAttributes
- Specified by:
getAttributes
in interfaceSubject
- See Also:
-
getTranslationMap
- Specified by:
getTranslationMap
in interfaceSubject
-
setTranslationMap
- Specified by:
setTranslationMap
in interfaceSubject
-
isResolvedFromSource
public boolean isResolvedFromSource()- Specified by:
isResolvedFromSource
in interfaceSubject
-
setResolvedFromSource
public void setResolvedFromSource(boolean isResolvedFromSource) - Specified by:
setResolvedFromSource
in interfaceSubject
-