com.atlassian.studio.confluence
Class PartiallyFilteredCrowdServiceImpl
java.lang.Object
com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl
com.atlassian.studio.confluence.PartiallyFilteredCrowdServiceImpl
- All Implemented Interfaces:
- com.atlassian.crowd.embedded.api.CrowdService
public class PartiallyFilteredCrowdServiceImpl
- extends com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl
Ensures filtered groups are not displayed, but can still be checked for
membership. This is required because "_licensed_developers" musn't be
exposed, yet it is used to distinguish developers from collaborators. With
a simple FilteredCrowdServiceImpl
, all users appear to be
collaborators.
Field Summary |
protected com.atlassian.crowd.embedded.api.CrowdService |
crowdService
|
Constructor Summary |
PartiallyFilteredCrowdServiceImpl(com.atlassian.crowd.embedded.api.CrowdService crowdService,
com.atlassian.crowd.embedded.core.FilteredGroupsProvider groupProvider)
|
Method Summary |
com.atlassian.crowd.embedded.api.Group |
getGroup(java.lang.String name)
|
boolean |
isUserDirectGroupMember(com.atlassian.crowd.embedded.api.User user,
com.atlassian.crowd.embedded.api.Group group)
|
boolean |
isUserMemberOfGroup(java.lang.String userName,
java.lang.String groupName)
|
boolean |
isUserMemberOfGroup(com.atlassian.crowd.embedded.api.User user,
com.atlassian.crowd.embedded.api.Group group)
|
Methods inherited from class com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl |
addGroup, addGroupToGroup, addUserToGroup, getGroupWithAttributes, isGroupDirectGroupMember, isGroupMemberOfGroup, isGroupMemberOfGroup, removeAllGroupAttributes, removeGroup, removeGroupAttribute, removeGroupFromGroup, removeUserFromGroup, search, setGroupAttribute, setGroupAttribute, updateGroup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
crowdService
protected final com.atlassian.crowd.embedded.api.CrowdService crowdService
PartiallyFilteredCrowdServiceImpl
public PartiallyFilteredCrowdServiceImpl(com.atlassian.crowd.embedded.api.CrowdService crowdService,
com.atlassian.crowd.embedded.core.FilteredGroupsProvider groupProvider)
getGroup
public com.atlassian.crowd.embedded.api.Group getGroup(java.lang.String name)
- Specified by:
getGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
- Overrides:
getGroup
in class com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl
isUserMemberOfGroup
public boolean isUserMemberOfGroup(java.lang.String userName,
java.lang.String groupName)
- Specified by:
isUserMemberOfGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
- Overrides:
isUserMemberOfGroup
in class com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl
isUserMemberOfGroup
public boolean isUserMemberOfGroup(com.atlassian.crowd.embedded.api.User user,
com.atlassian.crowd.embedded.api.Group group)
- Specified by:
isUserMemberOfGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
- Overrides:
isUserMemberOfGroup
in class com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl
isUserDirectGroupMember
public boolean isUserDirectGroupMember(com.atlassian.crowd.embedded.api.User user,
com.atlassian.crowd.embedded.api.Group group)
throws com.atlassian.crowd.exception.runtime.OperationFailedException
- Specified by:
isUserDirectGroupMember
in interface com.atlassian.crowd.embedded.api.CrowdService
- Overrides:
isUserDirectGroupMember
in class com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl
- Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException
Copyright © 2003-2013 Atlassian. All Rights Reserved.