|
Core API 7.8 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.juniper.smgt.sae.portal.Subscription
public class 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 java.lang.String |
ACTIVATE_ON_LOGIN
A possible value for this bean's activationTrigger property. |
static int |
ADD_BACKGROUND_RETRY
A ADD_BACKGROUND_RETRY means that while the subscription is
activated or deactivated, if a transitory problem happens, a background
retry will be scheduled. |
static java.lang.String |
DEFAULT_SESSION_NAME
The default value for this bean's sessionName property. |
static int |
IGNORE_REASON
A IGNORE_REASON means that while the subscription is
activated, the reason for deactivating parameter is ignored. |
static java.lang.String |
MANUAL
A possible value for this bean's activationTrigger property. |
static int |
NO_BACKGROUND_RETRY
A NO_BACKGROUND_RETRY means that while the subscription is
activated or deactivated, if a transitory problem happens, no background
retry will be scheduled. |
Constructor Summary | |
---|---|
Subscription()
The default bean constructor. |
|
Subscription(User userBean)
|
Method Summary | |
---|---|
void |
finishModify()
|
void |
fragmentDown(java.lang.String fragmentSessionId)
Notify the user that activated the aggregate service that a fragment service session has been deactivated. |
void |
fragmentReactivating(java.lang.String fragmentSessionId)
Notify the user that activated the aggregate service that a fragment service session is reactivating. |
java.lang.String |
getAcctSessionId()
Returns the accounting session id for the subscription session represented by this bean. |
java.lang.String |
getActivationTrigger()
Returns either Subscription.ACTIVATE_ON_LOGIN or Subscription.MANUAL, indicating when this subscription will be activated. |
java.util.SortedSet |
getActiveSessionNames()
Returns the names of all currently active sessions associated with this subscription. |
java.lang.Object |
getAttribute(java.lang.String attributeName)
Returns the value of the named attribute from this subscription's entry in SAE's LDAP user directory. |
java.lang.String[] |
getAttributeNames()
Get the names of the LDAP attributes defined for the current service session profile. |
static java.util.Set |
getDeprecatedProperties()
return a set of deprecated properties. |
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. |
java.lang.String |
getMultiSubscriptionName()
Returns the suffix of the subscription name with which this bean was initialized. |
java.util.Set |
getPersistentSessionNames()
|
java.util.List |
getPolicyParameters()
Returns a List of substitutions which define the values which this subscription would use for the policy parameters if activated. |
java.util.Set |
getProperties()
Deprecated. use getPropertyMap instead |
java.util.Map |
getPropertyMap()
Get a map of service session properties. |
java.lang.String |
getRadiusSessionId()
Returns the Radius service session ID e.g. |
int |
getRemainingSessionTime()
Returns the time in seconds that remain before this subscription will be automatically deactivated by SAE. |
java.lang.String[] |
getReplyMessages()
Return the "reply messages" from the authorization plug-in for the current user session. |
java.util.List |
getRuntimeParameters()
Returns a List of substitutions which define the runtime values (e.g. |
java.lang.String |
getServiceName()
Returns the service name with which this bean was initialized ( e.g. |
java.util.List |
getServiceParameters()
Returns a List of substitutions which define the operational values which this subscription would use for the service parameters if activated. |
java.lang.String |
getServiceSessionAcctSessionId()
Returns the accounting session id for the subscription session represented by this bean. |
java.lang.String |
getSessionId()
Returns the session ID with which this bean was initialized ( e.g. |
java.lang.String |
getSessionName()
Returns the subscription session name with which this bean was initialized. |
java.lang.String |
getSessionTag()
Return the session tag for the subscription session represented by this bean. |
java.lang.String |
getSessionVolumeQuota()
Returns the session volume quota for the subscription session represented by this bean. |
java.util.Map |
getSubscriptionAttributes()
Returns the Map of attributes defined for the subscription currently represented by this bean. |
java.lang.String |
getSubscriptionName()
Returns the subscription name with which this bean was initialized ( e.g. |
java.lang.String |
getSubscriptionPassword()
Returns the password that will be used for authentication the next time this subscription is activated, if the subscribed service requires authentication. |
java.lang.String |
getSubscriptionUsername()
Returns the username that will be used for authentication the next time this subscription is activated, if the subscribed service requires authentication. |
java.lang.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. |
java.lang.String |
getUserDn()
Returns the LDAP dististinguished name with which this bean was initialized (e.g. |
java.lang.String |
getUserIp()
Returns the IP address with which this bean was initialized ( e.g. |
boolean |
isActive()
Returns true if this subscription is currently active. |
void |
isCorbaCall(boolean call)
|
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 |
isSubscribed()
Returns true if the user is subscribed to the service. |
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 |
setAcctSessionId(java.lang.String acctSessionId)
Specifies an accounting session id to be used the next time the subscription session represented by this bean is activated (i.e. |
void |
setActivationTrigger(java.lang.String trigger)
This method modifies the user's profile in the SAE's LDAP directory to specify when this subscription will be activated. |
void |
setActive(boolean b)
Activates or deactivates this subscription session. |
void |
setActive(boolean b,
int reason,
int backgroundRetry)
Activates or deactivates this subscription session. |
void |
setAggregateAccountingId(java.lang.String aAccountingId)
Specifies the accounting ID of the user that started the aggregate service session. |
void |
setAggregateAuthUserId(java.lang.String aAuthUserId)
Specifies the authentication user ID that was used to authenticate the aggregate service session. |
void |
setAggregateFragmentIsLocal(boolean aflag)
The aggregate service session sets this flag based on the user ref expression retrieved from the fragment service definition. |
void |
setAggregateFragmentSessionId(java.lang.String aSessionId)
The aggregate service session sets the fragment session id to be used by the drone session when notifying the aggregate service session about fragment down. |
void |
setAggregateLoginName(java.lang.String aLoginName)
Specifies the login name of the user that started the aggregate service session. |
void |
setAggregateServiceName(java.lang.String aServiceName)
Specifies the name of the aggregate service in the fragment service. |
void |
setAggregateSessionId(java.lang.String aSessionId)
Specifies the session ID of the aggregate service session in the fragment service. |
void |
setAggregateSessionName(java.lang.String aSessionName)
Specifies the name of the aggregate service session in the fragment service. |
void |
setAggregateUserDn(java.lang.String aUserDn)
Specifies the DN of the user profile of the user that started the aggregate service session. |
void |
setAggregateUserIdType(java.lang.String aUserIdType)
Specifies how to look up the user. |
void |
setAggregateUserIp(java.lang.String aUserIp)
Specifies the IP address of the user that started the aggregate service session. |
void |
setAggregateUserSessionId(java.lang.String aUserSessionId)
Specifies the RADIUS session ID of the user that started the aggregate service session. |
void |
setAggregateVr(java.lang.String aVr)
Specifies the virtual router that contains the user session of the aggregate service. |
void |
setBackground(boolean bkg)
Specifies background action to be used the next time the subscription session represented by this bean is activated (i.e. |
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 the next time the subscription session represented by this bean is activated. |
void |
setPersistentActivation(boolean active)
Creates or deletes a persistent activation. |
void |
setPersistentSession(boolean persistent)
Creates or deletes a persistent service session. |
void |
setProperties(java.util.Set props)
Set the service session properties. |
void |
setRequireAggregateSubscription(boolean aflag)
If set to 'true', the activation of the fragment requires that the service is subscribed by the hosting user session. |
void |
setServiceName(java.lang.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 |
setServiceSessionVolumeQuota(java.lang.String sessionVolumeQuota)
Specifies a session volume quota to be used in the subscription session represented by this bean. |
void |
setSessionId(java.lang.String sessionId)
Setting this property specifies which user's service will be described or affected by all subsequent reads or writes of this bean's properties. |
void |
setSessionInterimTime(int time)
Specifies the interval, in seconds, between service interim records to be used in the subscription session represented by this bean. |
void |
setSessionName(java.lang.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(java.lang.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(java.lang.String sessionVolumeQuota)
Specifies a session volume quota to be used the next time the subscription session represented by this bean is activated. |
void |
setSubscriptionActivationOrder(java.lang.String order)
Specifies the relative order of automatically activation of the subscription to be added. |
void |
setSubscriptionActivationTrigger(java.lang.String trigger)
Specifies the action of the subscription to be added. |
void |
setSubscriptionDeletedFlag(java.lang.String flag)
Specifies the deleted flag of the subscription to be added. |
void |
setSubscriptionPassword(java.lang.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 |
setSubscriptionStatus(java.lang.String aStatus)
Specifies the status of the subscription to be added. |
void |
setSubscriptionSubstitutions(java.lang.String[] substs)
Specifies the substitutions of the subscription to be added. |
void |
setSubscriptionUsername(java.lang.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(java.lang.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(java.lang.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(java.lang.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. |
void |
startModify()
|
java.lang.String |
toString()
For debugging only. |
void |
undoModify()
|
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 java.lang.String DEFAULT_SESSION_NAME
sessionName
property.
setSessionName(java.lang.String)
,
Constant Field Valuespublic static final java.lang.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 java.lang.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
SAE. The subscription can still be manually deactivated and activated
using the Subscription
bean's active
property.
setActivationTrigger(java.lang.String)
,
setActive(boolean)
,
Constant Field Valuespublic static final int NO_BACKGROUND_RETRY
NO_BACKGROUND_RETRY
means that while the subscription is
activated or deactivated, if a transitory problem happens, no background
retry will be scheduled.
setActive(boolean)
,
Constant Field Valuespublic static final int ADD_BACKGROUND_RETRY
ADD_BACKGROUND_RETRY
means that while the subscription is
activated or deactivated, if a transitory problem happens, a background
retry will be scheduled.
setActive(boolean)
,
Constant Field Valuespublic static final int IGNORE_REASON
IGNORE_REASON
means that while the subscription is
activated, the reason for deactivating parameter is ignored.
setActive(boolean)
,
Constant Field ValuesConstructor Detail |
---|
public Subscription()
public Subscription(User userBean)
Method Detail |
---|
public void setSessionId(java.lang.String sessionId) throws UnknownUserException
sessionId
- The desired user's current session ID in string format (
e.g. "jane:1113315547138:0").
UnknownUserException
- If the specified user is not currently logged in to SAE.public java.lang.String getSessionId()
java.lang.IllegalStateException
- If this bean has not been properly initialized.public java.lang.String getRadiusSessionId() throws UnknownUserException, NonUniqueUserException
UnknownUserException
NonUniqueUserException
public void setUserIp(java.lang.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").
java.lang.IllegalArgumentException
- If the userIp
string does not contain a
parseable IP address.
UnknownUserException
- If the specified user is not currently logged in to SAE.
NonUniqueUserException
- If the user specified by this bean's userDn
property is logged in more than once.public java.lang.String getUserIp()
java.lang.IllegalStateException
- If this bean has not been properly initialized.public void setUserDn(java.lang.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"
).
java.lang.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 SAE.
NonUniqueUserException
- If the user specified by this bean's userDn
property is logged in more than once.public java.lang.String getUserDn()
java.lang.IllegalStateException
- If this bean has not been properly initialized.public void setServiceName(java.lang.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 SAE.public java.lang.String getServiceName()
java.lang.IllegalStateException
- If this bean has not been properly initialized.public java.lang.String getSubscriptionName()
java.lang.IllegalStateException
- If this bean has not been properly initialized.public java.lang.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.
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
NonUniqueUserException
UnknownSubscriptionException
public void setSessionName(java.lang.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.
java.lang.IllegalArgumentException
- If sessionName
is null or zero-length.DEFAULT_SESSION_NAME
public java.lang.String getSessionName()
DEFAULT_SESSION_NAME
public 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".
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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.
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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 SAE.
UnknownSubscriptionException
- If the user is no longer subscribed to the service.public long getDurationActive() throws UnknownUserException, NonUniqueUserException, UnknownSubscriptionException
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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 java.lang.Object getAttribute(java.lang.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.
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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(java.lang.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.
java.lang.IllegalArgumentException
- If the substitutions are in the wrong format.
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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 java.lang.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.
java.lang.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 SAE.
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 setAcctSessionId(java.lang.String acctSessionId)
setActive(true)
).
acctSessionId
- The accounting session id.public java.lang.String getAcctSessionId() throws UnknownUserException, NonUniqueUserException
UnknownUserException
NonUniqueUserException
public java.lang.String getServiceSessionAcctSessionId() throws UnknownUserException, NonUniqueUserException
UnknownUserException
NonUniqueUserException
public void setBackground(boolean bkg)
setActive(true)
). If background is set to
'true', if service activation fails due to a short-lived problem,
schedules that activation be attempted again in the background.
bkg
- The background action.public void setSessionTimeout(int timeout)
setActive(true)
). SAE 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
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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)
time
is set
to zero or to a value less than zero, interim records are cancelled.
time
- The interim interval in seconds.setSessionInterimTime(int)
public void setSessionInterimTime(int time) throws UnknownUserException, NonUniqueUserException, UnknownServiceSessionException
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.
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
NonUniqueUserException
- If the user specified by this bean is logged in more than
once.
UnknownServiceSessionException
- If the service session specified by this bean is not
active.public long getInterimTime() throws UnknownUserException, NonUniqueUserException, UnknownSubscriptionException
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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(java.lang.String sessionVolumeQuota)
sessionVolumeQuota
- The session volume quota.getSessionVolumeQuota()
,
setServiceSessionVolumeQuota(java.lang.String)
public void setServiceSessionVolumeQuota(java.lang.String sessionVolumeQuota) throws UnknownUserException, NonUniqueUserException, UnknownServiceSessionException
sessionVolumeQuota
- The session volume quota.
UnknownUserException
- If the user is no longer logged in to SAE.
NonUniqueUserException
- If the user specified by this bean's userDn
property is logged in more than once.
UnknownServiceSessionException
- If the service session specified by this bean is not
active.getSessionVolumeQuota()
public java.lang.String getSessionVolumeQuota() throws UnknownUserException, NonUniqueUserException
UnknownUserException
NonUniqueUserException
public void setSubscriptionUsername(java.lang.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.
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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 java.lang.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.
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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(java.lang.String subscriptionPassword) throws UnknownUserException, NonUniqueUserException, UnknownSubscriptionException
subscriptionPassword
- Leading and trailing whitespace are automatically trimmed from
this String.
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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 java.lang.String getSubscriptionPassword() throws UnknownUserException, NonUniqueUserException, UnknownSubscriptionException
subscriptionPassword
property has never
been set.
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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(java.lang.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 SAE.
trigger
- Must be either Subscription.MANUAL
or
Subscription.ACTIVATE_ON_LOGIN
.
java.lang.IllegalArgumentException
- If the trigger
parameter is neither
Subscription.MANUAL
nor
Subscription.ACTIVATE_ON_LOGIN
.
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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 SAE.
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 SAE or in an external system upon which SAE
depends (e.g. an LDAP directory, a RADIUS server,
an E-series router, etc.)public java.lang.String getActivationTrigger() throws UnknownUserException, NonUniqueUserException, UnknownSubscriptionException
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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.
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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 SAE.
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 SAE or in an external system upon which SAE
depends (e.g. an LDAP directory, a RADIUS server,
an E-series router, etc.)Service.getType()
,
Service.isAuthenticationRequired()
,
User.isTokenDhcpUser()
public void setActive(boolean b, int reason, int backgroundRetry) 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.
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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 SAE.
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 SAE or in an external system upon which SAE
depends (e.g. an LDAP directory, a RADIUS server,
an E-series router, etc.)Service.getType()
,
Service.isAuthenticationRequired()
,
User.isTokenDhcpUser()
public void startModify() throws UnknownUserException, NonUniqueUserException, UnknownServiceException, UnknownSubscriptionException, UnknownServiceSessionException, ServiceAuthenticationException
UnknownUserException
NonUniqueUserException
UnknownServiceException
UnknownSubscriptionException
UnknownServiceSessionException
ServiceAuthenticationException
public void finishModify() throws UnknownUserException, NonUniqueUserException, UnknownServiceException, UnknownSubscriptionException, UnknownServiceSessionException, ServiceAuthenticationException, OverloadException, SspException
UnknownUserException
NonUniqueUserException
UnknownServiceException
UnknownSubscriptionException
UnknownServiceSessionException
ServiceAuthenticationException
OverloadException
SspException
public void undoModify() throws UnknownUserException, NonUniqueUserException, UnknownServiceException, UnknownSubscriptionException, UnknownServiceSessionException, OverloadException, ServiceAuthenticationException
UnknownUserException
NonUniqueUserException
UnknownServiceException
UnknownSubscriptionException
UnknownServiceSessionException
OverloadException
ServiceAuthenticationException
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).
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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 SAE.
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, 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 SAE or in an external system upon which SAE
depends (e.g. an LDAP directory, an ERX router,
etc.)public boolean isActive() throws UnknownUserException, NonUniqueUserException, UnknownSubscriptionException
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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 java.util.SortedSet getActiveSessionNames() throws UnknownUserException, NonUniqueUserException
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
NonUniqueUserException
- If the user specified by this bean's userDn
property is logged in more than once.public java.util.Set getPersistentSessionNames() throws UnknownUserException, NonUniqueUserException
UnknownUserException
NonUniqueUserException
public void setUpStreamBandwidth(int bw)
setActive(true)
). SAE 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
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
NonUniqueUserException
- If the user specified by this bean's userDn
property is logged in more than once.public void setDownStreamBandwidth(int bw)
setActive(true)
). SAE 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
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
NonUniqueUserException
- If the user specified by this bean's userDn
property is logged in more than once.public void setAggregateServiceName(java.lang.String aServiceName)
aServiceName
- public void setAggregateSessionName(java.lang.String aSessionName)
aSessionName
- public void setAggregateVr(java.lang.String aVr)
aVr
- public void setAggregateLoginName(java.lang.String aLoginName)
aLoginName
- public void setAggregateUserIdType(java.lang.String aUserIdType)
aUserIdType
- public void setAggregateUserDn(java.lang.String aUserDn)
aUserDn
- public void setAggregateUserIp(java.lang.String aUserIp)
aUserIp
- public void setAggregateSessionId(java.lang.String aSessionId)
aSessionId
- public void setAggregateAccountingId(java.lang.String aAccountingId)
aAccountingId
- public void setAggregateAuthUserId(java.lang.String aAuthUserId)
aAuthUserId
- public void setRequireAggregateSubscription(boolean aflag)
aflag
- public void setAggregateFragmentIsLocal(boolean aflag)
aflag
- public void setAggregateFragmentSessionId(java.lang.String aSessionId)
aSessionId
- public void setAggregateUserSessionId(java.lang.String aUserSessionId)
aUserSessionId
- public void fragmentDown(java.lang.String fragmentSessionId) throws UnknownUserException, NonUniqueUserException, UnknownServiceException, UnknownSubscriptionException, UnknownServiceSessionException, SspException
fragmentSessionId
- identifies the fragment service session that wants to notify
it was deactivated.
java.lang.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 to SAE.
UnknownSubscriptionException
- If the user is no longer subscribed to the service.
UnknownServiceSessionException
- If the service session specified by this bean is not
active.
SspException
- If the service specified by the service bean is not from
aggregate typepublic void fragmentReactivating(java.lang.String fragmentSessionId) throws UnknownUserException, NonUniqueUserException, UnknownServiceException, UnknownSubscriptionException, UnknownServiceSessionException, SspException
fragmentSessionId
- identifies the fragment service session that wants to notify
it was deactivated.
java.lang.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 to SAE.
UnknownSubscriptionException
- If the user is no longer subscribed to the service.
UnknownServiceSessionException
- If the service session specified by this bean is not
active.
SspException
- If the service specified by the service bean is not from
aggregate typepublic java.lang.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.
UnknownSubscriptionException
public void setSessionTag(java.lang.String tag)
tag
- the session tag.public java.lang.String getSessionTag() throws UnknownUserException, NonUniqueUserException
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
NonUniqueUserException
- If the user specified by this bean's userDn
property is logged in more than once.public java.lang.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 java.lang.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.
java.lang.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 isCorbaCall(boolean call)
public void setPersistentActivation(boolean active) throws java.lang.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.
active
- true to create a persistent activation, false to delete a
persistent activation.
java.lang.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
ServiceAuthenticationException
public boolean isPersistentActivation()
public boolean isPersistentSession()
public boolean isSubscribed() throws UnknownUserException, NonUniqueUserException
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
NonUniqueUserException
- If the user specified by this bean is logged in more than
once.public java.util.List getRuntimeParameters() throws UnknownServiceException, UnknownUserException, NonUniqueUserException, UnknownSubscriptionException, SspException
UnknownServiceException
- If the service is no longer loaded in SAE.
UnknownUserException
- If the user is no longer logged in to SAE.
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 SAE or in an external system upon which SAE
depends (e.g. an LDAP directory, a RADIUS server,
an E-series router, etc.)public java.util.List getPolicyParameters() throws UnknownServiceException, UnknownUserException, NonUniqueUserException, UnknownSubscriptionException, SspException
UnknownServiceException
- If the service is no longer loaded in SAE.
UnknownUserException
- If the user is no longer logged in to SAE.
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 SAE or in an external system upon which SAE
depends (e.g. an LDAP directory, a RADIUS server,
an E-series router, etc.)public java.util.List getServiceParameters() throws UnknownServiceException, UnknownUserException, NonUniqueUserException, UnknownSubscriptionException, SspException
UnknownServiceException
- If the service is no longer loaded in SAE.
UnknownUserException
- If the user is no longer logged in to SAE.
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 SAE or in an external system upon which SAE
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.
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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 SAE.
UnknownSubscriptionException
- If the user is no longer subscribed to the service.
OverloadException
- If the COPS interface is currently overloaded.
SspException
public java.util.Set getProperties() 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 java.util.Map getPropertyMap() 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 setProperties(java.util.Set props)
public void setSubscriptionStatus(java.lang.String aStatus)
ServiceProfile.SUBSCRIBED
ServiceProfile.UNSUBSCRIBED
ServiceProfile.HIDDEN
public void setSubscriptionActivationOrder(java.lang.String order)
public void setSubscriptionDeletedFlag(java.lang.String flag)
public void setSubscriptionSubstitutions(java.lang.String[] substs)
public void setSubscriptionActivationTrigger(java.lang.String trigger)
Subscription.MANUAL
: The subscription will be activated
only when setActive(true)
is explicitly called.
Subscription.ACTIVATE_ON_LOGIN
: The subscription will be
activated automatically every time the user logs in to SAE.
public java.util.Map getSubscriptionAttributes() throws UnknownUserException, NonUniqueUserException, UnknownServiceException
java.lang.IllegalStateException
- If this bean has not been properly initialized.
UnknownUserException
- If the user is no longer logged in to SAE.
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 SAE.public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.Set getDeprecatedProperties()
|
Core API 7.8 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |