|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.profile.ProfileDictionary
public class ProfileDictionary
The ProfileDictionary manages the set of profile field definitions. It is used to create new extended fields and to define which fields are required and which are used during profile exchange.
When a client requires changes to the set of field definitions, the ProfileDictionary creates, updates and deletes ProfileFieldMetaData objects as needed.
ProfileDictionary is a Singleton. A reference to it can be obtained
from the static method getProfileDictionary
which will initialize the
dictionary from the database, create the single instance the first time it's called,
and return a reference to the dictionary.
ProfileFieldMetaData
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ProfileDictionary quietGetProfileDictionary()
public static ProfileDictionary getProfileDictionary() throws ProfileStoreException
new
.
ProfileStoreException
public static ProfileDictionary getProfileDictionary(boolean refresh) throws ProfileStoreException
new
.
ProfileStoreException
public static void init() throws ProfileStoreException
ProfileStoreException
public final ProfileFieldMetaData getFieldDefinition(java.lang.String fieldID)
ProfileFieldMetaData
public final ProfileFieldMetaData getExtendedFieldDefinition(java.lang.String fieldName)
ProfileFieldMetaData
public final ProfileFieldMetaData getStandardFieldDefinition(java.lang.String table, java.lang.String column)
ProfileFieldMetaData
public final ProfileFieldMetaData[] getExtendedFieldDefinitions() throws ProfileStoreException
ProfileStoreException
ProfileFieldMetaData
public final ProfileFieldMetaData[] getExtendedRequiredFieldDefs() throws ProfileStoreException
ProfileStoreException
ProfileFieldMetaData
public final ProfileFieldMetaData[] getExtendedRegistrationFieldDefs() throws ProfileStoreException
ProfileStoreException
ProfileFieldMetaData
public final ProfileFieldMetaData[] getStandardFieldDefinitions(boolean all) throws ProfileStoreException
all
- if true
, returns both displayable and hidden field defs.
Otherwise, only displayable fields are returned. 'Displayable' means that the
field appears on the Profile Fields panel of the TN Console.
ProfileStoreException
ProfileFieldMetaData
public final ProfileFieldMetaData[] getStandardFieldDefinitions() throws ProfileStoreException
all
- if true
, returns both displayed and hidden field defs.
ProfileStoreException
ProfileFieldMetaData
public final void updateFieldDefinition(ProfileFieldMetaData pfmd) throws ProfileStoreException
To change a field definition, get a ProfileFieldMetaData by calling one of the accessor methods in this class. Use it's mutators to change your local copy. To save the changes, pass it to this method.
NOTE: There is not a delete method. Field defintions are logically deleted by calling the delete method on a ProfileFieldMetaData object, then passing that object to this method to save it.
pfmd
- the field defintion to be saved
ProfileStoreException
- if a database error occurspublic final void addExtendedFieldDefinition(ProfileFieldMetaData pfmd) throws ProfileStoreException
pfmd
- the field defintion to be added
ProfileStoreException
- if a database error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |