org.opencrx.kernel.layer.application
Class OpenCrxKernel_1

java.lang.Object
  extended by org.openmdx.compatibility.base.dataprovider.spi.Layer_1
      extended by org.openmdx.compatibility.base.dataprovider.spi.StreamOperationAwareLayer_1
          extended by org.openmdx.compatibility.base.dataprovider.transport.dispatching.AbstractPlugin_1
              extended by org.openmdx.compatibility.base.dataprovider.transport.dispatching.OperationAwarePlugin_1
                  extended by org.opencrx.kernel.layer.application.OpenCrxKernel_1
All Implemented Interfaces:
Dataprovider_1_0, Layer_1_0, Layer_1_1, Layer_1_2, 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:


Field Summary
 Backend backend
           
protected  Path codeSegment
           
 javax.xml.datatype.DatatypeFactory datatypes
           
 RefPackage_1_3 delegatingPkg
           
 String localCorrelationId
           
 RefPackage_1_3 localPkg
           
protected  Path loginRealmIdentity
           
static String MAX_DATE
           
static Path PATTERN_ACTIVITY
           
static Path PATTERN_ACTIVITY_CATEGORY
           
static Path PATTERN_ACTIVITY_MILESTONE
           
static Path PATTERN_ACTIVITY_TRACKER
           
static Path PATTERN_ACTIVITY_WORK_RECORD
           
static Path PATTERN_CODE_SEGMENT
           
static Path PATTERN_CONTRACT_POSITION
           
static Path PATTERN_DEPOT_COMPOUND_BOOKING
           
static Path PATTERN_DEPOT_DEPOT
           
static Path PATTERN_DEPOT_ENTITY
           
static Path PATTERN_DEPOT_HOLDER
           
static Path PATTERN_DEPOT_POSITION
           
static Path PATTERN_DEPOT_SIMPLE_BOOKING
           
static Path PATTERN_DEPOT_SINGLE_BOOKING
           
static Path PATTERN_PRODUCT_PRICE_LEVEL
           
protected  List readOnlyTypes
           
 
Fields inherited from class org.openmdx.compatibility.base.dataprovider.transport.dispatching.AbstractPlugin_1
batchSize, defaultQualifierType, delegation, directAccessPaths, header, manager, model, objectCache, objectFactory, objectIsNew, packageImpls, retrievalSize, router
 
Constructor Summary
OpenCrxKernel_1()
           
 
Method Summary
 void activate(short id, Configuration configuration, Layer_1_0 delegation)
           
protected  List completeObject(ServiceHeader header, Set fetchSet, DataproviderObject_1_0 object)
           
 DataproviderReply create(ServiceHeader header, DataproviderRequest request)
           
