|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.identityconnectors.flatfile.extension.FlatFileSchema
public class FlatFileSchema
Represents the properties that are mentioned in the schema properties file
Constructor Summary | |
---|---|
FlatFileSchema(java.lang.String schemaFileName) |
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Boolean>> |
getBooleanMapping() Returns the mapping for boolean attributes |
java.util.Map<java.lang.String,java.lang.Boolean> |
getBooleanMapping(java.lang.String field) Get boolean-string mapping for a particular field |
java.util.List<java.lang.String> |
getComplexMandatoryAttributes() Returns the list of mandatory attributes that are of complex type ie., Multivalued fields with sub-fields |
java.util.Map<java.lang.String,java.lang.String> |
getDataType() Gets the data types of all fields as a map |
java.lang.String |
getDataType(java.lang.String fieldName) Gets the data type of a given field |
java.lang.String |
getDateFormat() Gets the date format used in the flat file |
java.util.Map<java.lang.String,java.lang.String> |
getEmbeddedObjClassMap() Gets the embedded object classes of all fields as a map |
java.lang.String |
getEmbeddedObjectClass(java.lang.String fieldName) Gets the embedded object class for a given field |
java.util.List<java.lang.String> |
getFieldNames() |
java.util.List<java.lang.String> |
getMandatoryAttrs() Gets the list of mandatory attributes |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getMultiValueFields() Gets all the multi-valued fields along with sub-fields as a map |
java.lang.String |
getNameAttribute() Gets the Name attribute |
org.identityconnectors.framework.common.objects.Schema |
getSchema() Constructs and returns the schema of the flat file by reading the header of the flat file |
java.lang.String |
getSchemaFileName() Gets the name of the flat file schema file |
java.util.Properties |
getSchemaProps() Gets the schema file loaded as a java properties object |
java.util.List<java.lang.String> |
getSimpleMandatoryAttributes() Returns the list of mandatory attributes that are single-valued and multi-valued without sub-fields |
java.lang.String |
getStatusAttribute() Gets the status attribute name |
java.util.List<java.lang.String> |
getSubFields(java.lang.String fieldName) Gets the sub-fields of a given field |
java.lang.String |
getUidAttribute() Gets the Uid attribute |
boolean |
isMandatory(java.lang.String fieldName) Checks if the given field is mandatory field or not |
boolean |
isMultiValueField(java.lang.String fieldName) Checks if the field is multi-valued or not |
void |
setBooleanMapping(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Boolean>> booleanMapping) Sets the mapping for boolean attributes |
void |
setDataType(java.util.Map<java.lang.String,java.lang.String> dataType) |
void |
setDateFormat(java.lang.String dateFormat) |
void |
setEmbeddedObjClassMap(java.util.Map<java.lang.String,java.lang.String> embeddedObjClassMap) |
void |
setFieldNames(java.util.List<java.lang.String> fieldNames) |
void |
setMandatoryAttrs(java.util.List<java.lang.String> mandatoryAttrs) |
void |
setMultiValueFields(java.util.Map<java.lang.String,java.util.List<java.lang.String>> multiValueFields) |
void |
setNameAttribute(java.lang.String nameAttribute) |
void |
setSchemaFileName(java.lang.String schemaFileName) |
void |
setSchemaProps(java.util.Properties schemaProps) |
void |
setStatusAttribute(java.lang.String statusAttribute) Sets the status attribute name |
void |
setUidAttribute(java.lang.String uidAttribute) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlatFileSchema(java.lang.String schemaFileName)
Method Detail |
---|
public org.identityconnectors.framework.common.objects.Schema getSchema()
cfg
- the Flat File Configuration object which contain all information for reading header from flat filepublic java.lang.String getSchemaFileName()
public void setSchemaFileName(java.lang.String schemaFileName)
cfg
- the schemaFileName to setpublic java.util.List<java.lang.String> getFieldNames()
public void setFieldNames(java.util.List<java.lang.String> fieldNames)
fieldNames
- the fieldNames to setpublic java.util.Map<java.lang.String,java.lang.String> getEmbeddedObjClassMap()
public void setEmbeddedObjClassMap(java.util.Map<java.lang.String,java.lang.String> embeddedObjClassMap)
embeddedObjClassMap
- the embeddedObjClassMap to setpublic java.lang.String getUidAttribute()
public void setUidAttribute(java.lang.String uidAttribute)
uidAttribute
- the uidAttribute to setpublic java.lang.String getNameAttribute()
public void setNameAttribute(java.lang.String nameAttribute)
nameAttribute
- the nameAttribute to setpublic java.lang.String getStatusAttribute()
public void setStatusAttribute(java.lang.String statusAttribute)
statusAttribute
-public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Boolean>> getBooleanMapping()
public void setBooleanMapping(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Boolean>> booleanMapping)
booleanMapping
-public java.util.Map<java.lang.String,java.lang.Boolean> getBooleanMapping(java.lang.String field)
field
-public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getMultiValueFields()
public void setMultiValueFields(java.util.Map<java.lang.String,java.util.List<java.lang.String>> multiValueFields)
multiValueFields
- the multiValueFields to setpublic java.util.Properties getSchemaProps()
public void setSchemaProps(java.util.Properties schemaProps)
schemaProps
- the schemaProps to setpublic java.util.List<java.lang.String> getMandatoryAttrs()
public void setMandatoryAttrs(java.util.List<java.lang.String> mandatoryAttrs)
mandatoryAttrs
- the mandatoryAttrs to setpublic java.util.Map<java.lang.String,java.lang.String> getDataType()
public java.lang.String getDataType(java.lang.String fieldName)
fieldname
- name of the fieldpublic void setDataType(java.util.Map<java.lang.String,java.lang.String> dataType)
dataType
- the dataType to setpublic java.lang.String getDateFormat()
public void setDateFormat(java.lang.String dateFormat)
dateFormat
- the dateFormat to setpublic boolean isMultiValueField(java.lang.String fieldName)
fieldName
- the name of the fieldpublic java.util.List<java.lang.String> getSubFields(java.lang.String fieldName)
fieldName
- name of the fieldpublic java.lang.String getEmbeddedObjectClass(java.lang.String fieldName)
fieldName
- name of the fieldpublic boolean isMandatory(java.lang.String fieldName)
fieldName
- name of the fieldpublic java.util.List<java.lang.String> getComplexMandatoryAttributes()
public java.util.List<java.lang.String> getSimpleMandatoryAttributes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |