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 StartExtensionAction extends TableItemAction { 32 33 36 public StartExtensionAction() { 37 super("start", "extensions", 100, "", 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=start&id=" + item.getBundle().getId() + "&subForm=" + item.getSubFormName(); 45 } 46 47 @Override 48 public boolean isEnabled(AvailableTableItemAction availableItem) { 49 50 return false; 54 } 55 } 56 | Popular Tags |