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, registerImplpublic 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.ServiceExceptionpublic 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.ServiceExceptionpublic void testForBalance(CompoundBooking cb, BigDecimal balance, javax.jdo.PersistenceManager pm) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic 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.ServiceExceptionpublic 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.ServiceExceptionpublic DepotPosition getAndCreateDepotPosition(DepotEntity depotEntity, String depotNumber, Depot depot, String positionName, Product product, Date openingDate) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic 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.ServiceExceptionpublic 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.ServiceExceptionpublic 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.ServiceExceptionpublic void refreshReport(Depot depot, DepotReport report, DepotReport reportPreviousPeriod) throws org.openmdx.base.exception.ServiceException
depot - report - reportPreviousPeriod - org.openmdx.base.exception.ServiceExceptionpublic void assertReports(Depot depot, short bookingStatusThreshold) throws org.openmdx.base.exception.ServiceException
depot - bookingStatusThreshold - org.openmdx.base.exception.ServiceExceptionpublic CompoundBooking cancelCompoundBooking(CompoundBooking cb, List<String> errors) throws org.openmdx.base.exception.ServiceException
cb - errors - org.openmdx.base.exception.ServiceExceptionpublic void acceptCompoundBooking(CompoundBooking compoundBooking) throws org.openmdx.base.exception.ServiceException
compoundBooking - org.openmdx.base.exception.ServiceExceptionpublic void finalizeCompoundBooking(CompoundBooking cb) throws org.openmdx.base.exception.ServiceException
cb - org.openmdx.base.exception.ServiceExceptionprotected void removeCompoundBooking(CompoundBooking compoundBooking, boolean preDelete) throws org.openmdx.base.exception.ServiceException
compoundBooking - preDelete - org.openmdx.base.exception.ServiceExceptionprotected void removeSimpleBooking(SimpleBooking simpleBooking, boolean preDelete) throws org.openmdx.base.exception.ServiceException
simpleBooking - preDelete - org.openmdx.base.exception.ServiceExceptionprotected void removeSingleBooking(SingleBooking singleBooking, boolean preDelete) throws org.openmdx.base.exception.ServiceException
singleBooking - preDelete - org.openmdx.base.exception.ServiceExceptionpublic boolean hasBookings(CrxObject bookingTarget) throws org.openmdx.base.exception.ServiceException
bookingTarget - org.openmdx.base.exception.ServiceExceptionprotected void removeDepotEntity(DepotEntity depotEntity, boolean preDelete) throws org.openmdx.base.exception.ServiceException
depotEntity - preDelete - org.openmdx.base.exception.ServiceExceptionprotected void removeDepotHolder(DepotHolder depotHolder, boolean preDelete) throws org.openmdx.base.exception.ServiceException
depotHolder - preDelete - org.openmdx.base.exception.ServiceExceptionprotected void removeDepot(Depot depot, boolean preDelete) throws org.openmdx.base.exception.ServiceException
depot - preDelete - org.openmdx.base.exception.ServiceExceptionprotected void removeDepotPosition(DepotPosition depotPosition, boolean preDelete) throws org.openmdx.base.exception.ServiceException
depotPosition - preDelete - org.openmdx.base.exception.ServiceExceptionprotected void removeDepotGroup(DepotGroup depotGroup, boolean preDelete) throws org.openmdx.base.exception.ServiceException
depotGroup - preDelete - org.openmdx.base.exception.ServiceExceptionpublic 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.ServiceExceptionpublic void closeDepot(Depot depot, Date closingDate, List<String> errors) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic 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.ServiceExceptionpublic void closeDepotPosition(DepotPosition depotPosition, Date closingDate, List<String> errors) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic void lockCompoundBooking(CompoundBooking cb, short lockingReason) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic void unlockCompoundBooking(CompoundBooking cb) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic void preDelete(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object,
             boolean preDelete)
               throws org.openmdx.base.exception.ServiceException
AbstractImplpreDelete in class AbstractImplorg.openmdx.base.exception.ServiceExceptionpublic void preStore(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object)
              throws org.openmdx.base.exception.ServiceException
AbstractImplpreStore in class AbstractImplorg.openmdx.base.exception.ServiceExceptionThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.