public class Action
extends java.lang.Object
Action
class encapsulated an action that can be taken
for a subscriber.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int DEACTIVATE
operation
property. A
DEACTIVATE
operation indicates a request to
deactivate the subscription to the service.public static final int ACTIVATE
operation
property. A
ACTIVATE
operation indicates a request to
activate the subscription to the service.setOperation(int)
,
Constant Field Valuespublic static final int DENY
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.
setOperation(int)
,
Constant Field Valuespublic static final int DENY_AND_DEACTIVATE
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.
setOperation(int)
,
Constant Field Valuespublic Action()
public Action(int operation, java.lang.String serviceName)
long
- eventTime The event timeAction[]
- actions The actions to take at the event time.public Action(int operation, java.lang.String serviceName, net.juniper.smgt.sae.sae.Attr[] attributes)
long
- eventTime The event timeAction[]
- actions The actions to take at the event time.public void setOperation(int operation)
operation
property. The
operation can be to activate to deactivate the subscription to the
service.int
- operation The operation to perform in this action. It is one
of
getOperation()
,
Subscription.setActive(boolean)
public int getOperation()
operation
property. The
operation can be to activate to deactivate the subscription to the
service.setOperation(int)
,
Subscription.setActive(boolean)
public void setServiceName(java.lang.String serviceName)
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.
String
- serviceName The service name for the operation to
perform in this action.getServiceName()
,
Subscription.setActive(boolean)
public java.lang.String getServiceName()
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.
setServiceName(java.lang.String)
,
Subscription.setActive(boolean)
public net.juniper.smgt.sae.sae.Attr[] getAttributes()
public void setAttributes(net.juniper.smgt.sae.sae.Attr[] attributes)
attributes
- public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(net.juniper.smgt.sae.sae.Attr[] attributes)