Advertisement
psi_mmobile

Untitled

Sep 30th, 2020
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. public void setDocumentData(String path, String fileName) {
  2. if (!this.ocLogo) {
  3. return;
  4. }
  5. AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
  6. DCIteratorBinding operationCenterIterator =
  7. ADFUtils.findIterator("OperationCenterForUserAdminCenterView1Iterator");
  8. Row currentOperationCenterRow = operationCenterIterator.getCurrentRow();
  9. ViewObjectImpl graphicalSymbolView = am.getGraphicalSymbolInsertView1();
  10. Row graphicalSymbol = graphicalSymbolView.createRow();
  11. graphicalSymbol.setAttribute("Name", new File(path).getName());
  12. graphicalSymbol.setAttribute("ObjectType", "operation_center_logo");
  13. graphicalSymbolView.insertRow(graphicalSymbol);
  14. currentOperationCenterRow.setAttribute("GraphicalSymbolId", graphicalSymbol.getAttribute("GraphicalSymbolId"));
  15. currentOperationCenterRow.setAttribute("GSymbol", new File(path).getName());
  16. ADFContext.getCurrent().getSessionScope().put("_editOperationCenterLastUploadedImagePath", path);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement