|
Novell exteNd Director 5.2 API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface implemented by the portal elements that are securable. An application can set and get permissions for securable elements.
Each element type has a set of access rights,
which is the list of permissions supported by the element type.
Element types are defined as constants in subinterfaces of EbiFrameworkElement.
To find out the access rights for a particular element,
get a Security meta delegate, getting the EbiAccessRightMeta
object for the desired element type, then retrieve
the list of supported permissions:
com.sssw.fw.security.api.EbiSecurityMetaDelegate smd =
com.sssw.fw.client.factory.getSecurityMetaDelegate();
com.sssw.fw.security.api.EbiAccessRightMeta meta =
smd.getAccessRightMeta(context, elementType);
String[] rights = meta.getPermissionNames();
You can use the values in the resulting String array in methods of EbiSecurableElement that specify an access right.
EbiSecurityMetaDelegate,
EbiAccessRightMeta| Method Summary | |
Acl |
getAcl(EbiContext context)
Gets the access control list that is currently set for this securable element. |
String |
getObjectID()
Returns the ID that is used for setting permissions for this securable element. |
boolean |
isUserAuthorized(EbiContext context,
String accessRight)
Checks to see if the current user is authorized to access this element. |
boolean |
removeAcl(EbiContext context)
Removes the Access Control List that is currently set for this securable element. |
void |
setAcl(EbiContext context,
Acl acl)
Sets an access control list for this securable element. |
| Methods implemented from interface com.sssw.fw.api.EbiElement |
getType |
| Method Detail |
public String getObjectID()
public boolean isUserAuthorized(EbiContext context,
String accessRight)
throws EboUnrecoverableSystemException,
EboSecurityException
context - The context, which contains information about the logged-in user.accessRight - The access right to check. For sample code
that gets the access rights for
an element type, see EbiSecurableElement.
public void setAcl(EbiContext context,
Acl acl)
throws EboUnrecoverableSystemException,
EboSecurityException
context - An EbiContext object.acl - An ACL.
public Acl getAcl(EbiContext context)
throws EboUnrecoverableSystemException,
EboSecurityException
context - An EbiContext object.
public boolean removeAcl(EbiContext context)
throws EboUnrecoverableSystemException,
EboSecurityException
context - An EbiContext object.
|
Novell exteNd Director 5.2 API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||