|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.netuix.application.communities.CommunityMembership
public class CommunityMembership
CommunityMembership - value object class that contains information
about a membership of a CommuntityMember
to a
Community
.
Field Summary | |
---|---|
protected boolean |
active
|
protected HashSet<MembershipCapability> |
capabilities
|
protected CommunityDefinitionId |
cDefinitionId
|
static boolean |
DEFAULT_ACTIVE
|
protected Boolean |
hasAdminCapability
|
protected CommunityMembershipId |
id
|
protected Date |
joinDate
|
protected Date |
lastAccess
|
protected CommunityMember |
member
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Collection<MembershipCapability> |
getCapabilities()
Gets a list of all membership capabilities this membership has. |
CommunityDefinitionId |
getCommunityDefinitionId()
Gets the CommunityDefinitionId for the community this membership belongs to. |
CommunityMembershipId |
getId()
Gets the CommunityMembershipId of this object. |
Date |
getJoinDate()
Retrieves the date this membership was created. |
Date |
getLastAccessDate()
Retrieves the last recorded access date for this membership. |
CommunityMember |
getMember()
Gets the CommunityMember object for the user associated with this
membership. |
CommunityMemberId |
getMemberId()
Gets the member ID of the member associated with this membership. |
boolean |
hasAdminCapability()
Returns true if any of this membership's community capabilities
are admin capabilities, as specified by MembershipCapability.isAdminCapability() |
boolean |
hasCapability(MembershipCapability capability)
Determines if this membership has the specified capability. |
int |
hashCode()
|
boolean |
isActive()
Determines if this membership is marked as active-- this does not completely indicate whether the member can access this community. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected CommunityMembershipId id
protected CommunityMember member
protected CommunityDefinitionId cDefinitionId
protected boolean active
protected HashSet<MembershipCapability> capabilities
protected Boolean hasAdminCapability
protected Date lastAccess
protected Date joinDate
public static final boolean DEFAULT_ACTIVE
Method Detail |
---|
public CommunityMembershipId getId()
CommunityMembershipId
of this object.
CommunityMembershipId
of this object.public CommunityMemberId getMemberId()
public CommunityMember getMember()
CommunityMember
object for the user associated with this
membership.
CommunityMember
object for the user associated with this
membership.public CommunityDefinitionId getCommunityDefinitionId()
public boolean isActive()
CommunityMember
object for the user has been marked inactive, or if the community is disabled,
the membership may be inaccessible to the user. See the description of
community framework rendering
for a full description.
true
if this membership is marked as active, false
otherwise.MembershipCriteria.setMembershipAccessible(boolean)
,
CommunityContext.isMembershipActive()
,
CommunityContext.checkPermissions(javax.servlet.http.HttpServletResponse, boolean)
public boolean hasCapability(MembershipCapability capability)
capability
- the membership capability to look for.
true
if this membership has the specified capability,
false
otherwise.public boolean hasAdminCapability()
true
if any of this membership's community capabilities
are admin capabilities, as specified by MembershipCapability.isAdminCapability()
true
if any of this membership's capabilities return
true
for MembershipCapability.isAdminCapability()
,
false
otherwise.public Collection<MembershipCapability> getCapabilities()
public Date getLastAccessDate()
public Date getJoinDate()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |