SecurityServiceEventpublic class SecurityServiceEvent extends com.sun.enterprise.admin.event.AdminEvent Security Service Event - emitted by DAS after comletion of
create/delete/update operation on security-service element
(not including subelements changes)
Contains action type. |
Fields Summary |
---|
public static final int | ACTION_CREATEConstant denoting action code | public static final int | ACTION_DELETE | public static final int | ACTION_UPDATE | static final String | eventTypeEvent type | private int | actionTypeAttributes | private static com.sun.enterprise.util.i18n.StringManager | localStrings |
Constructors Summary |
---|
public SecurityServiceEvent(String instance, int action)Create a new SecurityServiceEvent.
this(eventType, instance, action);
| public SecurityServiceEvent(String type, String instance, int action)Create a new SecurityServiceEvent.
super(type, instance);
setAction(action);
|
Methods Summary |
---|
public int | getActionType()Get action type for this event.
return actionType;
| private void | setAction(int action)Set action to specified value. If action is not one of allowed,
then IllegalArgumentException is thrown.
boolean valid = false;
if (action==ACTION_CREATE ||
action==ACTION_DELETE ||
action==ACTION_UPDATE )
valid = true;
if (!valid) {
String msg = localStrings.getString( "admin.event.invalid_action", ""+action );
throw new IllegalArgumentException( msg );
}
this.actionType = action;
|
|