protected  DataproviderObject createResult(Path replyPath, String structName)
           
 void epilog(ServiceHeader header, DataproviderRequest[] requests, DataproviderReply[] replies)
           
 DataproviderReply find(ServiceHeader header, DataproviderRequest request)
           
 DataproviderReply get(ServiceHeader header, 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(ServiceHeader header, List pendingModifications)
           
protected  Set getDirectAccessPaths()
           
 Model_1_0 getModel()
           
protected  ObjectFactory_1_0 getObjectFactory()
           
protected  Map getPackageImpls()
           
 RequestCollection getRunAsRootDelegation()
           
 String getUidAsString()
           
protected  void notifyPreStoreObject(ServiceHeader header, DataproviderObject object)
          This method is invoked after successful validation and before storing the object.
 void prolog(ServiceHeader header, DataproviderRequest[] requests)
           
 DataproviderReply remove(ServiceHeader header, DataproviderRequest request)
           
 DataproviderReply replace(ServiceHeader header, DataproviderRequest request)
           
 void testReferenceIsChangeable(Path referencePath)
           
protected  String uidAsString()
           
 
Methods inherited from class org.openmdx.compatibility.base.dataprovider.transport.dispatching.OperationAwarePlugin_1
getStreamOperation, getStreamOperation, otherOperation
 
Methods inherited from class org.openmdx.compatibility.base.dataprovider.transport.dispatching.AbstractPlugin_1
createObject, getContainer, getFeatureName, getManager, getManager, getObject, getServiceHeader, retrieveObject, retrieveObject, retrieveObject
 
Methods inherited from class org.openmdx.compatibility.base.dataprovider.spi.StreamOperationAwareLayer_1
createResponse, getConfigurationValue, getConfigurationValue, operation
 
Methods inherited from class org.openmdx.compatibility.base.dataprovider.spi.Layer_1
configurationSpecification, deactivate, epilog, getConfiguration, getDelegation, getDelegation, getId, getLenientProcessor, isLenient, modify, process, process, prolog, set, startPublishing, terminal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_DATE

public static final String MAX_DATE
See Also:
Constant Field Values

PATTERN_ACTIVITY

public static final Path PATTERN_ACTIVITY

PATTERN_ACTIVITY_WORK_RECORD

public static final Path PATTERN_ACTIVITY_WORK_RECORD

PATTERN_DEPOT_ENTITY

public static final Path PATTERN_DEPOT_ENTITY

PATTERN_DEPOT_HOLDER

public static final Path PATTERN_DEPOT_HOLDER

PATTERN_DEPOT_DEPOT

public static final Path PATTERN_DEPOT_DEPOT

PATTERN_DEPOT_POSITION

public static final Path PATTERN_DEPOT_POSITION

PATTERN_DEPOT_SINGLE_BOOKING

public static final Path PATTERN_DEPOT_SINGLE_BOOKING

PATTERN_DEPOT_SIMPLE_BOOKING

public static final Path PATTERN_DEPOT_SIMPLE_BOOKING

PATTERN_DEPOT_COMPOUND_BOOKING

public static final Path PATTERN_DEPOT_COMPOUND_BOOKING

PATTERN_CONTRACT_POSITION

public static final Path PATTERN_CONTRACT_POSITION

PATTERN_CODE_SEGMENT

public static final Path PATTERN_CODE_SEGMENT

PATTERN_ACTIVITY_TRACKER

public static final Path PATTERN_ACTIVITY_TRACKER

PATTERN_ACTIVITY_CATEGORY

public static final Path PATTERN_ACTIVITY_CATEGORY

PATTERN_ACTIVITY_MILESTONE

public static final Path PATTERN_ACTIVITY_MILESTONE

PATTERN_PRODUCT_PRICE_LEVEL

public static final Path PATTERN_PRODUCT_PRICE_LEVEL

codeSegment

protected Path codeSegment

loginRealmIdentity

protected Path loginRealmIdentity

readOnlyTypes

protected List readOnlyTypes

datatypes

public javax.xml.datatype.DatatypeFactory datatypes

localCorrelationId

public String localCorrelationId

localPkg

public RefPackage_1_3 localPkg

delegatingPkg

public RefPackage_1_3 delegatingPkg

backend

public Backend backend
Constructor Detail

OpenCrxKernel_1

public OpenCrxKernel_1()
Method Detail

activate

public void activate(short id,
                     Configuration configuration,
                     Layer_1_0 delegation)
              throws ServiceException,
                     Exception
Specified by:
activate in interface Layer_1_0
Overrides:
activate in class AbstractPlugin_1
Throws:
ServiceException
Exception

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 ObjectFactory_1_0 getObjectFactory()
                                      throws ServiceException
Specified by:
getObjectFactory in class AbstractPlugin_1
Throws:
ServiceException

getBackendContext

protected BackendContext getBackendContext(ServiceHeader header,
                                           List pendingModifications)
                                    throws ServiceException
Throws:
ServiceException

getBackend

protected Backend getBackend()
                      throws ServiceException
Implement a user-defined backend as follows:

Throws:
ServiceException

getModel

public Model_1_0 getModel()
Overrides:
getModel in class AbstractPlugin_1

getUidAsString

public String getUidAsString()

testReferenceIsChangeable

public void testReferenceIsChangeable(Path referencePath)
                               throws ServiceException
Throws:
ServiceException

createResult

protected DataproviderObject createResult(Path replyPath,
                                          String structName)

completeObject

protected List completeObject(ServiceHeader header,
                              Set fetchSet,
                              DataproviderObject_1_0 object)
                       throws ServiceException
Throws:
ServiceException

notifyPreStoreObject

protected void notifyPreStoreObject(ServiceHeader header,
                                    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 RequestCollection getRunAsRootDelegation()

prolog

public void prolog(ServiceHeader header,
                   DataproviderRequest[] requests)
            throws ServiceException
Specified by:
prolog in interface Layer_1_0
Overrides:
prolog in class AbstractPlugin_1
Throws:
ServiceException

epilog

public void epilog(ServiceHeader header,
                   DataproviderRequest[] requests,
                   DataproviderReply[] replies)
            throws ServiceException
Specified by:
epilog in interface Layer_1_0
Overrides:
epilog in class AbstractPlugin_1
Throws:
ServiceException

get

public DataproviderReply get(ServiceHeader header,
                             DataproviderRequest request)
                      throws ServiceException
Specified by:
get in interface Layer_1_0
Overrides:
get in class Layer_1
Throws:
ServiceException

find

public DataproviderReply find(ServiceHeader header,
                              DataproviderRequest request)
                       throws ServiceException
Specified by:
find in interface Layer_1_0
Overrides:
find in class Layer_1
Throws:
ServiceException

create

public DataproviderReply create(ServiceHeader header,
                                DataproviderRequest request)
                         throws ServiceException
Specified by:
create in interface Layer_1_0
Overrides:
create in class Layer_1
Throws:
ServiceException

remove

public DataproviderReply remove(ServiceHeader header,
                                DataproviderRequest request)
                         throws ServiceException
Specified by:
remove in interface Layer_1_0
Overrides:
remove in class Layer_1
Throws:
ServiceException

replace

public DataproviderReply replace(ServiceHeader header,
                                 DataproviderRequest request)
                          throws ServiceException
Specified by:
replace in interface Layer_1_0
Overrides:
replace in class Layer_1
Throws:
ServiceException

uidAsString

protected final String uidAsString()


This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.