/** * <p>Added accounting settings to attributes.</p> * @param pAddParam additional param * @throws Exception - an exception */ public final void addAccSettingsIntoAttrs( final Map<String, Object> pAddParam) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("accSettings", srvAccSettings.lazyGetAccSettings()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); }
/** * <p>Added accounting settings to attributes.</p> * @param pAddParam additional param * @throws Exception - an exception */ public final void addAccSettingsIntoAttrs( final Map<String, Object> pAddParam) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("accSettings", srvAccSettings.lazyGetAccSettings()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); }
/** * <p>Added accounting settings to attributes.</p> * @param pAddParam additional param * @throws Exception - an exception */ public final void addAccSettingsIntoAttrs( final Map<String, Object> pAddParam) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("accSettings", srvAccSettings.lazyGetAccSettings()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); }
/** * <p>Added accounting settings to attributes.</p> * @param pAddParam additional param * @throws Exception - an exception */ public final void addAccSettingsIntoAttrs( final Map<String, Object> pAddParam) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("accSettings", srvAccSettings.lazyGetAccSettings()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", srvTypeCode.getTypeCodeMap()); }
/** * <p>Added accounting settings to attributes.</p> * @param pAddParam additional param * @throws Exception - an exception */ public final void addAccSettingsIntoAttrs( final Map<String, Object> pAddParam) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("accSettings", srvAccSettings.lazyGetAccSettings()); }
/** * <p>Added accounting settings to attributes.</p> * @param pAddParam additional param * @throws Exception - an exception */ public final void addAccSettingsIntoAttrs( final Map<String, Object> pAddParam) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("accSettings", srvAccSettings.lazyGetAccSettings()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", srvTypeCode.getTypeCodeMap()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); }
/** * <p>Retrieve other data of entity e.g. warehouse entries.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void retrieveOtherDataFor(final Map<String, Object> pAddParam, final T pEntity) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("warehouseEntries", srvWarehouseEntry .retrieveEntriesFor(pAddParam, pEntity)); attributes.setAttribute("cogsEntries", srvCogsEntry .retrieveEntriesFor(pAddParam, pEntity)); }
/** * <p>Retrieve other data of entity e.g. warehouse entries.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void retrieveOtherDataFor(final Map<String, Object> pAddParam, final T pEntity) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("warehouseEntries", srvWarehouseEntry .retrieveEntriesFor(pAddParam, pEntity)); }
/** * <p>Retrieve other data of entity e.g. warehouse entries.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void retrieveOtherDataFor(final Map<String, Object> pAddParam, final T pEntity) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("warehouseEntries", srvWarehouseEntry .retrieveEntriesFor(pAddParam, pEntity)); attributes.setAttribute("useMaterialEntries", srvUseMaterialEntry .retrieveEntriesFor(pAddParam, pEntity)); }
/** * <p>Retrieve other data of entity e.g. warehouse entries.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void retrieveOtherDataFor(final Map<String, Object> pAddParam, final T pEntity) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("warehouseEntries", srvWarehouseEntry .retrieveEntriesFor(pAddParam, pEntity)); attributes.setAttribute("useMaterialEntries", srvUseMaterialEntry .retrieveEntriesFor(pAddParam, pEntity)); attributes.setAttribute("cogsEntries", srvCogsEntry .retrieveEntriesFor(pAddParam, pEntity)); }
/** * <p>Retrieve entity from DB by given ID.</p> * @param pAddParam additional param * @param pId ID * @return entity or null * @throws Exception - an exception **/ @Override public final T retrieveEntityById(final Map<String, Object> pAddParam, final Object pId) throws Exception { addAccSettingsIntoAttrs(pAddParam); T entity = getSrvOrm().retrieveEntityById(getEntityClass(), pId); @SuppressWarnings("unchecked") Map<String, String[]> parameterMap = (Map<String, String[]>) pAddParam. get("parameterMap"); if (parameterMap.get("actionAdd") != null && "full".equals(parameterMap.get("actionAdd")[0])) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("accEntries", srvAccEntry .retrieveAccEntriesFor(pAddParam, entity)); } retrieveOtherDataFor(pAddParam, entity); return entity; }