components/visual-panels/core/src/java/vpanels/panel/com/oracle/solaris/vp/panel/swing/smf/ClearServiceAction.java
equal
deleted
inserted
replaced
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 |
21 |
22 /* |
22 /* |
23 * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. |
23 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
24 */ |
24 */ |
25 |
25 |
26 package com.oracle.solaris.vp.panel.swing.smf; |
26 package com.oracle.solaris.vp.panel.swing.smf; |
27 |
27 |
28 import java.util.List; |
28 import java.util.List; |
|
29 import com.oracle.solaris.rad.client.RadPrivilegeException; |
29 import com.oracle.solaris.scf.common.ScfException; |
30 import com.oracle.solaris.scf.common.ScfException; |
30 import com.oracle.solaris.vp.panel.common.action.*; |
31 import com.oracle.solaris.vp.panel.common.action.*; |
31 import com.oracle.solaris.vp.panel.common.smf.*; |
32 import com.oracle.solaris.vp.panel.common.smf.*; |
32 import com.oracle.solaris.vp.panel.swing.action.UpdateManagedObjectAction; |
33 import com.oracle.solaris.vp.panel.swing.action.UpdateManagedObjectAction; |
33 import com.oracle.solaris.vp.panel.swing.control.SwingControl; |
34 import com.oracle.solaris.vp.panel.swing.control.SwingControl; |
80 InstanceManagedObject inst = (InstanceManagedObject)object; |
81 InstanceManagedObject inst = (InstanceManagedObject)object; |
81 try { |
82 try { |
82 inst.getService().clear(); |
83 inst.getService().clear(); |
83 } catch (ScfException e) { |
84 } catch (ScfException e) { |
84 SmfUtil.throwActionException(e); |
85 SmfUtil.throwActionException(e); |
85 } catch (SecurityException e) { |
86 } catch (RadPrivilegeException e) { |
86 throw new ActionUnauthorizedException(e); |
87 throw new ActionUnauthorizedException(e); |
87 } |
88 } |
88 } |
89 } |
89 |
90 |
90 return null; |
91 return null; |