| java.lang.Object es.udc.mypersonalizer.portal.model.types.PortalEvent es.udc.mypersonalizer.portal.model.types.personalization.ChangeServiceButtonStateEvent
ChangeServiceButtonStateEvent | public class ChangeServiceButtonStateEvent extends PortalEvent (Code) | | This class is used as an event for
es.udc.mypersonalizer.portal.model.actions.personalization.ChangeServiceButtonStateAction .
Its purpose is to identify the button to be
changed and to provide the new value for its state. It contains, besides
the user's credentials:
- serviceButtonStateIdentifier: The identifier for the
property which stores the state information for the button.
- buttonName: Name of the button to be changed (the property
stores the info for all the buttons of a service).
- buttonState: New state (Integer) to be applied to the
selected button.
- serviceIdentifier: This identifies the service on which the
change is being made, so that permissions for this user to perform
the change are checked.
author: Daniel Fernandez since: 1.0 |
ChangeServiceButtonStateEvent | public ChangeServiceButtonStateEvent(UserCredentials userCredentials, Long serviceButtonStateIdentifier, String buttonName, Integer buttonState, String serviceIdentifier)(Code) | | Creates a new instance of this event.
Parameters: userCredentials - the user's credentials. Parameters: serviceButtonStateIdentifier - the service button state identifier. Parameters: buttonName - the button name. Parameters: buttonState - the new state for the button. Parameters: serviceIdentifier - the identifier of the service on which the change is being made. |
getButtonName | public String getButtonName()(Code) | | Returns the name of the button which state is to be modified.
the name of the button. |
getButtonState | public Integer getButtonState()(Code) | | The new state that will be established for the button.
an Integer being the new state. |
getServiceButtonStateIdentifier | public Long getServiceButtonStateIdentifier()(Code) | | Returns the service button state identifier.
the service button state identifier. |
getServiceIdentifier | public String getServiceIdentifier()(Code) | | Returns the identifier of the service on which buttons the change
is being made.
the service identifier. |
|
|