public class Depots extends AbstractImpl
Modifier and Type | Field and Description |
---|---|
static short |
BOOKING_STATUS_FINAL |
static short |
BOOKING_STATUS_PENDING |
static short |
BOOKING_TYPE_CLOSING |
static short |
BOOKING_TYPE_REVERSAL |
static short |
BOOKING_TYPE_STANDARD |
static short |
DEPOT_USAGE_GOODS_DELIVERY |
static short |
DEPOT_USAGE_GOODS_ISSUE |
static short |
DEPOT_USAGE_GOODS_RETURN |
static short |
DEPOT_USAGE_WORK_EFFORT |
Modifier | Constructor and Description |
---|---|
protected |
Depots() |
Modifier and Type | Method and Description |
---|---|
void |
acceptCompoundBooking(CompoundBooking compoundBooking)
Accept compound booking.
|
void |
assertReports(Depot depot,
short bookingStatusThreshold)
Re-calculate depot reports.
|
CompoundBooking |
cancelCompoundBooking(CompoundBooking cb,
List<String> errors)
Cancel compound booking.
|
void |
closeDepot(Depot depot,
Date closingDate,
List<String> errors) |
void |
closeDepotPosition(DepotPosition depotPosition,
Date closingDate,
List<String> errors) |
CompoundBooking |
createBookingByPosition(DepotEntity depotEntity,
Date valueDate,
short bookingType,
BigDecimal quantity,
String bookingTextName,
BookingText bookingText,
DepotPosition positionCredit,
DepotPosition positionDebit,
BookingOrigin origin,
CompoundBooking reversalOf,
List<String> errors) |
CompoundBooking |
createBookingByPositionName(DepotEntity depotEntity,
Date valueDate,
short bookingType,
BigDecimal quantity,
String bookingTextName,
BookingText bookingText,
String positionName,
String depotNumberCredit,
Depot depotCredit,
String depotNumberDebit,
Depot depotDebit,
BookingOrigin origin,
CompoundBooking reversalOf,
List<String> errors) |
CompoundBooking |
createBookingByProduct(DepotEntity depotEntity,
Date valueDate,
short bookingType,
BigDecimal quantity,
String bookingTextName,
BookingText bookingText,
Product product,
String depotNumberCredit,
Depot depotCredit,
String depotNumberDebit,
Depot depotDebit,
BookingOrigin origin,
CompoundBooking reversalOf,
List<String> errors) |
CompoundBooking |
createCompoundBooking(DepotEntity depotEntity,
Date valueDate,
short bookingType,
BigDecimal[] quantities,
String[] bookingTextNames,
BookingText[] bookingTexts,
DepotPosition[] creditPositions,
DepotPosition[] debitPositions,
BookingOrigin[] origins,
CompoundBooking reversalOf,
List<String> errors) |
CompoundBooking |
createCreditDebitBooking(DepotEntity depotEntity,
Date valueDate,
short bookingType,
BigDecimal quantity,
String bookingTextName,
BookingText bookingText,
DepotPosition positionCredit,
DepotPosition positionDebit,
BookingOrigin originIdentity,
CompoundBooking reversalOf,
List<String> errors) |
void |
finalizeCompoundBooking(CompoundBooking cb)
Finalize compound booking.
|
DepotPosition |
getAndCreateDepotPosition(DepotEntity depotEntity,
String depotNumber,
Depot depot,
String positionName,
Product product,
Date openingDate) |
Segment |
getDepotSegment(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName) |
static Depots |
getInstance() |
boolean |
hasBookings(CrxObject bookingTarget)
Test for bookings having a depot position which is composite of
the given booking target.
|
void |
lockCompoundBooking(CompoundBooking cb,
short lockingReason) |
Depot |
openDepot(DepotHolder depotHolder,
String name,
String description,
String depotNumber,
Date openingDate,
DepotType depotType,
DepotGroup depotGroup,
List<String> errors) |
DepotPosition |
openDepotPosition(Depot depot,
String positionName,
String positionDescription,
Date openingDate,
String depotPositionQualifier,
Product product,
Boolean isLocked) |
void |
preDelete(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object,
boolean preDelete)
Pre-delete callback.
|
void |
preStore(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object)
Pre-store callback.
|
void |
refreshReport(Depot depot,
DepotReport report,
DepotReport reportPreviousPeriod)
Re-calculate depot reports.
|
static void |
register() |
protected void |
removeCompoundBooking(CompoundBooking compoundBooking,
boolean preDelete)
Remove compound booking.
|
protected void |
removeDepot(Depot depot,
boolean preDelete)
Remove depot.
|
protected void |
removeDepotEntity(DepotEntity depotEntity,
boolean preDelete)
Remove depot entity.
|
protected void |
removeDepotGroup(DepotGroup depotGroup,
boolean preDelete)
Remove depot group.
|
protected void |
removeDepotHolder(DepotHolder depotHolder,
boolean preDelete)
Remove depot holder.
|
protected void |
removeDepotPosition(DepotPosition depotPosition,
boolean preDelete)
Remove depot position.
|
protected void |
removeSimpleBooking(SimpleBooking simpleBooking,
boolean preDelete)
Remove simple booking.
|
protected void |
removeSingleBooking(SingleBooking singleBooking,
boolean preDelete)
Remove single booking.
|
void |
testForBalance(CompoundBooking cb,
BigDecimal balance,
javax.jdo.PersistenceManager pm) |
void |
testForOpenPosition(Date valueDate,
short bookingType,
DepotPosition depotPosition) |
void |
unlockCompoundBooking(CompoundBooking cb) |
getInstance, getUidAsString, registerImpl
public static final short BOOKING_TYPE_STANDARD
public static final short BOOKING_TYPE_CLOSING
public static final short BOOKING_TYPE_REVERSAL
public static final short BOOKING_STATUS_PENDING
public static final short BOOKING_STATUS_FINAL
public static final short DEPOT_USAGE_GOODS_ISSUE
public static final short DEPOT_USAGE_GOODS_RETURN
public static final short DEPOT_USAGE_GOODS_DELIVERY
public static final short DEPOT_USAGE_WORK_EFFORT
public static void register()
public static Depots getInstance() throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public Segment getDepotSegment(javax.jdo.PersistenceManager pm, String providerName, String segmentName)
public void testForOpenPosition(Date valueDate, short bookingType, DepotPosition depotPosition) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public void testForBalance(CompoundBooking cb, BigDecimal balance, javax.jdo.PersistenceManager pm) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public CompoundBooking createCreditDebitBooking(DepotEntity depotEntity, Date valueDate, short bookingType, BigDecimal quantity, String bookingTextName, BookingText bookingText, DepotPosition positionCredit, DepotPosition positionDebit, BookingOrigin originIdentity, CompoundBooking reversalOf, List<String> errors) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public CompoundBooking createCompoundBooking(DepotEntity depotEntity, Date valueDate, short bookingType, BigDecimal[] quantities, String[] bookingTextNames, BookingText[] bookingTexts, DepotPosition[] creditPositions, DepotPosition[] debitPositions, BookingOrigin[] origins, CompoundBooking reversalOf, List<String> errors) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public DepotPosition getAndCreateDepotPosition(DepotEntity depotEntity, String depotNumber, Depot depot, String positionName, Product product, Date openingDate) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public CompoundBooking createBookingByPosition(DepotEntity depotEntity, Date valueDate, short bookingType, BigDecimal quantity, String bookingTextName, BookingText bookingText, DepotPosition positionCredit, DepotPosition positionDebit, BookingOrigin origin, CompoundBooking reversalOf, List<String> errors) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public CompoundBooking createBookingByProduct(DepotEntity depotEntity, Date valueDate, short bookingType, BigDecimal quantity, String bookingTextName, BookingText bookingText, Product product, String depotNumberCredit, Depot depotCredit, String depotNumberDebit, Depot depotDebit, BookingOrigin origin, CompoundBooking reversalOf, List<String> errors) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public CompoundBooking createBookingByPositionName(DepotEntity depotEntity, Date valueDate, short bookingType, BigDecimal quantity, String bookingTextName, BookingText bookingText, String positionName, String depotNumberCredit, Depot depotCredit, String depotNumberDebit, Depot depotDebit, BookingOrigin origin, CompoundBooking reversalOf, List<String> errors) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public void refreshReport(Depot depot, DepotReport report, DepotReport reportPreviousPeriod) throws org.openmdx.base.exception.ServiceException
depot
- report
- reportPreviousPeriod
- org.openmdx.base.exception.ServiceException
public void assertReports(Depot depot, short bookingStatusThreshold) throws org.openmdx.base.exception.ServiceException
depot
- bookingStatusThreshold
- org.openmdx.base.exception.ServiceException
public CompoundBooking cancelCompoundBooking(CompoundBooking cb, List<String> errors) throws org.openmdx.base.exception.ServiceException
cb
- errors
- org.openmdx.base.exception.ServiceException
public void acceptCompoundBooking(CompoundBooking compoundBooking) throws org.openmdx.base.exception.ServiceException
compoundBooking
- org.openmdx.base.exception.ServiceException
public void finalizeCompoundBooking(CompoundBooking cb) throws org.openmdx.base.exception.ServiceException
cb
- org.openmdx.base.exception.ServiceException
protected void removeCompoundBooking(CompoundBooking compoundBooking, boolean preDelete) throws org.openmdx.base.exception.ServiceException
compoundBooking
- preDelete
- org.openmdx.base.exception.ServiceException
protected void removeSimpleBooking(SimpleBooking simpleBooking, boolean preDelete) throws org.openmdx.base.exception.ServiceException
simpleBooking
- preDelete
- org.openmdx.base.exception.ServiceException
protected void removeSingleBooking(SingleBooking singleBooking, boolean preDelete) throws org.openmdx.base.exception.ServiceException
singleBooking
- preDelete
- org.openmdx.base.exception.ServiceException
public boolean hasBookings(CrxObject bookingTarget) throws org.openmdx.base.exception.ServiceException
bookingTarget
- org.openmdx.base.exception.ServiceException
protected void removeDepotEntity(DepotEntity depotEntity, boolean preDelete) throws org.openmdx.base.exception.ServiceException
depotEntity
- preDelete
- org.openmdx.base.exception.ServiceException
protected void removeDepotHolder(DepotHolder depotHolder, boolean preDelete) throws org.openmdx.base.exception.ServiceException
depotHolder
- preDelete
- org.openmdx.base.exception.ServiceException
protected void removeDepot(Depot depot, boolean preDelete) throws org.openmdx.base.exception.ServiceException
depot
- preDelete
- org.openmdx.base.exception.ServiceException
protected void removeDepotPosition(DepotPosition depotPosition, boolean preDelete) throws org.openmdx.base.exception.ServiceException
depotPosition
- preDelete
- org.openmdx.base.exception.ServiceException
protected void removeDepotGroup(DepotGroup depotGroup, boolean preDelete) throws org.openmdx.base.exception.ServiceException
depotGroup
- preDelete
- org.openmdx.base.exception.ServiceException
public Depot openDepot(DepotHolder depotHolder, String name, String description, String depotNumber, Date openingDate, DepotType depotType, DepotGroup depotGroup, List<String> errors) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public void closeDepot(Depot depot, Date closingDate, List<String> errors) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public DepotPosition openDepotPosition(Depot depot, String positionName, String positionDescription, Date openingDate, String depotPositionQualifier, Product product, Boolean isLocked) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public void closeDepotPosition(DepotPosition depotPosition, Date closingDate, List<String> errors) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public void lockCompoundBooking(CompoundBooking cb, short lockingReason) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public void unlockCompoundBooking(CompoundBooking cb) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public void preDelete(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object, boolean preDelete) throws org.openmdx.base.exception.ServiceException
AbstractImpl
preDelete
in class AbstractImpl
org.openmdx.base.exception.ServiceException
public void preStore(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object) throws org.openmdx.base.exception.ServiceException
AbstractImpl
preStore
in class AbstractImpl
org.openmdx.base.exception.ServiceException
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.