01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.admin.common;
05:
06: import com.tc.object.appevent.ApplicationEventContext;
07: import com.tc.object.appevent.ReadOnlyObjectEvent;
08: import com.tc.object.appevent.ReadOnlyObjectEventContext;
09:
10: public class ReadOnlyWorkState extends AbstractWorkState {
11: private ReadOnlyObjectEvent fEvent;
12:
13: public ReadOnlyWorkState(ReadOnlyObjectEvent event) {
14: fEvent = event;
15: }
16:
17: public ReadOnlyObjectEvent getEvent() {
18: return fEvent;
19: }
20:
21: public ReadOnlyObjectEventContext getEventContext() {
22: return fEvent.getReadOnlyObjectEventContext();
23: }
24:
25: public String descriptionFor(ApplicationEventContext context) {
26: if (!(context instanceof ReadOnlyObjectEventContext))
27: return "";
28: return null;
29: }
30:
31: public String summary() {
32: return "Read-only shared object modification";
33: }
34: }
|