| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Membership
Membership is one of the Application Component Interfaces, implemented by an application component. Membership is used to notify a component instance whenever members (people or groups) are added to or removed from the roles defined for the application that contains the component. The component can use this information to grant or revoke access to resources that it manages. Membership is also used to get information about roles that are specific to your component. If your component doesn't define its own roles, you don't need to implement the Membership interface.
* memberRemoved(String, ObjectID, String) will be called to compensate for a failed adding of members to a community role and memberAdded(String, ObjectID, String) will be called to compensate for a failed removal of members from a community role.
Note: The component instance identifier input parameter used in Membership methods is the identifer returned by the Lifecycle.createInstance(ListModel) or the java.io.Reader, com.ibm.portal.ListModel)">Templatable.createFromTemplate(Reader, ListModel) method.
Method Summary | |
---|---|
ListModel | getComponentRoles(java.lang.String componentID)
Returns a list of ComponentRole objects used by this component. |
void | memberAdded(java.lang.String componentID,
ObjectID principalOID,
java.lang.String roleID)
Called when a member (user or group) is added to a community role in the application that contains this component instance. |
void | memberRemoved(java.lang.String componentID,
ObjectID principalOID,
java.lang.String roleID)
Called when members are removed from a role in the application that contains this component instance. |
Method Detail |
---|
void memberAdded(java.lang.String componentID, ObjectID principalOID, java.lang.String roleID) throws ComponentException
com.ibm.portal.um.PumaHome
and
com.ibm.portal.um.PumaLocator
.
Note: memberAdded will not be called unless your getComponentRoles method returns one or more roles.
null
.roleID
parameter, must not be
null
.null
.
ListModel getComponentRoles(java.lang.String componentID)
null
.
null
.void memberRemoved(java.lang.String componentID, ObjectID principalOID, java.lang.String roleID) throws ComponentException
Note: memberRemoved will not be called unless your getComponentRoles method returns one or more roles.
null
.roleID
parameter, must
not be null
.null
.
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |