org.opencrx.kernel.layer.application
Class OpenCrxKernel_1
java.lang.Object
org.openmdx.application.dataprovider.spi.Layer_1
org.openmdx.application.dataprovider.spi.OperationAwareLayer_1
org.openmdx.compatibility.base.dataprovider.transport.dispatching.AbstractPlugin_1
org.openmdx.compatibility.base.dataprovider.transport.dispatching.OperationAwarePlugin_1
org.opencrx.kernel.layer.application.OpenCrxKernel_1
- All Implemented Interfaces:
- org.openmdx.application.dataprovider.cci.Dataprovider_1_0, org.openmdx.application.dataprovider.spi.Layer_1_0, org.openmdx.application.dataprovider.spi.Layer_1_1, org.openmdx.application.dataprovider.spi.Layer_1_2, org.openmdx.application.dataprovider.spi.Operation_1_0
public class OpenCrxKernel_1
- extends OperationAwarePlugin_1
openCRX application plugin. This plugin implements the openCRX
application logic. It is implemented as openMDX compatibility plugin. It
will be migrated to a JMI plugin in version 2.x of openCRX. This will make
the plugin more object-oriented and more extensible.
However, it can be extended as follows by user-defined application logic:
- Object validation: override the method validateObject().
- Workflow: provide a class implementing the interface Workflow_1_0.
For sample workflows @see org.opencrx.kernel.worklow. The workflow
class must be registered as WfProcess object using the GUI.
- Derived attributes: the computation of derived attributes can be
added by extending completeObject().
| Fields inherited from class org.openmdx.compatibility.base.dataprovider.transport.dispatching.AbstractPlugin_1 |
batchSize, defaultQualifierType, delegation, directAccessPaths, header, manager, objectCache, objectFactory, objectIsNew, packageImpls, retrievalSize, router |
|
Method Summary |
void |
activate(short id,
org.openmdx.application.configuration.Configuration configuration,
org.openmdx.application.dataprovider.spi.Layer_1_0 delegation)
|
protected List |
completeObject(org.openmdx.application.dataprovider.cci.ServiceHeader header,
Set fetchSet,
org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 object)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
create(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
protected org.openmdx.application.dataprovider.cci.DataproviderObject |
createResult(org.openmdx.base.naming.Path replyPath,
String structName)
|
void |
epilog(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest[] requests,
org.openmdx.application.dataprovider.cci.DataproviderReply[] replies)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
find(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
get(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
protected Backend |
getBackend()
Implement a user-defined backend as follows:
Create a backend class which extends the default backend class Backend
Create a plugin class which extends this plugin and override the method getBackend
|
protected BackendContext |
getBackendContext(org.openmdx.application.dataprovider.cci.ServiceHeader header,
List pendingModifications)
|
protected Set |
getDirectAccessPaths()
|
protected org.openmdx.base.accessor.cci.PersistenceManager_1_0 |
getObjectFactory()
|
protected Map |
getPackageImpls()
|
org.openmdx.application.dataprovider.cci.RequestCollection |
getRunAsRootDelegation()
|
String |
getUidAsString()
|
protected void |
notifyPreStoreObject(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderObject object)
This method is invoked after successful validation and before
storing the object. |
void |
prolog(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest[] requests)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
remove(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
replace(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
void |
testReferenceIsChangeable(org.openmdx.base.naming.Path referencePath)
|
protected String |
uidAsString()
|
| Methods inherited from class org.openmdx.compatibility.base.dataprovider.transport.dispatching.AbstractPlugin_1 |
createObject, getConnection, getContainer, getFeatureName, getManager, getManager, getObject, getServiceHeader, retrieveObject, retrieveObject, retrieveObject |
| Methods inherited from class org.openmdx.application.dataprovider.spi.OperationAwareLayer_1 |
getConfigurationValue, getConfigurationValue, operation |
| Methods inherited from class org.openmdx.application.dataprovider.spi.Layer_1 |
configurationSpecification, deactivate, epilog, getConfiguration, getDelegation, getDelegation, getId, getLenientProcessor, getModel, isBypassedByLenientRequests, isLenient, modify, process, process, process, process, prolog, set, startPublishing, terminal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_DATE
public static final String MAX_DATE
- See Also:
- Constant Field Values
PATTERN_ACTIVITY
public static final org.openmdx.base.naming.Path PATTERN_ACTIVITY
PATTERN_ACTIVITY_WORK_RECORD
public static final org.openmdx.base.naming.Path PATTERN_ACTIVITY_WORK_RECORD
PATTERN_DEPOT_ENTITY
public static final org.openmdx.base.naming.Path PATTERN_DEPOT_ENTITY
PATTERN_DEPOT_HOLDER
public static final org.openmdx.base.naming.Path PATTERN_DEPOT_HOLDER
PATTERN_DEPOT_DEPOT
public static final org.openmdx.base.naming.Path PATTERN_DEPOT_DEPOT
PATTERN_DEPOT_POSITION
public static final org.openmdx.base.naming.Path PATTERN_DEPOT_POSITION
PATTERN_DEPOT_SINGLE_BOOKING
public static final org.openmdx.base.naming.Path PATTERN_DEPOT_SINGLE_BOOKING
PATTERN_DEPOT_SIMPLE_BOOKING
public static final org.openmdx.base.naming.Path PATTERN_DEPOT_SIMPLE_BOOKING
PATTERN_DEPOT_COMPOUND_BOOKING
public static final org.openmdx.base.naming.Path PATTERN_DEPOT_COMPOUND_BOOKING
PATTERN_CONTRACT_POSITION
public static final org.openmdx.base.naming.Path PATTERN_CONTRACT_POSITION
PATTERN_CODE_SEGMENT
public static final org.openmdx.base.naming.Path PATTERN_CODE_SEGMENT
PATTERN_ACTIVITY_TRACKER
public static final org.openmdx.base.naming.Path PATTERN_ACTIVITY_TRACKER
PATTERN_ACTIVITY_CATEGORY
public static final org.openmdx.base.naming.Path PATTERN_ACTIVITY_CATEGORY
PATTERN_ACTIVITY_MILESTONE
public static final org.openmdx.base.naming.Path PATTERN_ACTIVITY_MILESTONE
PATTERN_PRODUCT_PRICE_LEVEL
public static final org.openmdx.base.naming.Path PATTERN_PRODUCT_PRICE_LEVEL
codeSegment
protected org.openmdx.base.naming.Path codeSegment
loginRealmIdentity
protected org.openmdx.base.naming.Path loginRealmIdentity
readOnlyTypes
protected List readOnlyTypes
datatypes
public DatatypeFactory datatypes
localCorrelationId
public String localCorrelationId
localPkg
public RefPackage_1_2 localPkg
delegatingPkg
public RefPackage_1_2 delegatingPkg
backend
public Backend backend
OpenCrxKernel_1
public OpenCrxKernel_1()
activate
public void activate(short id,
org.openmdx.application.configuration.Configuration configuration,
org.openmdx.application.dataprovider.spi.Layer_1_0 delegation)
throws ServiceException
- Specified by:
activate in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
activate in class AbstractPlugin_1
- Throws:
ServiceException
getDirectAccessPaths
protected Set getDirectAccessPaths()
throws ServiceException
- Overrides:
getDirectAccessPaths in class AbstractPlugin_1
- Throws:
ServiceException
getPackageImpls
protected Map getPackageImpls()
- Overrides:
getPackageImpls in class AbstractPlugin_1
getObjectFactory
protected org.openmdx.base.accessor.cci.PersistenceManager_1_0 getObjectFactory()
throws ServiceException
- Specified by:
getObjectFactory in class AbstractPlugin_1
- Throws:
ServiceException
getBackendContext
protected BackendContext getBackendContext(org.openmdx.application.dataprovider.cci.ServiceHeader header,
List pendingModifications)
throws ServiceException
- Throws:
ServiceException
getBackend
protected Backend getBackend()
throws ServiceException
- Implement a user-defined backend as follows:
- Create a backend class which extends the default backend class
Backend
- Create a plugin class which extends this plugin and override the method
getBackend
- Throws:
ServiceException
getUidAsString
public String getUidAsString()
testReferenceIsChangeable
public void testReferenceIsChangeable(org.openmdx.base.naming.Path referencePath)
throws ServiceException
- Throws:
ServiceException
createResult
protected org.openmdx.application.dataprovider.cci.DataproviderObject createResult(org.openmdx.base.naming.Path replyPath,
String structName)
completeObject
protected List completeObject(org.openmdx.application.dataprovider.cci.ServiceHeader header,
Set fetchSet,
org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 object)
throws ServiceException
- Throws:
ServiceException
notifyPreStoreObject
protected void notifyPreStoreObject(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderObject object)
throws ServiceException
- This method is invoked after successful validation and before
storing the object. If this method throws an exception the object will
not be stored.
- Throws:
ServiceException
getRunAsRootDelegation
public org.openmdx.application.dataprovider.cci.RequestCollection getRunAsRootDelegation()
prolog
public void prolog(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest[] requests)
throws ServiceException
- Specified by:
prolog in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
prolog in class AbstractPlugin_1
- Throws:
ServiceException
epilog
public void epilog(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest[] requests,
org.openmdx.application.dataprovider.cci.DataproviderReply[] replies)
throws ServiceException
- Specified by:
epilog in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
epilog in class AbstractPlugin_1
- Throws:
ServiceException
get
public org.openmdx.application.dataprovider.cci.DataproviderReply get(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
get in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
get in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
find
public org.openmdx.application.dataprovider.cci.DataproviderReply find(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
find in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
find in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
create
public org.openmdx.application.dataprovider.cci.DataproviderReply create(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
create in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
create in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
remove
public org.openmdx.application.dataprovider.cci.DataproviderReply remove(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
remove in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
remove in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
replace
public org.openmdx.application.dataprovider.cci.DataproviderReply replace(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
replace in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
replace in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
uidAsString
protected final String uidAsString()
This software is published under the BSD license. Copyright © 2003-2009, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.