@StableMinor(version="12.3", sinceVersion="4.2") public abstract class AbstractGroupMembershipProvider extends Object implements IGroupMembershipProvider
IGroupMembershipProvider
, that
minimizes the number of methods required to be implemented.
Member modification operations (addMember(String, String)
and
removeMember(String, String)
) are implemented as throwing
UnsupportedOperationException
.
Configuration interface getter methods are implemented as returning null, and delete membership data methods do nothing.
IGroupMembershipProvider
Constructor and Description |
---|
AbstractGroupMembershipProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addMember(String groupId,
String memberId)
Add a member into a group.
|
void |
deleteGroupMembershipData(String groupId)
Deletes all data stored for managing the membership of a group.
|
void |
deleteGroupTypeMembershipData()
Deletes all data stored for managing the membership of a group type.
|
void |
destroy()
Indicates that this membership provider will no longer be used.
|
String |
getGroupConfigurationInterfaceId()
Returns the interface identifier for editing configurations at a group
scope.
|
protected GroupType |
getGroupType()
Returns the group type this instance is providing group membership to.
|
String |
getGroupTypeConfigurationInterfaceId()
Returns the interface identifier for editing configurations at a group
type scope.
|
void |
init(GroupType groupType)
Initializes this membership provider to be used for the given group type.
|
void |
removeMember(String groupId,
String memberId)
Remove a member from a group.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGroups, getMembers
protected GroupType getGroupType()
init(GroupType)
.public void init(GroupType groupType)
IGroupMembershipProvider
This method is the first method called after an instance creation.
init
in interface IGroupMembershipProvider
groupType
- the group type.public void destroy()
IGroupMembershipProvider
This method may be used to clean up resources allocated in this instance. This instance is no longer used after this method is called.
destroy
in interface IGroupMembershipProvider
public String getGroupConfigurationInterfaceId()
IGroupMembershipProvider
The interface will receive the parameter groupId with the identifier of the group being configured.
Usually IGroupMembershipProvider.deleteGroupMembershipData(String)
will be used to
delete data stored using this configuration interface.
getGroupConfigurationInterfaceId
in interface IGroupMembershipProvider
public String getGroupTypeConfigurationInterfaceId()
IGroupMembershipProvider
The interface will receive the parameter groupTypeId with the identifier of the group type being configured.
Usually IGroupMembershipProvider.deleteGroupTypeMembershipData()
will be used to
delete data stored using this configuration interface.
getGroupTypeConfigurationInterfaceId
in interface IGroupMembershipProvider
public void addMember(String groupId, String memberId) throws PortalException
IGroupMembershipProvider
addMember
in interface IGroupMembershipProvider
groupId
- the group identifier.memberId
- the member identifier.PortalException
public void removeMember(String groupId, String memberId) throws PortalException
IGroupMembershipProvider
removeMember
in interface IGroupMembershipProvider
groupId
- the group identifier.memberId
- the member identifier.PortalException
public void deleteGroupMembershipData(String groupId) throws PortalException
IGroupMembershipProvider
This allows this provider to cleanup membership, configuration or other data that it stores for managing a group membership.
This deletion process order is illustrated in the following diagram:
deleteGroupMembershipData
in interface IGroupMembershipProvider
groupId
- the group identifier.PortalException
public void deleteGroupTypeMembershipData() throws PortalException
IGroupMembershipProvider
This allows this provider to cleanup membership, configuration or other data that it stores for managing a group type membership.
deleteGroupTypeMembershipData
in interface IGroupMembershipProvider
PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.