com.ail.core.product.newproducttype
Class NewProductTypeService

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.core.Service
          extended by com.ail.core.product.newproducttype.NewProductTypeService
All Implemented Interfaces:
ConfigurationOwner, CoreUser, java.io.Serializable, java.lang.Cloneable

public class NewProductTypeService
extends Service

Instantiate a type defined by a product.

Version:
$Revision: 1.4 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
NewProductTypeService()
          Default constructor
 
Method Summary
 CommandArg getArgs()
          Getter returning the arguments used by this entry point.
 java.lang.String getConfigurationNamespace()
          Default entry point implementation of the getConfigurationNamespace method.
 Core getCore()
          Getter to fetch the entry point's code.
 Version getVersion()
          Fetch the version of this entry point.
 VersionEffectiveDate getVersionEffectiveDate()
          A default entry point implemention returning the version effective date.
 void invoke()
          The 'business logic' of the entry point.
 void setArgs(CommandArg args)
          Setter used to the set the entry points arguments.
 
Methods inherited from class com.ail.core.Service
getConfiguration, getSecurityPrincipal, resetConfiguration, setConfiguration
 
Methods inherited from class com.ail.core.Type
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewProductTypeService

public NewProductTypeService()
Default constructor

Method Detail

getCore

public Core getCore()
Getter to fetch the entry point's code. This method is demanded by the EntryPoint class.

Specified by:
getCore in class Service
Returns:
This entry point's instance of Core.

getVersion

public Version getVersion()
Fetch the version of this entry point.

Specified by:
getVersion in class Service
Returns:
A version object describing the version of this entry point.

getConfigurationNamespace

public java.lang.String getConfigurationNamespace()
Description copied from class: Service
Default entry point implementation of the getConfigurationNamespace method. The name of the entry point class is returned.

Specified by:
getConfigurationNamespace in interface CoreUser
Overrides:
getConfigurationNamespace in class Service
Returns:
The classes namespace

getVersionEffectiveDate

public VersionEffectiveDate getVersionEffectiveDate()
Description copied from class: Service
A default entry point implemention returning the version effective date. Entry points with a critical dependency on selecting the version effective date should override this method. The default behaviour is to use the version effective date from the CallersCore supplied in the Args passed to the service. If that is null, then the date now is used.

Specified by:
getVersionEffectiveDate in interface CoreUser
Overrides:
getVersionEffectiveDate in class Service
Returns:
Date date to use.

setArgs

public void setArgs(CommandArg args)
Setter used to the set the entry points arguments.

Specified by:
setArgs in class Service
Parameters:
args - for invoke

getArgs

public CommandArg getArgs()
Getter returning the arguments used by this entry point.

Specified by:
getArgs in class Service
Returns:
An instance of NewProductTypeArgs.

invoke

public void invoke()
            throws PreconditionException
The 'business logic' of the entry point.

Specified by:
invoke in class Service
Throws:
PreconditionException