components/visual-panels/firewall/src/java/vpanels/app/firewall/com/oracle/solaris/vp/panels/firewall/client/swing/EnableServiceAction.java
branchs11-update
changeset 2805 4888f6212f94
parent 827 0944d8c0158b
equal deleted inserted replaced
2804:7546c836fd87 2805:4888f6212f94
    18  *
    18  *
    19  * CDDL HEADER END
    19  * CDDL HEADER END
    20  */
    20  */
    21 
    21 
    22 /*
    22 /*
    23  * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
    23  * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
    24  */
    24  */
    25 
    25 
    26 package com.oracle.solaris.vp.panels.firewall.client.swing;
    26 package com.oracle.solaris.vp.panels.firewall.client.swing;
    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.vp.panel.common.action.*;
    30 import com.oracle.solaris.vp.panel.common.action.*;
    30 import com.oracle.solaris.vp.panel.swing.action.EnableManagedObjectAction;
    31 import com.oracle.solaris.vp.panel.swing.action.EnableManagedObjectAction;
    31 import com.oracle.solaris.vp.panel.swing.control.SwingControl;
    32 import com.oracle.solaris.vp.panel.swing.control.SwingControl;
    32 
    33 
    33 @SuppressWarnings({"serial"})
    34 @SuppressWarnings({"serial"})
    57 	for (ServiceManagedObject service : selection) {
    58 	for (ServiceManagedObject service : selection) {
    58 //	    try {
    59 //	    try {
    59 		service.setEnabled(enable);
    60 		service.setEnabled(enable);
    60 //	    } catch (ScfException e) {
    61 //	    } catch (ScfException e) {
    61 //		SmfUtil.throwActionException(e);
    62 //		SmfUtil.throwActionException(e);
    62 //	    } catch (SecurityException e) {
    63 //	    } catch (RadPrivilegeException e) {
    63 //		throw new ActionUnauthorizedException(e);
    64 //		throw new ActionUnauthorizedException(e);
    64 //	    }
    65 //	    }
    65 	}
    66 	}
    66 
    67 
    67 	return null;
    68 	return null;