public interface Subscriber extends Substitutions, Persistent, Managers
Enterprise
s, Site
s, and Access
es.Modifier and Type | Method and Description |
---|---|
java.util.Collection |
acquireServices()
Returns a Collection of the acquired Services that this subscriber can subscribe to.
|
void |
clearImportedVPNCache()
Clear the cache of imported VPN in this subscriber.
|
PersistentIterator |
getAccesses()
Returns a iterator over the
Access es in this Subscriber. |
PersistentIterator |
getChildren()
Returns an iterator over the Subscriber children of this Subscriber.
|
PersistentIterator |
getEnterprises()
Returns an iterator over the
Enterprise s that is under (for Retailer)
or directly under (for Enterprise, Site, Access and Folder) this Subscriber |
PersistentIterator |
getFolders()
Returns a iterator over the
Folder s in this Subscriber. |
java.util.Collection |
getImportedVPNNames()
Return a Collection of names of VPNs that are imported by this Subscriber.
|
PersistentIterator |
getLocalVPNs()
Return a PersistentIterator over all the contained VPNs.
|
Subscriber |
getParent()
Returns the parent of this Subscriber, or null if this Subscriber is an Enterprise (i.e. if it is
the root of a Subscriber tree).
|
Service |
getService(java.lang.String serviceName)
Returns the
Service with the given name, if it is a service to which this Subscriber can be subscribed, otherwise
returns null. |
PersistentIterator |
getServices()
Deprecated.
use acquireServices() instead.
|
java.util.Collection |
getSessions()
Returns all the
Session s associated with all the Subscription s of this Subscriber. |
PersistentIterator |
getSites()
Returns a iterator over the
Site s in this Subscriber. |
Subscription |
getSubscription(java.lang.String serviceName)
Returns this Subscriber's default Subscription to the Service with the specified name.
|
Subscription |
getSubscription(java.lang.String serviceName,
java.lang.String subscriptionName)
Returns this Subscriber's Subscription named by subscriptionName to the Service with the specified name.
|
PersistentIterator |
getSubscriptions()
Returns an iterator over all the
Subscription s that belong to this Subscriber. |
java.util.Collection |
getSubscriptions(java.lang.String serviceName)
Returns a Collection of this Subscriber's
Subscription s to the named Service . |
boolean |
isSubscribed(java.lang.String serviceName)
Returns true only if this Subscriber has a
Subscription to the specified Service . |
boolean |
isSubscribed(java.lang.String serviceName,
java.lang.String subscriptionName)
Returns true only if this Subscriber has a
Subscription with the specified name to the specified Service . |
Subscription |
subscribe(java.lang.String serviceName)
Creates a default subscription for this Subscriber to the
Service specified by
serviceName . |
Subscription |
subscribe(java.lang.String serviceName,
java.lang.String subscriptionName)
Subscribes this Subscriber to the
Service specified by serviceName
and names the subscription with subscriptionName . |
void |
unsubscribe(java.lang.String serviceName)
Deletes the default
Subscription to the specified Service from this Subscriber. |
void |
unsubscribe(java.lang.String serviceName,
java.lang.String subscriptionName)
Deletes the
Subscription identified by subscriptionName to the specified Service from this Subscriber. |
delSubstitution, getDefaultedVariables, getFixedVariables, getFreeVariables, getSubstitution, getSubstitutionVariableNames, hasSubstitution, putSubstitution
addListener, delListener, getAttribute, getDisplayName, getId, getName, setAttribute, setAttribute, setDisplayName
addManager, delManager, getManager, getManagers
Subscriber getParent() throws CommunicationException, AccessControlException
CommunicationException
- Thrown if there is a problem communicationg with the directory.AccessControlException
- Thrown if the currently bound manager does not
have access to the parent Subscriber.PersistentIterator getChildren() throws CommunicationException
Access
, this method returns an empty iterator.
If this Subscriber is a Site
, this method returns an iterater over the Accesses that belong to the Site.
If this Subscriber is an Enterprise
, this method returns an iterator over the
Sites and Accesses that belong to the Enterprise (but only those Accesses that exist immediately
underneath the Enterise; not those that exist underneath the Enterprise's Sites).CommunicationException
- Thrown if there is a problem communicating with the directory.PersistentIterator getServices() throws CommunicationException
Service
s.CommunicationException
- Thrown if there is a problem communicating with the directory.java.util.Collection acquireServices() throws CommunicationException
CommunicationException
Service getService(java.lang.String serviceName) throws UnknownIdentityException, CommunicationException
Service
with the given name, if it is a service to which this Subscriber can be subscribed, otherwise
returns null.serviceName
- The name of the desired Service.UnknownIdentityException
CommunicationException
PersistentIterator getSubscriptions() throws CommunicationException
Subscription
s that belong to this Subscriber. This includes only those
Subscriptions stored immediately below this Subscriber in LDAP, and not those Subscriptions stored immediately below any
ancestor Subscribers of this Subscriber in LDAP.CommunicationException
- Thrown if there is a problem communicating with the directory.java.util.Collection getSubscriptions(java.lang.String serviceName) throws CommunicationException
Subscription
s to the named Service
.serviceName
- The name of the Service for which Subscriptions should be returned.CommunicationException
- Thrown if there is a problem communicating with the directory.Subscription getSubscription(java.lang.String serviceName) throws UnknownIdentityException, CommunicationException
getSubscription(serviceName, null)
.serviceName
- The name of a Service to which this Subscriber is subscribed.CommunicationException
- Thrown if there is a problem communicating with the directory.UnknownIdentityException
- Thrown if there is no Subscription to the specified service.Subscription getSubscription(java.lang.String serviceName, java.lang.String subscriptionName) throws UnknownIdentityException, CommunicationException
serviceName
- The name of a Service to which this Subscriber is subscribed.subscriptionName
- The name of the subscription, or null if it is a default subscriptionCommunicationException
- Thrown if there is a problem communicating with the directory.UnknownIdentityException
- Thrown if there is no Subscription to the specified service.java.util.Collection getSessions() throws CommunicationException, AccessControlException
Session
s associated with all the Subscription
s of this Subscriber.
The collection will be empty unless the Subscriber is a leaf node (e.g. an Access) in the Subscriber tree hierarchy.Session
objects.CommunicationException
- if there is a problem communicating with the Directory.AccessControlException
- Thrown if the currently bound manager does not have access permission to get the SessionsSubscription subscribe(java.lang.String serviceName) throws UnknownIdentityException, CommunicationException, DuplicateNameException, AccessControlException
Service
specified by
serviceName
.
This is equivalent to subscribe(serviceName, null)
.serviceName
- The name of the Service to which this Subscriber should be subscribed.CommunicationException
- Thrown if there is a problem communicating with the directory.UnknownIdentityException
- Thrown if the specified Service is not available to be subscribed to
by this Subscriber.DuplicateNameException
- Thrown if the Subscriber already has a Subscription to the specified service.AccessControlException
- Thrown if the currently bound Manager
is not allowed
to create Subscritions for this Subscriber.Subscription subscribe(java.lang.String serviceName, java.lang.String subscriptionName) throws UnknownIdentityException, CommunicationException, DuplicateNameException, AccessControlException
Service
specified by serviceName
and names the subscription with subscriptionName
. The subscriptionName
must be unique in the subscriber's subscriptions of the service specified by
serviceName
serviceName
- The name of the Service to which this Subscriber should be subscribed.subscriptionName
- The name of the subscription, or null if the Subscription is a
default subscription.CommunicationException
- Thrown if there is a problem communicating with the directory.UnknownIdentityException
- Thrown if the specified Service is not available to be subscribed to
by this Subscriber.DuplicateNameException
- Thrown if the Subscriber already has a Subscription with the specified
subscriptionName to the specified service.AccessControlException
- Thrown if the currently bound Manager
is not allowed
to create Subscritions for this Subscriber.void unsubscribe(java.lang.String serviceName) throws UnknownIdentityException, CommunicationException, AccessControlException
Subscription
to the specified Service
from this Subscriber.
This is equivalent to unsubscribe(serviceName, null)
.serviceName
- The name of the Service to which this Subscriber should no longer be subscribed.CommunicationException
- Thrown if there is a problem communicating with the directory.UnknownIdentityException
- Thrown if there is no Subscription to the specified service.AccessControlException
- Thrown if the currently bound Manager
is not allowed
to delete Subscriptions from this Subscriber.void unsubscribe(java.lang.String serviceName, java.lang.String subscriptionName) throws UnknownIdentityException, CommunicationException, AccessControlException
Subscription
identified by subscriptionName to the specified Service
from this Subscriber.serviceName
- The name of the Service to which this Subscriber should no longer be subscribed.subscriptionName
- The name of the subscription, or null if the Subscription is a
default subscription.CommunicationException
- Thrown if there is a problem communicating with the directory.UnknownIdentityException
- Thrown if there is no Subscription to the specified service.AccessControlException
- Thrown if the currently bound Manager
is not allowed
to delete Subscriptions from this Subscriber.boolean isSubscribed(java.lang.String serviceName) throws CommunicationException
Subscription
to the specified Service
.serviceName
- The name of the Service
.CommunicationException
- Thrown if there is a problem communicating with the directory.boolean isSubscribed(java.lang.String serviceName, java.lang.String subscriptionName) throws CommunicationException
Subscription
with the specified name to the specified Service
.serviceName
- The name of the Service
.subscriptionName
- The name of the subscription.CommunicationException
- Thrown if there is a problem communicating with the directory.PersistentIterator getAccesses() throws CommunicationException
Access
es in this Subscriber.CommunicationException
- Thrown if there is a problem communicating with the directory.PersistentIterator getEnterprises() throws CommunicationException
Enterprise
s that is under (for Retailer)
or directly under (for Enterprise, Site, Access and Folder) this SubscriberCommunicationException
- Thrown if there is a problem communicating with the directory.PersistentIterator getFolders() throws CommunicationException
Folder
s in this Subscriber.CommunicationException
- Thrown if there is a problem communicating with the SSC's LDAP directory.PersistentIterator getSites() throws CommunicationException
Site
s in this Subscriber.CommunicationException
- Thrown if there is a problem communicating with the SSC's LDAP directory.PersistentIterator getLocalVPNs() throws CommunicationException
CommunicationException
- Thrown if there is a problem communicating with the SDX's LDAP directory.java.util.Collection getImportedVPNNames() throws CommunicationException, AccessControlException
CommunicationException
- Thrown if there is a problem communicating with the SDX's LDAP directory.AccessControlException
- Thrown if the currently bound Manager
is not allowed to read the attribute.void clearImportedVPNCache() throws CommunicationException
CommunicationException
- Thrown if there is a problem communicating with the SDX's LDAP directory.