1 23 24 package org.infoglue.cms.applications.contenttool.actions; 25 26 import org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction; 27 import org.infoglue.cms.controllers.kernel.impl.simple.DigitalAssetController; 28 29 34 35 public class DeleteDigitalAssetAction extends InfoGlueAbstractAction 36 { 37 private static final long serialVersionUID = 1L; 38 39 private Integer digitalAssetId; 40 private String entity; 41 private Integer entityId; 42 private String returnAddress; 43 44 45 protected String doExecute() throws Exception 46 { 47 DigitalAssetController.getController().delete(digitalAssetId, entity, entityId); 48 49 this.getResponse().sendRedirect(returnAddress); 50 51 return NONE; 52 } 53 54 public Integer getDigitalAssetId() 55 { 56 return digitalAssetId; 57 } 58 59 public void setDigitalAssetId(Integer digitalAssetId) 60 { 61 this.digitalAssetId = digitalAssetId; 62 } 63 64 public String getEntity() 65 { 66 return entity; 67 } 68 69 public void setEntity(String entity) 70 { 71 this.entity = entity; 72 } 73 74 public Integer getEntityId() 75 { 76 return entityId; 77 } 78 79 public void setEntityId(Integer entityId) 80 { 81 this.entityId = entityId; 82 } 83 84 public String getReturnAddress() 85 { 86 return returnAddress; 87 } 88 89 public void setReturnAddress(String returnAddress) 90 { 91 this.returnAddress = returnAddress; 92 } 93 } 94 | Popular Tags |