1 19 20 package com.sslexplorer.extensions.itemactions; 21 22 import com.sslexplorer.extensions.ExtensionBundleItem; 23 import com.sslexplorer.policyframework.Permission; 24 import com.sslexplorer.policyframework.PolicyConstants; 25 import com.sslexplorer.security.SessionInfo; 26 import com.sslexplorer.table.AvailableTableItemAction; 27 import com.sslexplorer.table.TableItemAction; 28 29 31 public class StopExtensionAction extends TableItemAction { 32 33 36 public StopExtensionAction() { 37 super("stop", "extensions", 200, "", false, SessionInfo.MANAGEMENT_CONSOLE_CONTEXT, 38 PolicyConstants.EXTENSIONS_RESOURCE_TYPE, new Permission[] { PolicyConstants.PERM_CHANGE }); 39 } 40 41 @Override 42 public String getPath(AvailableTableItemAction availableItem) { 43 ExtensionBundleItem item = (ExtensionBundleItem)availableItem.getRowItem(); 44 return "/showExtensionStore.do?actionTarget=stop&id=" + item.getBundle().getId() + "&subForm=" + item.getSubFormName(); 45 } 46 47 @Override 48 public boolean isEnabled(AvailableTableItemAction availableItem) { 49 return false; 53 } 54 } 55 | Popular Tags |