|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.portal.servlet.DefaultPortalExtension
public class DefaultPortalExtension
| Field Summary | |
|---|---|
protected static Set |
WELL_KNOWN_PROTOCOLS
|
| Constructor Summary | |
|---|---|
DefaultPortalExtension()
|
|
| Method Summary | |
|---|---|
protected void |
createCompositionHierarchy(org.openmdx.model1.accessor.basic.cci.ModelElement_1_0 ofType,
Map hierarchy)
Returns classes which are in the composition hierarchy of the specified type. |
Autocompleter_1_0 |
getAutocompleter(ApplicationContext application,
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 context,
String qualifiedFeatureName)
Get autocompleter for the specified object. |
protected Locale |
getCurrentLocale(ApplicationContext application)
|
DataBinding_1_0 |
getDataBinding(String dataBindingName,
ApplicationContext application)
Get data binding with given name |
int |
getDateStyle(String qualifiedFeatureName,
ApplicationContext application)
Get date style for given feature |
List |
getFindObjectsBaseFilter(ApplicationContext application,
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 context,
String qualifiedFeatureName)
Returns a list of FilterPropertys which are added to the query
when processing a FIND_OBJECTS action. |
int |
getGridPageSize(String referencedTypeName)
|
String |
getGridRowLevelId(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 refObj)
Returns the level id for an object shown in a grid. |
int |
getGridRowNestingLevel(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 refObj)
Returns the nesting level for an object shown in a grid. |
String |
getIdentityQueryFilterClause(String qualifiedReferenceName)
Return query filter clause which must be performed when a user issues a find on the object identity. |
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 |
getLookupObject(org.openmdx.model1.accessor.basic.cci.ModelElement_1_0 lookupType,
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 startFrom,
ApplicationContext application)
Get object which allows to lookup objects of referenced type |
ObjectView |
getLookupView(String id,
org.openmdx.model1.accessor.basic.cci.ModelElement_1_0 lookupType,
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 startFrom,
String filterValues,
ControlFactory controlFactory,
ApplicationContext application)
get view required which allows to lookup referenced types |
int |
getTimeStyle(String qualifiedFeatureName,
ApplicationContext application)
Get time style for given feature |
String |
getTitle(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 refObj,
short locale,
String localeAsString,
ApplicationContext application)
Evaluates the title obj the object refObj. |
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 |
handleOperationResult(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 target,
String operationName,
javax.jmi.reflect.RefStruct params,
javax.jmi.reflect.RefStruct result)
The default implementation returns target as result, i.e. |
boolean |
hasGridColours(String referencedTypeName)
Returns true if the rows of the grid containing objects of type referencedTypeName are colour enabled. |
boolean |
hasUserDefineableQualifier(Inspector inspector,
ApplicationContext application)
Returns true if the qualifier for the specified inspector is user-defineable. |
boolean |
isEnabled(String uiElementName,
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 refObj,
ApplicationContext context)
Determines whether the ui element is enabled in the context of view. |
boolean |
isLookupType(org.openmdx.model1.accessor.basic.cci.ModelElement_1_0 classDef)
Returns true if the specified type is not a valid lookup type. |
void |
renderTextValue(HtmlPage p,
String value)
The default implementation renders the unmodified text value, i.e. |
boolean |
showGridContentOnInit(GridControl gridControl,
ApplicationContext application)
The default implementation shows the grid content according to the user settings. |
protected String |
toS(Object obj)
|
void |
updateObject(Object target,
Map parameterMap,
Map fieldMap,
ApplicationContext application,
org.openmdx.base.accessor.jmi.cci.RefPackage_1_0 rootPkg)
Maps the request input to the specified object. |
protected static javax.xml.datatype.DatatypeFactory |
xmlDatatypeFactory()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Set WELL_KNOWN_PROTOCOLS
| Constructor Detail |
|---|
public DefaultPortalExtension()
| Method Detail |
|---|
protected String toS(Object obj)
public String getTitle(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 refObj,
short locale,
String localeAsString,
ApplicationContext application)
PortalExtension_1_0
getTitle in interface PortalExtension_1_0refObj - object to evaluate the titlelocale - locale index. Can be used to lookup code textslocaleAsString - the locale nameapplication - TODO
public boolean isEnabled(String uiElementName,
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 refObj,
ApplicationContext context)
PortalExtension_1_0
isEnabled in interface PortalExtension_1_0uiElementName - qualified name of the ui elementrefObj - evaluate in the context of the objectcontext - evaluate in the application context
public String getIdentityQueryFilterClause(String qualifiedReferenceName)
PortalExtension_1_0
getIdentityQueryFilterClause in interface PortalExtension_1_0qualifiedReferenceName - qualified reference name
public int getGridRowNestingLevel(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 refObj)
PortalExtension_1_0
getGridRowNestingLevel in interface PortalExtension_1_0refObj - object for which the nesting level is calculated.
public String getGridRowLevelId(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 refObj)
PortalExtension_1_0
getGridRowLevelId in interface PortalExtension_1_0refObj - object for which the row level id is calculated.
public int getGridPageSize(String referencedTypeName)
getGridPageSize in interface PortalExtension_1_0public boolean hasGridColours(String referencedTypeName)
PortalExtension_1_0
hasGridColours in interface PortalExtension_1_0public boolean isLookupType(org.openmdx.model1.accessor.basic.cci.ModelElement_1_0 classDef)
PortalExtension_1_0
isLookupType in interface PortalExtension_1_0
public Autocompleter_1_0 getAutocompleter(ApplicationContext application,
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 context,
String qualifiedFeatureName)
PortalExtension_1_0
getAutocompleter in interface PortalExtension_1_0
public List getFindObjectsBaseFilter(ApplicationContext application,
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 context,
String qualifiedFeatureName)
PortalExtension_1_0FilterPropertys which are added to the query
when processing a FIND_OBJECTS action. E.g. non-active objects should not
be returned by the find objects reply a filter of the form active=true can
be returned.
getFindObjectsBaseFilter in interface PortalExtension_1_0protected Locale getCurrentLocale(ApplicationContext application)
public void updateObject(Object target,
Map parameterMap,
Map fieldMap,
ApplicationContext application,
org.openmdx.base.accessor.jmi.cci.RefPackage_1_0 rootPkg)
updateObject in interface PortalExtension_1_0fieldMap - map containing the (modeled) field definitions of the target object.
Entries are of the form (key=qualified feature name, value=feature instance of
org.openmdx.portal.servlet.attribute.Attribute).
protected void createCompositionHierarchy(org.openmdx.model1.accessor.basic.cci.ModelElement_1_0 ofType,
Map hierarchy)
throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public org.openmdx.base.accessor.jmi.cci.RefObject_1_0 getLookupObject(org.openmdx.model1.accessor.basic.cci.ModelElement_1_0 lookupType,
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 startFrom,
ApplicationContext application)
throws org.openmdx.base.exception.ServiceException
PortalExtension_1_0
getLookupObject in interface PortalExtension_1_0org.openmdx.base.exception.ServiceException
public ObjectView getLookupView(String id,
org.openmdx.model1.accessor.basic.cci.ModelElement_1_0 lookupType,
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 startFrom,
String filterValues,
ControlFactory controlFactory,
ApplicationContext application)
throws org.openmdx.base.exception.ServiceException
getLookupView in interface PortalExtension_1_0org.openmdx.base.exception.ServiceException
public boolean hasUserDefineableQualifier(Inspector inspector,
ApplicationContext application)
PortalExtension_1_0
hasUserDefineableQualifier in interface PortalExtension_1_0
public boolean showGridContentOnInit(GridControl gridControl,
ApplicationContext application)
showGridContentOnInit in interface PortalExtension_1_0
public void renderTextValue(HtmlPage p,
String value)
throws org.openmdx.base.exception.ServiceException
renderTextValue in interface PortalExtension_1_0org.openmdx.base.exception.ServiceException
public int getDateStyle(String qualifiedFeatureName,
ApplicationContext application)
PortalExtension_1_0
getDateStyle in interface PortalExtension_1_0qualifiedFeatureName - null or qualified name of feature for which date style is returned.
public int getTimeStyle(String qualifiedFeatureName,
ApplicationContext application)
PortalExtension_1_0
getTimeStyle in interface PortalExtension_1_0qualifiedFeatureName - null or qualified name of feature for which date style is returned.
public DataBinding_1_0 getDataBinding(String dataBindingName,
ApplicationContext application)
PortalExtension_1_0
getDataBinding in interface PortalExtension_1_0
public org.openmdx.base.accessor.jmi.cci.RefObject_1_0 handleOperationResult(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 target,
String operationName,
javax.jmi.reflect.RefStruct params,
javax.jmi.reflect.RefStruct result)
throws org.openmdx.base.exception.ServiceException
handleOperationResult in interface PortalExtension_1_0target - operation was invoked on the target objectoperationName - invoked operationparams - parameter of operation invocationresult - operation result
org.openmdx.base.exception.ServiceExceptionprotected static javax.xml.datatype.DatatypeFactory xmlDatatypeFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||