|
EASP API 6.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is the interface used to manipulate the enterprise managers. Managers have a password and a set of privileges that allow them to modify data in the SSC's LDAP directory. Managers can have the following roles:
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()).
| Field Summary | |
static String |
ACTIVATESUBSC
One of the privileges that can be granted to a Manager. |
static String |
ADMINISTER
One of the privileges that can be granted to a Manager. |
static String |
MODIFYSUBSC
One of the privileges that can be granted to a Manager. |
static String |
MODIFYSUBST
One of the privileges that can be granted to a Manager. |
static String |
MODIFYVPN
One of the privileges that can be granted to a Manager. |
| Method Summary | |
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(String newPassword)
Changes this Manager's password. |
void |
setPrivileges(String[] privilege)
Sets this Manager's privileges. |
| Methods inherited from interface net.juniper.smgt.ent.im.Persistent |
addListener, delListener, getAttribute, getDisplayName, getId, getName, setAttribute, setAttribute, setDisplayName |
| Field Detail |
public static final String ADMINISTER
public static final String MODIFYSUBSC
public static final String MODIFYSUBST
public static final String ACTIVATESUBSC
public static final String MODIFYVPN
| Method Detail |
public 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.
public 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).
public 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).
public 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
public 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).
public 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).
public void setPassword(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).
public void setPrivileges(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).
public 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).
|
EASP API 6.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||