|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsc.beans.LscBean
org.lsc.beans.AbstractBean
public abstract class AbstractBean
Abstract bean used to centralize methods across all beans
The main purpose of this class is to provide the mapper method which allows the bean to be mapped from the original object.
The bean is also able to map a bean from SearchResult LDAP object.
| Field Summary | |
|---|---|
static String |
GET_ACCESSOR_PREFIX
Deprecated. The accessor getter prefix. |
static String |
MAP_FUNCTION_PREFIX
Deprecated. The mapper method prefix. |
static String |
SET_ACCESSOR_PREFIX
Deprecated. The accessor setter prefix. |
| Constructor Summary | |
|---|---|
AbstractBean()
Deprecated. The default constructor. |
|
| Method Summary | |
|---|---|
static AbstractBean |
getInstance(SearchResult entry,
String baseDn,
Class<?> c)
Deprecated. Set a bean from an LDAP entry |
static Map<String,List<Method>> |
getLocalMethods()
Deprecated. |
static void |
loadLocalMethods(Class<?> cl,
Map<String,List<Method>> lMs,
String prefix)
Deprecated. Load the prefixed methods of the class into the map |
void |
mapDistinguishName(top t,
IBean destBean,
String value)
Deprecated. Method implemented to bypass the default distinguish name mapping. |
static void |
mapper(Class<?> cl,
IBean bean,
Object o)
Deprecated. Load all the object values into the bean by invoking either the object bean map function or the default mapper. |
static void |
setLocalMethods(Map<String,List<Method>> localMethods)
Deprecated. |
| Methods inherited from class org.lsc.beans.LscBean |
|---|
clone, generateDn, getAttributeAsSetById, getAttributeById, getAttributeFirstValueById, getAttributesNames, getAttributeValueById, getAttributeValuesById, getDataSchema, getDistinguishedName, getDistinguishName, getDN, getFullDistinguishedName, setAttribute, setAttribute, setDataSchema, setDistinguishedName, setDistinguishName, setMetadata, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String GET_ACCESSOR_PREFIX
public static final String MAP_FUNCTION_PREFIX
public static final String SET_ACCESSOR_PREFIX
| Constructor Detail |
|---|
public AbstractBean()
| Method Detail |
|---|
public static void mapper(Class<?> cl,
IBean bean,
Object o)
throws IllegalAccessException,
InvocationTargetException
cl - the local class which may be used to check
Introspectionbean - the object to fillo - object from which the values will be taken
IllegalArgumentException
IllegalAccessException
InvocationTargetException
public static void loadLocalMethods(Class<?> cl,
Map<String,List<Method>> lMs,
String prefix)
cl - the class to introspectlMs - the method mapprefix - the methods prefix to look for
public final void mapDistinguishName(top t,
IBean destBean,
String value)
t - the original attributedestBean - the destinationvalue - the distinguish name value
public static AbstractBean getInstance(SearchResult entry,
String baseDn,
Class<?> c)
throws NamingException
entry - the LDAP entrybaseDn - the base Dn used to set the right Dnc - class to instantiate
NamingException - thrown if a directory exception is encountered while
looking at the entrypublic static final Map<String,List<Method>> getLocalMethods()
public static final void setLocalMethods(Map<String,List<Method>> localMethods)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||