|
Core API 7.7 | ||||||||
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 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 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 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(String fragmentSessionId)
Notify the user that activated the aggregate service that a fragment service session has been deactivated. |
void |
fragmentReactivating(String fragmentSessionId)
Notify the user that activated the aggregate service that a fragment service session is reactivating. |
String |
getAcctSessionId()
Returns the accounting session id for the subscription session represented by this bean. |
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 SAE's LDAP user directory. |
String[] |
getAttributeNames()
Get the names of the LDAP attributes defined for the current service session profile. |
static 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. |
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. |
Set |
getProperties()
Deprecated. use getPropertyMap instead |
Map |
getPropertyMap()
Get a map of service session properties. |
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. |
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 |
getServiceSessionAcctSessionId()
Returns the accounting session id for the subscription session represented by this bean. |
String |
getSessionId()
Returns the session ID with which this bean was initialized (e.g. |
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. |
Map |
getSubscriptionAttributes()
Returns the Map of attributes defined for the subscription currently 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. |
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(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(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(String aAccountingId)
Specifies the accounting ID of the user that started the aggregate service session. |
void |
setAggregateAuthUserId(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(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(String aLoginName)
Specifies the login name of the user that started the aggregate service session. |
void |
setAggregateServiceName(String aServiceName)
Specifies the name of the aggregate service in the fragment service. |
void |
setAggregateSessionId(String aSessionId)
Specifies the session ID of the aggregate service session in the fragment service. |
void |
setAggregateSessionName(String aSessionName)
Specifies the name of the aggregate service session in the fragment service. |
void |
setAggregateUserDn(String aUserDn)
Specifies the DN of the user profile of the user that started the aggregate service session. |
void |
setAggregateUserIdType(String aUserIdType)
Specifies how to look up the user. |
void |
setAggregateUserIp(String aUserIp)
Specifies the IP address of the user that started the aggregate service session. |
void |
setAggregateUserSessionId(String aUserSessionId)
Specifies the RADIUS session ID of the user that started the aggregate service session. |
void |
setAggregateVr(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(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(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(String sessionVolumeQuota)
Specifies a session volume quota to be used in the subscription session represented by this bean. |
void |
setSessionId(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(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 the next time the subscription session represented by this bean is activated. |
void |
setSubscriptionActivationOrder(String order)
Specifies the relative order of automatically activation of the subscription to be added. |
void |
setSubscriptionActivationTrigger(String trigger)
Specifies the action of the subscription to be added. |
void |
setSubscriptionDeletedFlag(String flag)
Specifies the deleted flag of the subscription to be added. |
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 |
setSubscriptionStatus(String aStatus)
Specifies the status of the subscription to be added. |
void |
setSubscriptionSubstitutions(String[] substs)
Specifies the substitutions of the subscription to be added. |
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. |
void |
startModify()
|
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 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 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(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 String getSessionId()
IllegalStateException
- If this bean has not been properly initialized.public String getRadiusSessionId() throws UnknownUserException, NonUniqueUserException
UnknownUserException
NonUniqueUserException
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 SAE.
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 SAE.
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 SAE.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
UnknownSubscriptionException
public 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_NAME
public 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".
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
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.
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
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 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 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(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 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 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 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(String acctSessionId)
setActive(true)
).
acctSessionId
- The accounting session id.public String getAcctSessionId() throws UnknownUserException, NonUniqueUserException
UnknownUserException
NonUniqueUserException
public 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
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.
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
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(String sessionVolumeQuota)
sessionVolumeQuota
- The session volume quota.getSessionVolumeQuota()
,
setServiceSessionVolumeQuota(java.lang.String)
public void setServiceSessionVolumeQuota(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 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 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 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 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(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 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 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 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(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
.
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 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 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 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.
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.
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).
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
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 SortedSet getActiveSessionNames() throws UnknownUserException, NonUniqueUserException
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 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
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
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(String aServiceName)
aServiceName
- public void setAggregateSessionName(String aSessionName)
aSessionName
- public void setAggregateVr(String aVr)
aVr
- public void setAggregateLoginName(String aLoginName)
aLoginName
- public void setAggregateUserIdType(String aUserIdType)
aUserIdType
- public void setAggregateUserDn(String aUserDn)
aUserDn
- public void setAggregateUserIp(String aUserIp)
aUserIp
- public void setAggregateSessionId(String aSessionId)
aSessionId
- public void setAggregateAccountingId(String aAccountingId)
aAccountingId
- public void setAggregateAuthUserId(String aAuthUserId)
aAuthUserId
- public void setRequireAggregateSubscription(boolean aflag)
aflag
- public void setAggregateFragmentIsLocal(boolean aflag)
aflag
- public void setAggregateFragmentSessionId(String aSessionId)
aSessionId
- public void setAggregateUserSessionId(String aUserSessionId)
aUserSessionId
- public void fragmentDown(String fragmentSessionId) throws UnknownUserException, NonUniqueUserException, UnknownServiceException, UnknownSubscriptionException, UnknownServiceSessionException, SspException
fragmentSessionId
- identifies the fragment service session that wants to
notify it was deactivated.
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(String fragmentSessionId) throws UnknownUserException, NonUniqueUserException, UnknownServiceException, UnknownSubscriptionException, UnknownServiceSessionException, SspException
fragmentSessionId
- identifies the fragment service session that wants to
notify it was deactivated.
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 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(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 SAE.
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 isCorbaCall(boolean call)
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.
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
ServiceAuthenticationException
public boolean isPersistentActivation()
public boolean isPersistentSession()
public boolean isSubscribed() throws UnknownUserException, NonUniqueUserException
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 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 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 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.
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 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 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(Set props)
public void setSubscriptionStatus(String aStatus)
ServiceProfile.SUBSCRIBED
ServiceProfile.UNSUBSCRIBED
ServiceProfile.HIDDEN
public void setSubscriptionActivationOrder(String order)
public void setSubscriptionDeletedFlag(String flag)
public void setSubscriptionSubstitutions(String[] substs)
public void setSubscriptionActivationTrigger(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 Map getSubscriptionAttributes() throws UnknownUserException, NonUniqueUserException, UnknownServiceException
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 String toString()
toString
in class Object
public static Set getDeprecatedProperties()
|
Core API 7.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |