1 19 20 package com.sslexplorer.networkplaces.tags; 21 22 import javax.servlet.jsp.tagext.TagSupport ; 23 24 import org.apache.commons.logging.Log; 25 import org.apache.commons.logging.LogFactory; 26 27 import com.sslexplorer.networkplaces.forms.FileSystemForm; 28 29 36 public class NoDeleteTag extends TagSupport { 37 final static Log log = LogFactory.getLog(NoDeleteTag.class); 38 39 44 public int doStartTag() { 45 FileSystemForm fsf = (FileSystemForm) pageContext.getRequest().getAttribute("fileSystemForm"); 46 if (fsf.isViewOnly() || fsf.getVFSResource().getMount().isReadOnly() || fsf.getNetworkPlace().isNoDelete()) { 47 return SKIP_BODY; 48 } else { 49 return EVAL_BODY_INCLUDE; 50 } 51 } 52 } | Popular Tags |