Core API 7.14

net.juniper.smgt.sae.portal
Class Action

java.lang.Object
  extended by net.juniper.smgt.sae.portal.Action

public class Action
extends java.lang.Object

The Action class encapsulated an action that can be taken for a subscriber.

Since:
4.0

Field Summary
static int ACTIVATE
          A possible value for this bean's operation property.
static int DEACTIVATE
          A possible value for this bean's operation property.
static int DENY
          A possible value for this bean's operation property.
static int DENY_AND_DEACTIVATE
          A possible value for this bean's operation property.
 
Constructor Summary
Action()
          Default constrcutor
Action(int operation, java.lang.String serviceName)
          Constrcutor with eventDate and actions
Action(int operation, java.lang.String serviceName, net.juniper.smgt.sae.sae.Attr[] attributes)
          Constrcutor with eventDate and actions
 
Method Summary
 net.juniper.smgt.sae.sae.Attr[] getAttributes()
           
 int getOperation()
          Gets the value for this bean's operation property.
 java.lang.String getServiceName()
          Gets the value for this bean's serviceName property.
 void setAttributes(net.juniper.smgt.sae.sae.Attr[] attributes)
           
 void setOperation(int operation)
          Sets the value for this bean's operation property.
 void setServiceName(java.lang.String serviceName)
          Sets the value for this bean's serviceName property.
 java.lang.String toString()
          For debugging only.
 java.lang.String toString(net.juniper.smgt.sae.sae.Attr[] attributes)
          For debugging only.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEACTIVATE

public static final int DEACTIVATE
A possible value for this bean's operation property. A DEACTIVATE operation indicates a request to deactivate the subscription to the service.

See Also:
setOperation(int), Subscription.setActive(boolean), Constant Field Values

ACTIVATE

public static final int ACTIVATE
A possible value for this bean's operation property. A ACTIVATE operation indicates a request to activate the subscription to the service.

See Also:
setOperation(int), Constant Field Values

DENY

public static final int DENY
A possible value for this bean's operation property. A DENY operation indicates a request to Deny Service Activation.

Any new service activations for the concerned service attempted within the specified time period will not be authorized. Service Sessions that are already active will not be affected.

See Also:
setOperation(int), Constant Field Values

DENY_AND_DEACTIVATE

public static final int DENY_AND_DEACTIVATE
A possible value for this bean's operation property. A DENY_AND_DEACTIVATE operation indicates a request to Deny Service Activation and Deactivate.

Any new service activations for the concerned service attempted within the specified time period will not be authorized. Furthermore, if the service is active when the clock turns to the time period it will automatically be deactivated.

See Also:
setOperation(int), Constant Field Values
Constructor Detail

Action

public Action()
Default constrcutor


Action

public Action(int operation,
              java.lang.String serviceName)
Constrcutor with eventDate and actions

Parameters:
long - eventTime The event time
Action[] - actions The actions to take at the event time.

Action

public Action(int operation,
              java.lang.String serviceName,
              net.juniper.smgt.sae.sae.Attr[] attributes)
Constrcutor with eventDate and actions

Parameters:
long - eventTime The event time
Action[] - actions The actions to take at the event time.
Method Detail

setOperation

public void setOperation(int operation)
Sets the value for this bean's operation property. The operation can be to activate to deactivate the subscription to the service.

Parameters:
int - operation The operation to perform in this action. It is one of
  • 0 - deactivate
  • 1 - activate
    See Also:
    getOperation(), Subscription.setActive(boolean)

  • getOperation

    public int getOperation()
    Gets the value for this bean's operation property. The operation can be to activate to deactivate the subscription to the service.

    Returns:
    int The operation to perform in this action. It is one of
  • 0 - deactivate
  • 1 - activate
    See Also:
    setOperation(int), Subscription.setActive(boolean)

  • setServiceName

    public void setServiceName(java.lang.String serviceName)
    Sets the value for this bean's serviceName property. The operation of this action is performed in this service.

    The Subscriber should have a subscription to this service at the time the action is to be taken.

    Parameters:
    String - serviceName The service name for the operation to perform in this action.
    See Also:
    getServiceName(), Subscription.setActive(boolean)

    getServiceName

    public java.lang.String getServiceName()
    Gets the value for this bean's serviceName property. The operation of this action is performed in this service.

    The Subscriber should have a subscription to this service at the time the action is to be taken.

    Returns:
    String The service name for the operation to perform in this action.
    See Also:
    setServiceName(java.lang.String), Subscription.setActive(boolean)

    getAttributes

    public net.juniper.smgt.sae.sae.Attr[] getAttributes()
    Returns:
    attr[] the attributes of the action

    setAttributes

    public void setAttributes(net.juniper.smgt.sae.sae.Attr[] attributes)
    Parameters:
    attributes -

    toString

    public java.lang.String toString()
    For debugging only. Returns a description of this bean.

    Overrides:
    toString in class java.lang.Object

    toString

    public java.lang.String toString(net.juniper.smgt.sae.sae.Attr[] attributes)
    For debugging only. Returns a description of this bean.


    Core API 7.14