|
Core API 4.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.juniper.smgt.sae.portal.Subscription
This bean represents the relationship between a currently logged in user and a currently loaded
service to which the user is subscribed.
The current value of this bean's serviceName property, together with either its userIp or
its userDn property, determines which subscription this bean represents.
Whenever one of the two user-identifying properties (userIp or userDn)
is set, the other is automatically set to null.
A subscription can be activated and deactivated via the setActive method. This
applies and removes policies on the user's E-series interface, and gathers accounting information for billing purposes.
To leverage the power of the service policy parameterization introduced in SSC 3.0, a user
may have multiple simultaneous subscription sessions per
subscription:
Subscription bean's sessionName property.
sessionName property, a subscription bean is initialized to represent a
session. Specifying an existing
(i.e. active) session's name makes this bean represent that active session.
Specifying a new session name prepares this bean to create a new session. Subsequently calling
setActive(true) actually creates (i.e. activates) the session.
sessionName property set will automatically have the default session name Subscription.DEFAULT_SESSION_NAME.
A subscription bean with this default session name represents the subscription's default session. The
default session provides backwards compatibility with pre-3.0 portals.
serviceName property and either its
userIp or its userDn property must be set before any
other properties are read or written.
| Field Summary | |
static String |
ACTIVATE_ON_LOGIN
A possible value for this bean's activationTrigger property. |
static String |
DEFAULT_SESSION_NAME
The default value for this bean's sessionName property. |
static String |
MANUAL
A possible value for this bean's activationTrigger property. |
| Constructor Summary | |
Subscription()
The default bean constructor. |
|
Subscription(User userBean)
|
|
| Method Summary | |
String |
getActivationTrigger()
Returns either Subscription.ACTIVATE_ON_LOGIN or Subscription.MANUAL, indicating when this subscription will be activated. |
SortedSet |
getActiveSessionNames()
Returns the names of all currently active sessions associated with this subscription. |
Object |
getAttribute(String attributeName)
Returns the value of the named attribute from this subscription's entry in SSP's LDAP user directory. |
String[] |
getAttributeNames()
Get the names of the LDAP attributes defined for the current service session profile. |
int |
getDownStreamBandwidth()
Return the service down stream bandwidth for the subscription session represented by this bean. |
long |
getDurationActive()
Returns the number of milliseconds that have passed since this subscription was activated (i.e. |
long |
getInterimTime()
Returns the interval, in seconds, between service interim records used in the active subscription session represented by this bean. |
String |
getMultiSubscriptionName()
Returns the suffix of the subscription name with which this bean was initialized. |
Set |
getPersistentSessionNames()
|
List |
getPolicyParameters()
Returns a List of substitutions which define the values which this subscription would use for the policy parameters if activated. |
int |
getRemainingSessionTime()
Returns the time in seconds that remain before this subscription will be automatically deactivated by SSP. |
String[] |
getReplyMessages()
Return the "reply messages" from the authorization plug-in for the current user session. |
List |
getRuntimeParameters()
Returns a List of substitutions which define the runtime values (e.g. |
String |
getServiceName()
Returns the service name with which this bean was initialized (e.g. |
List |
getServiceParameters()
Returns a List of substitutions which define the operational values which this subscription would use for the service parameters if activated. |
String |
getSessionName()
Returns the subscription session name with which this bean was initialized. |
String |
getSessionTag()
Return the session tag for the subscription session represented by this bean. |
String |
getSessionVolumeQuota()
Returns the session volume quota for the subscription session represented by this bean. |
String |
getSubscriptionName()
Returns the subscription name with which this bean was initialized (e.g. |
String |
getSubscriptionPassword()
Returns the password that will be used for authentication the next time this subscription is activated, if the subscribed service requires authentication. |
String |
getSubscriptionUsername()
Returns the username that will be used for authentication the next time this subscription is activated, if the subscribed service requires authentication. |
String[] |
getSubstitutions()
Returns the set of susbtitutions defined for the subscription session currently represented by this bean. |
int |
getUpStreamBandwidth()
Return the service up stream bandwidth for the subscription session represented by this bean. |
Usage |
getUsage()
Returns statistics describing the network traffic between the user and the subscribed service (i.e. |
String |
getUserDn()
Returns the LDAP dististinguished name with which this bean was initialized (e.g. |
String |
getUserIp()
Returns the IP address with which this bean was initialized (e.g. |
boolean |
isActive()
Returns true if this subscription is currently active. |
boolean |
isCurrentlyAvailable()
Returns true if the user's subscription to the service is currently available. |
boolean |
isInitialized()
Returns true if this bean has been fully initialized. |
boolean |
isPersistentActivation()
Check if a selected service is to be persistently activated. |
boolean |
isPersistentSession()
Check if a selected session is persistent. |
boolean |
isSuspended()
Returns true if the user's subscription to the service is currently suspended for any reason (e.g. |
void |
modify()
Modifies this subscription session. |
void |
pollUsage()
Collects statistics describing the network traffic between the user and the subscribed service (i.e. |
void |
setActivationTrigger(String trigger)
This method modifies the user's profile in the SSP's LDAP directory to specify when this subscription will be activated. |
void |
setActive(boolean b)
Activates or deactivates this subscription session. |
void |
setDownStreamBandwidth(int bw)
Specifies a service down stream bandwidth to be used the next time the subscription session represented by this bean is activated (i.e. |
void |
setInterimTime(int time)
Specifies the interval, in seconds, between service interim records to be used in the subscription session represented by this bean. |
void |
setPersistentActivation(boolean active)
Creates or deletes a persistent activation. |
void |
setPersistentSession(boolean persistent)
Creates or deletes a persistent service session. |
void |
setServiceName(String serviceName)
Setting this property specifies which of the user's subscribed services will be described or affected by all subsequent reads or writes of this bean's properties. |
void |
setSessionName(String sessionName)
Setting this property specifies which subscription session will be described or affected by all subsequent reads or writes of this bean's properties. |
void |
setSessionTag(String tag)
Tag a service session. |
void |
setSessionTimeout(int timeout)
Specifies a session timeout to be used the next time the subscription session represented by this bean is activated (i.e. |
void |
setSessionVolumeQuota(String sessionVolumeQuota)
Specifies a session volume quota to be used in the subscription session represented by this bean. |
void |
setSubscriptionPassword(String subscriptionPassword)
If the subscribed service requires authentication, then the subscription username and subscription password properties must be set before this subscription is activated. |
void |
setSubscriptionUsername(String subscriptionUsername)
If the subscribed service requires authentication, then the subscription username and subscription password properties must be set before this subscription is activated. |
void |
setSubstitutions(String[] substs)
Sets the substitutions to be used the next time the subscription session represented by this bean is activated (i.e. |
void |
setUpStreamBandwidth(int bw)
Specifies a service up stream bandwidth to be used the next time the subscription session represented by this bean is activated (i.e. |
void |
setUserDn(String userDn)
Setting this property specifies which interface user's subscription will be described or affected by all subsequent reads or writes of this bean's properties. |
void |
setUserIp(String userIp)
Setting this property specifies which user's subscription will be described or affected by all subsequent reads or writes of this bean's properties. |
String |
toString()
For debugging only. |
void |
updateSessionTimeout(int timeout)
Update the session timeout used in the subscription session represented by this bean. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String DEFAULT_SESSION_NAME
sessionName property.
setSessionName(java.lang.String),
Constant Field Valuespublic static final String MANUAL
activationTrigger property. A
MANUAL activation trigger means that the subscription must be
explicitly activated by setting the Subscription bean's active
property to true (e.g. via user interaction with a JSP web page).
setActivationTrigger(java.lang.String),
setActive(boolean),
Constant Field Valuespublic static final String ACTIVATE_ON_LOGIN
activationTrigger property. An
ACTIVATE_ON_LOGIN activation trigger means that the subscription will be
automatically activated whenever the user logs in to SSP. The subscription can still
be manually deactivated and activated using the Subscription bean's active
property.
setActivationTrigger(java.lang.String),
setActive(boolean),
Constant Field Values| Constructor Detail |
public Subscription()
public Subscription(User userBean)
| Method Detail |
public void setUserIp(String userIp)
throws UnknownUserException
userIp property has the side-effect of setting the userDn
property to null.
userIp - The desired user's current IP address in string format (e.g. "192.168.3.34").
IllegalArgumentException - If the userIp string does not contain a parseable IP address.
UnknownUserException - If the specified user is not currently logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.public String getUserIp()
IllegalStateException - If this bean has not been properly initialized.
public void setUserDn(String userDn)
throws UnknownUserException,
NonUniqueUserException
userDn property has the
side-effect of setting the userIp
userDn - The desired interface user's LDAP Distinguished Name in string
format (e.g. "siteName=OttawaOffice,enterpriseName=XyzCorp,ou=Ottawa,retailername=ISP3,o=Users,o=UMC").
IllegalArgumentException - If the userDn string does not contain a parseable DN.
UnknownUserException - If an interface user with the specified DN is not currently logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.public String getUserDn()
IllegalStateException - If this bean has not been properly initialized.
public void setServiceName(String serviceName)
throws UnknownServiceException
Subscription properties will vary according to the current location
of the user who is subscribed to the service.
serviceName - The desired service's name (e.g. "Video Gold").
UnknownServiceException - If the service specified by the serviceName
argument is not currently loaded into SSP.public String getServiceName()
IllegalStateException - If this bean has not been properly initialized.public String getSubscriptionName()
IllegalStateException - If this bean has not been properly initialized.
public String getMultiSubscriptionName()
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
E.g. if the subscription was "Video%channel1", the string "channel1" is returned.
null if the default subscription was accessed.
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException
NonUniqueUserException
UnknownSubscriptionExceptionpublic void setSessionName(String sessionName)
DEFAULT_SESSION_NAME in all new Subscription beans.
Every session has a unique (relative to the subscription) session name.
Setting this property to an existing session's name initializes this bean to represent that session.
Setting this
property to a new session name allows the creation of a new session via a subsequent call to
setActive(true).
sessionName - The unique name (relative to the subscription) of the subscription session that
this bean is to represent.
IllegalArgumentException - If sessionName is null or zero-length.DEFAULT_SESSION_NAMEpublic String getSessionName()
DEFAULT_SESSION_NAMEpublic boolean isInitialized()
userIp or userDn property, and the serviceName property, have been set.
public boolean isSuspended()
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
sspServiceProfile objects. Suspended subscriptions are sspServiceProfile
objects in which the sspState attribute does not equal "SUBSCRIBED".
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
public boolean isCurrentlyAvailable()
throws UnknownUserException,
UnknownSubscriptionException,
NonUniqueUserException
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
NonUniqueUserException
public Usage getUsage()
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException,
UnknownServiceException
Usage object contains the usage statistics from the
most recent such collection. It includes the time at which the statistics were collected.
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownServiceException - If the service is no longer loaded in SSP.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
public long getDurationActive()
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
public Object getAttribute(String attributeName)
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
Object must be cast to the appropriate type. If the attribute is multi-valued, the
returned Object must be cast to an array of the appropriate type.
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
public void setSubstitutions(String[] substs)
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
setActive(true) - note that this restriction may be relaxed in a future release).
<var>=<val>, where <var> is a
variable name found in a service's policies, and <val> is the
value to be assigned to that variable.
substs - The set of substitutions, with one substitution defined in each String in the array.
IllegalArgumentException - If the substitutions are in the wrong format.
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
public String[] getSubstitutions()
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
setSubstitutions method of the Subscription bean that represented the session immediately
before the session was activated.
Note well that these are not necessarily the same as the substitutions most recently passed to
this bean's setSubstitutions method.
IllegalStateException - If this bean has not been properly initialized, or if
the subscription session specified by this bean's properties is not currently active.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.public void setSessionTimeout(int timeout)
setActive(true)). SSP will automatically deactivate the session after it has
been active for timeout seconds. The session timeout value may be modified via plug-ins after the
subscription is activated.
timeout - The session timeout in seconds. A value of -1 (the default if this method is
never called) means the session will never time out.
public void updateSessionTimeout(int timeout)
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
timeout is
equal to -1, the session timeout is cancelled.
The new value for the session timeout is not updated on
the E-series router.
timeout - The session timeout in seconds.
UnknownUserException - if the User is currently not logged in.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
public int getRemainingSessionTime()
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
public void setInterimTime(int time)
throws UnknownUserException,
NonUniqueUserException
time is set to zero or to a value less than zero,
interim records are cancelled.
If interim records were not been generated (i.e. not set before and no service specific
value and no default value), after setting the interval to a value greater than zero,
interim records will be generated.
time - The interim interval in seconds.
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
public long getInterimTime()
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
public void setSessionVolumeQuota(String sessionVolumeQuota)
throws UnknownUserException,
NonUniqueUserException
sessionVolumeQuota - The session volume quota.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.getSessionVolumeQuota()
public String getSessionVolumeQuota()
throws UnknownUserException,
NonUniqueUserException
UnknownUserException
NonUniqueUserException
public void setSubscriptionUsername(String subscriptionUsername)
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
domainName property,
then "@" and the service's domain name are appended to this subscription username
for the purpose of authentication only.
subscriptionUsername - Leading and trailing whitespace are automatically trimmed from this String.
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.setSubscriptionPassword(java.lang.String),
Service.isAuthenticationRequired()
public String getSubscriptionUsername()
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
domainName property,
then "@" and the service's domain name are appended to this subscription username
for the purpose of authentication only.
subscriptionUsername property has never been set.
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
public void setSubscriptionPassword(String subscriptionPassword)
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
subscriptionPassword - Leading and trailing whitespace are automatically trimmed from this String.
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.setSubscriptionUsername(java.lang.String),
Service.isAuthenticationRequired()
public String getSubscriptionPassword()
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
subscriptionPassword property has never been set.
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
public void setActivationTrigger(String trigger)
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException,
UnknownServiceException,
ServiceAuthenticationException,
SspException
Subscription.MANUAL: The subscription will be activated
only when setActive(true) is called explicitly by a JSP page.
Subscription.ACTIVATE_ON_LOGIN: The subscription
will be activated automatically every time the user logs in to SSP.
trigger - Must be either Subscription.MANUAL or Subscription.ACTIVATE_ON_LOGIN.
IllegalArgumentException - If the trigger parameter is neither Subscription.MANUAL nor Subscription.ACTIVATE_ON_LOGIN.
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
UnknownServiceException - If the service is no longer loaded in SSP.
ServiceAuthenticationException - If permission to modify this subscription is denied
for any reason. For example, anonymous users are not permitted to modify any subscriptions,
subscriptions to services that require authentication may never be marked as ACTIVATE_ON_LOGIN,
constraints imposed by mutex groups (i.e. sets
of incompatible services) may forbid some combinations of subscriptions
being marked as ACTIVATE_ON_LOGIN, etc.
SspException - If this operation fails due to an unexpected error condition in SSP or in
an external system upon which SSP depends (e.g. an LDAP directory, a RADIUS server, an E-series router, etc.)
public String getActivationTrigger()
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.setActivationTrigger(java.lang.String)
public void setActive(boolean b)
throws UnknownUserException,
NonUniqueUserException,
UnknownServiceException,
UnknownSubscriptionException,
ServiceAuthenticationException,
OverloadException,
SspException
authenticationRequired property
is true, then this subscription's subscriptionUsername and
subscriptionPassword properties are authenticated before the service is
activated (i.e. the subscriptionUsername and subscriptionPassword
properties must be set before this subscription is activated).
Note that if the subscribed service has a non-null domainName property
then an "@" and the service's domainName property are automatically appended to
the subscriptionUsername property for the purpose of authentication only.
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownServiceException - If the service is no longer loaded in SSP.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
ServiceAuthenticationException - If permission to activate this subscription is denied
for any reason. For example, an invalid username or password may be specified, a constraint
imposed by mutex groups (i.e. sets of incompatible services) may be violated, etc.
OverloadException - If the COPS interface is currently overloaded.
SspException - If this operation fails due to an unexpected error condition in SSP or in
an external system upon which SSP depends (e.g. an LDAP directory, a RADIUS server, an E-series router, etc.)Service.getType(),
Service.isAuthenticationRequired(),
User.isTokenDhcpUser()
public void modify()
throws UnknownUserException,
NonUniqueUserException,
UnknownServiceException,
UnknownSubscriptionException,
UnknownServiceSessionException,
ServiceAuthenticationException,
OverloadException,
SspException
upStreamBandwidth or
downStreamBandwidth properties are set for this
bean, the authorize event contains the delta bandwidth
(i.e. the difference between the current value for the
active session and the new one set by the bean property).
IllegalStateException - If this bean has not been
properly initialized.
UnknownUserException - If the user is no longer logged
in to SSP.
NonUniqueUserException - If the user specified by this
bean's userDn property is logged in more than
once.
UnknownServiceException - If the service is no longer
loaded in SSP.
UnknownSubscriptionException - If the user is no
longer subscribed to the service.
UnknownServiceSessionException - If the service
session specified by this bean is not active.
ServiceAuthenticationException - If permission to
modify this subscription is denied for any reason. For
example, trying to modify a session from ISP service, a
constraint imposed by an authorization plugin, etc.
OverloadException - If the COPS interface is currently
overloaded.
SspException - If this operation fails due to an
unexpected error condition in SSP or in an external system upon
which SSP depends (e.g. an LDAP directory, an ERX
router, etc.)
public boolean isActive()
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
public SortedSet getActiveSessionNames()
throws UnknownUserException,
NonUniqueUserException
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
public Set getPersistentSessionNames()
throws UnknownUserException,
NonUniqueUserException
UnknownUserException
NonUniqueUserExceptionpublic void setUpStreamBandwidth(int bw)
setActive(true)). SSP will send it to plug-ins to verify there is enough bandwidth to be allocated
for this service.
bw - The up stream bandwidth in bps. A value of -1 (the default if this method is
never called) means the there is no up stream bandwidth limitation.
public int getUpStreamBandwidth()
throws UnknownUserException,
NonUniqueUserException
IllegalStateException - If this bean has not been
properly initialized.
UnknownUserException - If the user is no longer logged
in to SSP.
NonUniqueUserException - If the user specified by this
bean's userDn property is logged in more than
once.public void setDownStreamBandwidth(int bw)
setActive(true)). SSP will send it to plug-ins to verify there is enough bandwidth to be allocated
for this service.
bw - The down stream bandwidth in bps. A value of -1 (the default if this method is
never called) means the there is no down stream bandwidth limitation.
public int getDownStreamBandwidth()
throws UnknownUserException,
NonUniqueUserException
IllegalStateException - If this bean has not been
properly initialized.
UnknownUserException - If the user is no longer logged
in to SSP.
NonUniqueUserException - If the user specified by this
bean's userDn property is logged in more than
once.
public String[] getAttributeNames()
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException
UnknownUserException - if the User is currently not
logged in.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownServiceException - if the Service is not loaded.
UnknownSubscriptionExceptionpublic void setSessionTag(String tag)
tag - the session tag.
public String getSessionTag()
throws UnknownUserException,
NonUniqueUserException
IllegalStateException - If this bean has not been
properly initialized.
UnknownUserException - If the user is no longer logged
in to SSP.
NonUniqueUserException - If the user specified by this
bean's userDn property is logged in more than
once.
public String[] getReplyMessages()
throws UnknownUserException,
NonUniqueUserException
UnknownUserException - if the User is currently not
logged in.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
public void setPersistentSession(boolean persistent)
throws IllegalStateException,
net.juniper.smgt.sae.datamgr.DataMgrException,
UnknownServiceException,
UnknownUserException,
NonUniqueUserException
setSessionName prior to a call to this method; otherwise, a service session is not stored.
If sspTimeOut has been changed with setSessionTimeout, the value is saved as well as substitutions set with setSubstitutions for the persistent session. Default values will be overwritten with these values when the session will be activated again.
persistent - true to create a persistent service session, false to delete a persistent service session.
IllegalStateException - If this bean has not been properly initialized.
net.juniper.smgt.sae.datamgr.DataMgrException - if the LDAP directory is not available.
UnknownServiceException - if the Service is not loaded.
UnknownUserException - if the User is currently not logged in.
NonUniqueUserException
public void setPersistentActivation(boolean active)
throws IllegalStateException,
net.juniper.smgt.sae.datamgr.DataMgrException,
UnknownServiceException,
UnknownUserException,
NonUniqueUserException,
ServiceAuthenticationException
setSessionName is called prior to a call to this method, a persistent activation is created for that session. Otherwise, a persistent activation for the default session is created.
When a persistent activation or session already exists for the requested session, this method only sets/resets the session for the persistent activation and does not remove the persistent activation/session for deactivation requests.
A persistent activation cannot be created for ISP services.
active - true to create a persistent activation, false to delete a persistent activation.
IllegalStateException - If this bean has not been properly initialized.
net.juniper.smgt.sae.datamgr.DataMgrException - if the LDAP directory is not available.
UnknownServiceException - if the Service is not loaded.
UnknownUserException - if the User is currently not logged in.
NonUniqueUserException
ServiceAuthenticationExceptionpublic boolean isPersistentActivation()
public boolean isPersistentSession()
public List getRuntimeParameters()
throws UnknownServiceException,
UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException,
SspException
UnknownServiceException - If the service is no longer loaded in SSP.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
SspException - If this operation fails due to an unexpected error condition in SSP or in
an external system upon which SSP depends (e.g. an LDAP directory, a RADIUS server, an E-series router, etc.)
public List getPolicyParameters()
throws UnknownServiceException,
UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException,
SspException
UnknownServiceException - If the service is no longer loaded in SSP.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
SspException - If this operation fails due to an unexpected error condition in SSP or in
an external system upon which SSP depends (e.g. an LDAP directory, a RADIUS server, an E-series router, etc.)
public List getServiceParameters()
throws UnknownServiceException,
UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException,
SspException
UnknownServiceException - If the service is no longer loaded in SSP.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
SspException - If this operation fails due to an unexpected error condition in SSP or in
an external system upon which SSP depends (e.g. an LDAP directory, a RADIUS server, an E-series router, etc.)
public void pollUsage()
throws UnknownUserException,
NonUniqueUserException,
UnknownSubscriptionException,
UnknownServiceException,
OverloadException,
SspException
getUsage method.
IllegalStateException - If this bean has not been properly initialized.
UnknownUserException - If the user is no longer logged in to SSP.
NonUniqueUserException - If the user specified by this bean's userDn
property is logged in more than once.
UnknownServiceException - If the service is no longer loaded in SSP.
UnknownSubscriptionException - If the user is no longer subscribed to the service.
OverloadException - If the COPS interface is currently overloaded.
SspExceptionpublic String toString()
toString in class Object
|
Core API 4.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||