|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.dataobjects.BaseDataObject
com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject
com.jcorporate.expresso.core.dbobj.DBObject
com.jcorporate.expresso.core.dbobj.SecuredDBObject
com.jcorporate.expresso.ext.xml.dbobj.ControllerXSLMap
Entries here define the mapping between a specific user and browser type and Controller combination to the correct XSL stlyesheet to be used to transform the outputs of this controller. This allows different users (by group) to see different representations of a Controller's output, allowing for personalization, and different browsers to get different XSL transformations as well. As a single combination of user/browser/controller might match more than one stylesheet potentially, there is a "sequence" in these combinations. The stylesheet with the lowest sequence that matches all of the other criteria is selected.
| Nested Class Summary |
| Nested classes inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
DBObject.FieldError, DBObject.FieldUpdate |
| Field Summary | |
protected static org.apache.oro.text.regex.PatternCompiler |
compiler
Used for regular expression compilation |
protected static org.apache.oro.text.regex.PatternMatcher |
matcher
Used to match compiled patterns against strings |
protected static Map |
regExpCache
Used to hold compiled regular expressions in an attempt to speed up pattern matching. |
| Fields inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
ADD, ALL_FUNCTIONS, CACHE_NAME, CACHE_TTY, DELETE, SEARCH, SYSTEM_ACCOUNT, SYSTEM_ACCOUNT_NAME, UPDATE |
| Fields inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
ATTRIBUTE_ERROR, ATTRIBUTE_ERROR_MESSAGE, ATTRIBUTE_PAGE_LIMIT, BIG_DECIMAL_ZERO, EMAIL_MASK, EVENT_ADD, EVENT_DELETE, EVENT_UPDATE, FLOAT_MASK, INT_MASK, IS_CHECK_RELATIONAL_INTEGRITY, UPDATE_CHANGED_ONLY, WHERE_KEYWORD |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
anyFieldsDistinct, anyFieldsToRetrieve, appendCustomWhere, caseSensitiveQuery, customWhereClause, dbKey, distinctFields, localConnection, LONGBINARY_READ_DEFAULT_SIZE, maxRecords, myClassName, myUpdates, offsetRecord, recordSet, retrieveFields, sMetadataMap, sortKeys |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
currentStatus, globalMask |
| Fields inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
STATUS_CURRENT, STATUS_DELETED, STATUS_NEW, STATUS_UPDATED |
| Constructor Summary | |
ControllerXSLMap()
Constructor |
|
ControllerXSLMap(int uid)
Normal DBObject Constructor |
|
| Method Summary | |
boolean |
getMatch(String userName,
String controllerClassParam,
int userAgentId)
wlo: This is a copy of getMatch(String, String, String). |
boolean |
getMatch(String userName,
String controllerClassName,
String userAgentString)
Figure out which XSL map entry should match, given a username, trx class name and User-Agent string & set this db object to the appropriate object. |
DBObject |
getThisDBObj()
Standard method to return a new CacheSync object |
Vector |
getValidValues(String fieldName)
Override the method getValues to provide specific values for our multi-valued fields |
void |
setupFields()
Define the table and fields for this object |
| Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
add, canRequesterAdd, canRequesterDelete, canRequesterRead, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, delete, deleteAll, find, getRequestingUid, getString, getString, getString, getString, getString, getString, getSystemUid, instantiate, isAllowed, retrieve, search, searchAndRetrieveList, searchAndRetrieveList, setRequestingUid, update |
| Methods inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
getGlobalMask, getStatus, isGlobalMasked, setFieldsWithDefaults, setGlobalMask, setStatus |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static Map regExpCache
protected static org.apache.oro.text.regex.PatternCompiler compiler
protected static org.apache.oro.text.regex.PatternMatcher matcher
| Constructor Detail |
public ControllerXSLMap()
throws DBException
public ControllerXSLMap(int uid)
throws DBException
uid - The user id of the person to have the permissions of this DBOBject| Method Detail |
public boolean getMatch(String userName,
String controllerClassParam,
int userAgentId)
throws DBException
userName - the username of the currently logged in user.controllerClassParam - the Controller classname to match againstuserAgentId - the id of the User Agent as for the User Agent table
DBException - if there's an error communicating with the underlying table
public boolean getMatch(String userName,
String controllerClassName,
String userAgentString)
throws DBException
userName - the name of the user logged incontrollerClassName - the classname of the controller to check against.userAgentString - the useragent string to check against.
DBException - if there's an error communicating with the underlying
database
public DBObject getThisDBObj()
throws DBException
getThisDBObj in class DBObjectDBException - If the new object cannot be createdDBObject.getThisDBObj()
public Vector getValidValues(String fieldName)
throws DBException
getValidValues in class DBObjectfieldName - Fielname to retrieve values for
DBException - If the values cannot be retrieved
public void setupFields()
throws DBException
setupFields in class DBObjectDBException - If the fields cannot be set up
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||