01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.admin.common;
06:
07: import com.tc.object.appevent.ApplicationEventContext;
08:
09: public abstract class AbstractWorkState {
10: private AbstractResolutionAction[] fResolutionActions;
11:
12: public void setActions(AbstractResolutionAction[] actions) {
13: fResolutionActions = actions;
14: }
15:
16: public AbstractResolutionAction[] getActions() {
17: return fResolutionActions;
18: }
19:
20: public boolean hasSelectedActions() {
21: if (fResolutionActions != null && fResolutionActions.length > 0) {
22: for (int i = 0; i < fResolutionActions.length; i++) {
23: if (fResolutionActions[i].isSelected()) {
24: return true;
25: }
26: }
27: }
28:
29: return false;
30: }
31:
32: public abstract String summary();
33:
34: public abstract String descriptionFor(
35: ApplicationEventContext context);
36: }
|