|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
com.bea.netuix.application.communities.MembershipCriteria
com.bea.netuix.application.communities.CommunityMembershipCriteria
public class CommunityMembershipCriteria
The CommunityMembershipCriteria object is used to specify attributes used to find specific CommunityMembership objects from a particular community. To use this object, construct a new instance, and call any of the set... methods to specify constraints on the search. Only constraints set using a set... method will be used during the search. All specified constraints are used in conjunction (AND rather than OR). Setting some constraints will automatically un-set others, so view the documentation for each set... method to understand the consequences. <p/> For example, to specify a search criteria to find all disabled memberships in a community for users whose username begins with "A", the following would work:
CommunityMembershipCriteria criteria = new CommunityMembershipCriteria(communityId); criteria.setUsername(FilterMethod.BEGINS_WITH, "A"); criteria.setMembershipActive(false);
<p/>The overview of community functionality contains a description of the community framework.
MembershipCriteria, MemberMembershipCriteria, Serialized Form| Field Summary |
|---|
| Fields inherited from class com.bea.netuix.application.communities.MembershipCriteria |
|---|
ORDER_BY_JOIN_DATE, ORDER_BY_LAST_ACCESS_DATE, ORDER_BY_MEMBER_ACTIVE, ORDER_BY_MEMBER_EXTERNAL, ORDER_BY_MEMBERSHIP_ACTIVE, ORDER_BY_USERNAME |
| Constructor Summary | |
|---|---|
CommunityMembershipCriteria(CommunityDefinitionId communityId)Constructor for a CommunityMembershipCriteria object which creates a unconstrained search criteria-- by default, all criteria are not used during a search, and all CommunityMemberships will be selected. |
|
| Method Summary | |
|---|---|
CommunityMembershipCriteria |
copy()Creates a copy of this CommunityMembershipCriteria object. |
boolean |
equals(Object o) |
void |
setMemberActive(boolean active)Specifies the member active status a CommunityMembership must match to be included. |
void |
setMemberExternal(boolean external)Specifies the member external status a membership must match to be included. |
void |
setUsername(String usernamePattern, FilterMethod filterMethod)Specifies the username pattern a CommunityMembership must match to be included. |
String |
toString() |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommunityMembershipCriteria(CommunityDefinitionId communityId)
communityId - the community to search for memberships in.| Method Detail |
|---|
public void setUsername(String usernamePattern,
FilterMethod filterMethod)
null is used as the argument, username is not used as a criteria for selecting memberships.usernamePattern - the username pattern memberships must match to be included. If null, username is not used as a criteria for selection.filterMethod - the filter method to use for the username. FilterMethod.BEGINS_WITH indicates that the username must begin with the specified pattern. FilterMethod.CONTAINS indicates that the username must contain the specified pattern. FilterMethod.ENDS_WITH indicates that the username must end with the specified pattern. FilterMethod.EQUALS indicates that the username must equal the specified pattern string. Supplying any other FilterMethod constant will result in a FilterMethod.EQUALS being applied.public void setMemberActive(boolean active)
active - if true, only memberships whose member status is active will be included; if false, only memberships whose member status is NOT active will be included.public void setMemberExternal(boolean external)
external - the member external flag a membership must match to be included.public CommunityMembershipCriteria copy()
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Object
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2010, Oracle. All rights reserved.