wt.units.service
Class UnitsServiceFwd

java.lang.Object
  extended bywt.units.service.UnitsServiceFwd
All Implemented Interfaces:
RemoteAccess, Serializable, UnitsService

public class UnitsServiceFwd
extends Object
implements RemoteAccess, UnitsService, Serializable

Provides Units services. The remote Units client deals with the lightweight version of all the units objects, not the actual heavyweight version. This service delegates all requests to the UnitsDBService.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String FC_RESOURCE
           
(package private) static boolean SERVER
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
UnitsServiceFwd()
           
 
Method Summary
 MeasurementSystemDefaultView createMeasurementSystem(MeasurementSystemDefaultView measurementSystemDefaultView)
          Creates a new Measurement System.
 QuantityOfMeasureDefaultView createQuantityOfMeasure(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
          Creates the QuantityOfMeasure object given its lite version QuantityOfMeasureDefaultView object.
 void deleteMeasurementSystem(MeasurementSystemDefaultView measurementSystemDefaultView)
          Deletes this measurement system given its name.
 void deleteQuantityOfMeasure(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
          Deletes the QuantityOfMeasure object given its name.
private static Manager getManager()
           
 MeasurementSystemDefaultView getMeasurementSystemDefaultView(String name)
          Gets a measurement system by its name.
 MeasurementSystemDefaultView[] getMeasurementSystemDefaultViews()
          Gets all Measurement Systems .
 String[] getMeasurementSystemNames()
          Gets all the measurement system names in persistence store.
 QuantityOfMeasureDefaultView getQuantityOfMeasureDefaultView(String name)
          Gets a lightweight QuantityOfMeasure object given its name.
 QuantityOfMeasureDefaultView[] getQuantityOfMeasureDefaultViews()
          Gets all the quantity of measures from datastore.
 String[] getQuantityOfMeasureNames()
          Gets all QuantityOfMeasure names.
 MeasurementSystemDefaultView refreshMeasurementSystemDefaultView(MeasurementSystemDefaultView measurementSystemDefaultView)
          Refresh the current fMeasurementSystemDefaultView by reloading its state from datastore.
 QuantityOfMeasureDefaultView refreshQuantityOfMeasureDefaultView(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
          Refresh the current QuantityOfMeasureDefaultView by reloading its state from datastore.
 MeasurementSystemDefaultView updateMeasurementSystem(MeasurementSystemDefaultView measurementSystemDefaultView)
          Updates a Measurement System by saving the current object to datastore.
 QuantityOfMeasureDefaultView updateQuantityOfMeasure(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
          Update the QuantityOfMeasure by saving its state to datastore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER

static final boolean SERVER

FC_RESOURCE

private static final String FC_RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

UnitsServiceFwd

public UnitsServiceFwd()
Method Detail

getManager

private static Manager getManager()
                           throws WTException
Returns:
Manager
Throws:
WTException

createMeasurementSystem

public MeasurementSystemDefaultView createMeasurementSystem(MeasurementSystemDefaultView measurementSystemDefaultView)
                                                     throws RemoteException,
                                                            IncompatibleUnitsException,
                                                            UnitFormatException,
                                                            NotAuthorizedException,
                                                            WTException
Creates a new Measurement System.

Supported API: false

Specified by:
createMeasurementSystem in interface UnitsService
Parameters:
measurementSystemDefaultView -
Returns:
MeasurementSystemDefaultView
Throws:
RemoteException
IncompatibleUnitsException
UnitFormatException
NotAuthorizedException
WTException

createQuantityOfMeasure

public QuantityOfMeasureDefaultView createQuantityOfMeasure(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
                                                     throws RemoteException,
                                                            IncompatibleUnitsException,
                                                            UnitFormatException,
                                                            NotAuthorizedException,
                                                            WTException
Creates the QuantityOfMeasure object given its lite version QuantityOfMeasureDefaultView object.

Supported API: false

Specified by:
createQuantityOfMeasure in interface UnitsService
Parameters:
quantityOfMeasureDefaultView -
Returns:
QuantityOfMeasureDefaultView
Throws:
RemoteException
IncompatibleUnitsException
UnitFormatException
NotAuthorizedException
WTException

deleteMeasurementSystem

public void deleteMeasurementSystem(MeasurementSystemDefaultView measurementSystemDefaultView)
                             throws RemoteException,
                                    IncompatibleUnitsException,
                                    UnitFormatException,
                                    NotAuthorizedException,
                                    WTException
Deletes this measurement system given its name.

Supported API: false

Specified by:
deleteMeasurementSystem in interface UnitsService
Parameters:
measurementSystemDefaultView -
Throws:
RemoteException
IncompatibleUnitsException
UnitFormatException
NotAuthorizedException
WTException

deleteQuantityOfMeasure

public void deleteQuantityOfMeasure(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
                             throws RemoteException,
                                    IncompatibleUnitsException,
                                    UnitFormatException,
                                    NotAuthorizedException,
                                    WTException
Deletes the QuantityOfMeasure object given its name.

Supported API: false

Specified by:
deleteQuantityOfMeasure in interface UnitsService
Parameters:
quantityOfMeasureDefaultView -
Throws:
RemoteException
IncompatibleUnitsException
UnitFormatException
NotAuthorizedException
WTException

getMeasurementSystemNames

public String[] getMeasurementSystemNames()
                                   throws RemoteException,
                                          WTException
Gets all the measurement system names in persistence store. Returns null if no query results is returned for the requesting principal.

Supported API: false

Specified by:
getMeasurementSystemNames in interface UnitsService
Returns:
String[]
Throws:
RemoteException
WTException

getMeasurementSystemDefaultView

public MeasurementSystemDefaultView getMeasurementSystemDefaultView(String name)
                                                             throws RemoteException,
                                                                    WTException
Gets a measurement system by its name. Returns null if no query results is returned.

Supported API: false

Specified by:
getMeasurementSystemDefaultView in interface UnitsService
Parameters:
name -
Returns:
MeasurementSystemDefaultView
Throws:
RemoteException
WTException

getMeasurementSystemDefaultViews

public MeasurementSystemDefaultView[] getMeasurementSystemDefaultViews()
                                                                throws RemoteException,
                                                                       WTException
Gets all Measurement Systems . Returns null if no query results.

Supported API: false

Specified by:
getMeasurementSystemDefaultViews in interface UnitsService
Returns:
MeasurementSystemDefaultView[]
Throws:
RemoteException
WTException

getQuantityOfMeasureDefaultView

public QuantityOfMeasureDefaultView getQuantityOfMeasureDefaultView(String name)
                                                             throws RemoteException,
                                                                    WTException
Gets a lightweight QuantityOfMeasure object given its name.

Supported API: false

Specified by:
getQuantityOfMeasureDefaultView in interface UnitsService
Parameters:
name -
Returns:
QuantityOfMeasureDefaultView
Throws:
RemoteException
WTException

getQuantityOfMeasureDefaultViews

public QuantityOfMeasureDefaultView[] getQuantityOfMeasureDefaultViews()
                                                                throws RemoteException,
                                                                       WTException
Gets all the quantity of measures from datastore.

Supported API: false

Specified by:
getQuantityOfMeasureDefaultViews in interface UnitsService
Returns:
QuantityOfMeasureDefaultView[]
Throws:
RemoteException
WTException

getQuantityOfMeasureNames

public String[] getQuantityOfMeasureNames()
                                   throws RemoteException,
                                          WTException
Gets all QuantityOfMeasure names.

Supported API: false

Specified by:
getQuantityOfMeasureNames in interface UnitsService
Returns:
String[]
Throws:
RemoteException
WTException

refreshMeasurementSystemDefaultView

public MeasurementSystemDefaultView refreshMeasurementSystemDefaultView(MeasurementSystemDefaultView measurementSystemDefaultView)
                                                                 throws RemoteException,
                                                                        WTException
Refresh the current fMeasurementSystemDefaultView by reloading its state from datastore.

Supported API: false

Specified by:
refreshMeasurementSystemDefaultView in interface UnitsService
Parameters:
measurementSystemDefaultView -
Returns:
MeasurementSystemDefaultView
Throws:
RemoteException
WTException

refreshQuantityOfMeasureDefaultView

public QuantityOfMeasureDefaultView refreshQuantityOfMeasureDefaultView(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
                                                                 throws RemoteException,
                                                                        WTException
Refresh the current QuantityOfMeasureDefaultView by reloading its state from datastore.

Supported API: false

Specified by:
refreshQuantityOfMeasureDefaultView in interface UnitsService
Parameters:
quantityOfMeasureDefaultView -
Returns:
QuantityOfMeasureDefaultView
Throws:
RemoteException
WTException

updateMeasurementSystem

public MeasurementSystemDefaultView updateMeasurementSystem(MeasurementSystemDefaultView measurementSystemDefaultView)
                                                     throws RemoteException,
                                                            IncompatibleUnitsException,
                                                            UnitFormatException,
                                                            NotAuthorizedException,
                                                            WTException
Updates a Measurement System by saving the current object to datastore.

Supported API: false

Specified by:
updateMeasurementSystem in interface UnitsService
Parameters:
measurementSystemDefaultView -
Returns:
MeasurementSystemDefaultView
Throws:
RemoteException
IncompatibleUnitsException
UnitFormatException
NotAuthorizedException
WTException

updateQuantityOfMeasure

public QuantityOfMeasureDefaultView updateQuantityOfMeasure(QuantityOfMeasureDefaultView quantityOfMeasureDefaultView)
                                                     throws RemoteException,
                                                            IncompatibleUnitsException,
                                                            UnitFormatException,
                                                            NotAuthorizedException,
                                                            WTException
Update the QuantityOfMeasure by saving its state to datastore.

Supported API: false

Specified by:
updateQuantityOfMeasure in interface UnitsService
Parameters:
quantityOfMeasureDefaultView -
Returns:
QuantityOfMeasureDefaultView
Throws:
RemoteException
IncompatibleUnitsException
UnitFormatException
NotAuthorizedException
WTException