@Override public void processAfterCopy( MaintenanceDocument document, Map<String, String[]> requestParameters) { Book book = ((Book) document.getNewMaintainableObject().getDataObject()); book.setIsbn(null); super.processAfterCopy(document, requestParameters); }
@Override public void saveDataObject() { super.saveDataObject(); // flush context cache DistributedCacheManagerDecorator distributedCacheManagerDecorator = GlobalResourceLoader.getService(KrmsConstants.KRMS_DISTRIBUTED_CACHE); distributedCacheManagerDecorator.getCache(ContextDefinition.Cache.NAME).clear(); }
@Override public void processAfterCopy( MaintenanceDocument document, Map<String, String[]> requestParameters) { ContextBo context = (ContextBo) document.getNewMaintainableObject().getDataObject(); context.setId(contextIdIncrementer.getNewId()); super.processAfterCopy(document, requestParameters); }