public class MemberDataMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ALN
ALN data type.
|
static int |
INTEGER
INTEGER data type.
|
static int |
LOWER
LOWER case ALN data tpe.
|
static int |
UPPER
UPPER case ALN data type.
|
static int |
YORN
Boolean data type represented as 1 or 0.
|
Constructor and Description |
---|
MemberDataMap() |
Modifier and Type | Method and Description |
---|---|
void |
addColumnName(java.lang.String column,
java.lang.String attribute,
java.lang.String type)
Adds the given column name as a column with the
corresponding attribute to be used to retrieve data
from LDAP server.
|
void |
addKeyColumnName(java.lang.String column,
java.lang.String attribute,
java.lang.String type)
Adds the given column name as a key column with the
corresponding attribute to be used to retrieve data
from LDAP server.
|
java.lang.String |
getAttribute(java.lang.String column)
Returns the LDAP attribute that's mapped for the
given column name.
|
java.util.Iterator |
getColumnNames()
Returns an Iterator to iterate over the list of non-key
column names.
|
java.lang.String |
getKeyAttribute(java.lang.String column)
Returns the LDAP attribute that's mapped for the
given key column name.
|
java.util.Iterator |
getKeyColumnNames()
Returns an Iterator to iterate over the list of key
column names.
|
java.lang.String |
getMemberAttribute()
Returns the attribute to be used to retrieve the member
data from LDAP server.
|
java.lang.String |
getMemberColumn()
Returns the column name to be used to store the member
information.
|
java.lang.String |
getMemberColumnType()
Returns the data type of the member column.
|
int |
getMemberColumnTypeAsInt()
Returns the data type of the member column as integer value.
|
java.lang.String |
getMemberGroupAttribute()
Returns the attribute to be used to retrieve group account
name, if the member of the group is a group.
|
java.lang.String |
getMemberUserAttribute()
Returns the attribute to be used to retrieve user account
name, if the member of the group is a user.
|
java.lang.String |
getTableName()
Returns the table name used to store the group members.
|
int |
getTypeAsInt(java.lang.String column)
Returns data type of the column as an integer value.
|
boolean |
isSysDateColumn(java.lang.String column)
Returns whether the column is configured to have system date
when adding records.
|
boolean |
isUniqueIdColumn(java.lang.String column)
Returns whether the column is configured to have unique
id generated when adding records.
|
void |
setMemberAttribute(java.lang.String attribute)
Sets the attribute to be used to retrieve the member
data from LDAP server.
|
void |
setMemberColumn(java.lang.String column)
Sets the column name to be used to store the member
information.
|
void |
setMemberColumnType(java.lang.String type)
Sets the member column data type.
|
void |
setMemberGroupAttribute(java.lang.String attribute)
Sets the attribute to be used to retrieve group account
name, if the member of the group is a group.
|
void |
setMemberUserAttribute(java.lang.String attribute)
Sets the attribute to be used to retrieve user account
name, if the member of the group is a user.
|
void |
setTableName(java.lang.String table)
Sets the table name to be used to store group members.
|
java.lang.String |
toString()
Returns a string representation of the data for debug purpose.
|
public static final int ALN
public static final int UPPER
public static final int LOWER
public static final int INTEGER
public static final int YORN
public java.lang.String getTableName()
public void setTableName(java.lang.String table)
table
- the table name to be used to store
group members.public java.lang.String getMemberColumn()
public void setMemberColumn(java.lang.String column)
column
- the column name to be used to store
the member information.public java.lang.String getMemberAttribute()
public void setMemberAttribute(java.lang.String attribute)
attribute
- the attribute to be used to retrieve
the member data from LDAP server.public java.lang.String getMemberUserAttribute()
public void setMemberUserAttribute(java.lang.String attribute)
attribute
- the attribute to be used to retrieve
user account name, if the member of
the group is a user.public java.lang.String getMemberGroupAttribute()
public void setMemberGroupAttribute(java.lang.String attribute)
attribute
- the attribute to be used to retrieve
group account name, if the member of
the group is a group.public java.lang.String getMemberColumnType()
public int getMemberColumnTypeAsInt()
public void setMemberColumnType(java.lang.String type)
type
- the data type of the member column.public void addKeyColumnName(java.lang.String column, java.lang.String attribute, java.lang.String type)
column
- key column name.attribute
- LDAP attribute for the group.public java.util.Iterator getKeyColumnNames()
public void addColumnName(java.lang.String column, java.lang.String attribute, java.lang.String type)
column
- column name.attribute
- LDAP attribute for the group.public java.util.Iterator getColumnNames()
public java.lang.String getKeyAttribute(java.lang.String column)
column
- key column name.public java.lang.String getAttribute(java.lang.String column)
column
- column name.public boolean isUniqueIdColumn(java.lang.String column)
column
- column namepublic boolean isSysDateColumn(java.lang.String column)
column
- column namepublic int getTypeAsInt(java.lang.String column)
tableId
- table id.column
- column namepublic java.lang.String toString()
toString
in class java.lang.Object