001
014
015 package com.liferay.portal.workflow;
016
017 import com.liferay.portal.kernel.workflow.WorkflowEngineManagerUtil;
018 import com.liferay.portal.model.Portlet;
019 import com.liferay.portal.security.permission.PermissionChecker;
020 import com.liferay.portal.theme.ThemeDisplay;
021 import com.liferay.portlet.BaseControlPanelEntry;
022
023
026 public class WorkflowControlPanelEntry extends BaseControlPanelEntry {
027
028 public boolean isVisible(
029 PermissionChecker permissionChecker, Portlet portlet)
030 throws Exception {
031
032 return false;
033 }
034
035 @Override
036 public boolean isVisible(
037 Portlet portlet, String category, ThemeDisplay themeDisplay)
038 throws Exception {
039
040 if (WorkflowEngineManagerUtil.isDeployed()) {
041 return super.isVisible(portlet, category, themeDisplay);
042 }
043 else {
044 return false;
045 }
046 }
047
048 }