public interface Manager extends Persistent
setPrivieges
method. Note that some privileges imply other privileges, and some
privileges overlap:
ServiceProvider.bind(java.lang.String, java.lang.String)
).
However, all Managers, regardless of privileges, are able to read all of the following objects:
theAccess.getParent().getParent()
in order to read the grandparent Enterprise Subscriber.
Calling getParent()
on that Enterprise object would return null, however, since it has no parent Subscriber.
ServiceProvider.getServices()
).
ServiceProvider.getGlobals()
).
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVATESUBSC
One of the privileges that can be granted to a Manager.
|
static java.lang.String |
ADMINISTER
One of the privileges that can be granted to a Manager.
|
static java.lang.String |
MODIFYSUBSC
One of the privileges that can be granted to a Manager.
|
static java.lang.String |
MODIFYSUBST
One of the privileges that can be granted to a Manager.
|
static java.lang.String |
MODIFYVPN
One of the privileges that can be granted to a Manager.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getPrivileges()
Returns this Manager's privileges.
|
Subscriber |
getSubscriber()
Returns the
Subscriber that owns this Manager. |
boolean |
isActivation()
Returns true while this Manager has the ACTIVATESUBSC privilege.
|
boolean |
isAdministrator()
Returns true while this Manager has the ADMINISTER privilege.
|
boolean |
isSubscription()
Returns true while this Manager has the MODIFYSUBSC privilege.
|
boolean |
isSubstitution()
Returns true while this Manager has the MODIFYSUBST privilege.
|
boolean |
isVPN()
Returns true while this Manager has the MODIFYVPN privilege.
|
void |
setPassword(java.lang.String newPassword)
Changes this Manager's password.
|
void |
setPrivileges(java.lang.String[] privilege)
Sets this Manager's privileges.
|
addListener, delListener, getAttribute, getDisplayName, getId, getName, setAttribute, setAttribute, setDisplayName
static final java.lang.String ADMINISTER
static final java.lang.String MODIFYSUBSC
static final java.lang.String MODIFYSUBST
static final java.lang.String ACTIVATESUBSC
static final java.lang.String MODIFYVPN
Subscriber getSubscriber() throws CommunicationException, AccessControlException
Subscriber
that owns this Manager. This is the Manager's parent object in the LDAP directory.CommunicationException
- Thrown if there is a problem communicating with the directory.AccessControlException
- Thrown if the currently bound Manager
does not have permission
to access the Subscriber.java.lang.String[] getPrivileges() throws CommunicationException, UnknownIdentityException, AccessControlException
ADMINISTER
,
MODIFYSUBSC
, MODIFYSUBST
, ACTIVATESUBSC
}.UnknownIdentityException
- Thrown if any of the relevant group entries have been deleted from
the directory. A group entry is an LDAP entry that contains all the Managers with a specific permission and control over a specific
Enterprise, Site, or Access.CommunicationException
- Thrown if there is a problem communicating with the directory.AccessControlException
- Thrown if the currently bound manager (i.e. the manager
that is invoking this method) is not allowed to administer this manager (i.e. the manager represented by this Manager
instance).boolean isActivation() throws CommunicationException, UnknownIdentityException, AccessControlException
getPrivileges()
includes ACTIVATESUBSC
.UnknownIdentityException
- Thrown if this manager has been deleted from the directory.CommunicationException
- Thrown if there is a problem communicating with the directory.AccessControlException
- Thrown if the currently bound manager (i.e. the manager
that is invoking this method) is not allowed to administer this manager (i.e. the manager represented by this Manager
instance).boolean isAdministrator() throws CommunicationException, UnknownIdentityException, AccessControlException
getPrivileges()
includes ADMINISTER
.UnknownIdentityException
- Thrown if this manager has been deleted from the directory.CommunicationException
- Thrown if there is a problem communicating with the directory.AccessControlException
- Thrown if the currently bound manager (i.e. the manager
that is invoking this method) is not allowed to administer this manager (i.e. the manager represented by this Manager
instance).ADMINISTER
boolean isSubscription() throws CommunicationException, UnknownIdentityException, AccessControlException
getPrivileges()
includes MODIFYSUBSC
UnknownIdentityException
- Thrown if this manager has been deleted from the directory.CommunicationException
- Thrown if there is a problem communicating with the directory.AccessControlException
- Thrown if the currently bound manager (i.e. the manager
that is invoking this method) is not allowed to administer this manager (i.e. the manager represented by this Manager
instance).boolean isSubstitution() throws CommunicationException, UnknownIdentityException, AccessControlException
getPrivileges()
includes MODIFYSUBST
.UnknownIdentityException
- Thrown if this manager has been deleted from the directory.CommunicationException
- Thrown if there is a problem communicating with the directory.AccessControlException
- Thrown if the currently bound manager (i.e. the manager
that is invoking this method) is not allowed to administer this manager (i.e. the manager represented by this Manager
instance).void setPassword(java.lang.String newPassword) throws UnknownIdentityException, CommunicationException, AccessControlException
newPassword
- The manager's new password.UnknownIdentityException
- Thrown if this manager has been deleted from the directory.CommunicationException
- Thrown if there is a problem communicating with the directory.AccessControlException
- Thrown if the currently bound manager (i.e. the manager
that is invoking this method) is not allowed to administer this manager (i.e. the manager represented by this Manager
instance).void setPrivileges(java.lang.String[] privilege) throws CommunicationException, UnknownIdentityException, AccessControlException
Contents of array passed to this method: | Result of subsequent call to getPrivileges() method: |
Comment: |
---|---|---|
ACTIVATESUBSC , MODIFYSUBST , MODIFYSUBSC , ADMINISTER |
ADMINISTER |
ADMINISTER implies all other privileges |
ACTIVATESUBSC , MODIFYSUBST , MODIFYSUBSC |
MODIFYSUBST , MODIFYSUBSC |
MODIFYSUBSC implies ACTIVATESUBSC |
ACTIVATESUBSC , MODIFYSUBSC |
MODIFYSUBSC |
MODIFYSUBSC implies ACTIVATESUBSC |
ACTIVATESUBSC , "mistake" |
ACTIVATESUBSC |
Unrecognized values are ignored. |
privilege
- An array of the manager's privileges. The array must contain a subset of the four privileges {ADMINISTER
,
MODIFYSUBSC
, MODIFYSUBST
, ACTIVATESUBSC
}.UnknownIdentityException
- Thrown if this manager has been deleted from the directory.CommunicationException
- Thrown if there is a problem communicating with the directory.AccessControlException
- Thrown if the currently bound manager (i.e. the manager
that is invoking this method) is not allowed to administer this manager (i.e. the manager represented by this Manager
instance).boolean isVPN() throws CommunicationException, UnknownIdentityException, AccessControlException
getPrivileges()
includes MODIFYSUBST
.UnknownIdentityException
- Thrown if this manager has been deleted from the directory.CommunicationException
- Thrown if there is a problem communicating with the directory.AccessControlException
- Thrown if the currently bound manager (i.e. the manager
that is invoking this method) is not allowed to administer this manager (i.e. the manager represented by this Manager
instance).