public class FeatureServiceImpl extends Object implements FeatureServiceI
Modifier and Type | Class and Description |
---|---|
static class |
FeatureServiceImpl.STATUS |
Constructor and Description |
---|
FeatureServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addFeatureForGroup(UserGroup group,
String feature,
UserI authenticatedUser)
Add feature for this group
|
void |
blockByGroupType(String feature,
String displayName,
UserI authenticatedUser) |
void |
blockFeatureForGroup(UserGroup group,
String feature,
UserI authenticatedUser)
Block feature for this group
|
boolean |
checkFeature(UserGroup group,
String feature)
Check if group contains this feature
|
boolean |
checkFeature(UserI user,
Collection<String> tags,
String feature)
Is this user a member of any groups with the matching tagand feature
|
boolean |
checkFeature(UserI user,
String tag,
String feature)
Is this user a member of a group with the matching tag and feature
|
boolean |
checkFeatureForAnyTag(UserI user,
String feature)
Is this user a member of any group with this feature
|
void |
disableFeatureForGroup(UserGroup group,
String feature,
UserI authenticatedUser) |
void |
disableIsOnByDefaultByGroupType(String feature,
String displayName,
UserI authenticatedUser) |
void |
enableIsOnByDefaultByGroupType(String feature,
String displayName,
UserI authenticatedUser) |
Collection<String> |
getBannedFeaturesForGroupType(String type) |
List<String> |
getBlockedFeaturesByTag(String tag) |
List<String> |
getEnabledFeaturesByTag(String tag) |
Collection<String> |
getEnabledFeaturesForGroupType(String type) |
Collection<String> |
getFeaturesForGroup(UserGroup group)
Get features for this group
|
Collection<String> |
getFeaturesForUserByTag(UserI user,
String tag)
Retrieve a list of features for this user by tag
|
Collection<String> |
getFeaturesForUserByTags(UserI user,
Collection<String> tags)
Retrieve a list of features for this user by tags
|
boolean |
isBlockedByGroup(UserGroup group,
String feature) |
boolean |
isBlockedByGroupType(String feature,
String displayName)
returns default blocked setting for this feature for a given tag
|
boolean |
isOnByDefaultForGroup(UserGroup group,
String feature) |
boolean |
isOnByDefaultForGroupType(String feature,
String displayName)
returns default setting for this feature for a given tag
|
void |
removeAllFeatureSettingsFromGroup(UserGroup group,
UserI authenticatedUser)
Remove all features from this group
|
void |
removeFeatureSettingFromGroup(UserGroup group,
String feature,
UserI authenticatedUser)
Remove feature from this group
|
void |
unblockByGroupType(String feature,
String displayName,
UserI authenticatedUser) |
void |
unblockFeatureForGroup(UserGroup group,
String feature,
UserI authenticatedUser)
Un-Block feature for this group
|
public Collection<String> getFeaturesForGroup(UserGroup group)
FeatureServiceI
getFeaturesForGroup
in interface FeatureServiceI
public void addFeatureForGroup(UserGroup group, String feature, UserI authenticatedUser)
FeatureServiceI
addFeatureForGroup
in interface FeatureServiceI
public void removeFeatureSettingFromGroup(UserGroup group, String feature, UserI authenticatedUser)
FeatureServiceI
removeFeatureSettingFromGroup
in interface FeatureServiceI
public void removeAllFeatureSettingsFromGroup(UserGroup group, UserI authenticatedUser)
FeatureServiceI
removeAllFeatureSettingsFromGroup
in interface FeatureServiceI
public Collection<String> getFeaturesForUserByTag(UserI user, String tag)
FeatureServiceI
getFeaturesForUserByTag
in interface FeatureServiceI
public Collection<String> getFeaturesForUserByTags(UserI user, Collection<String> tags)
FeatureServiceI
getFeaturesForUserByTags
in interface FeatureServiceI
public boolean checkFeature(UserGroup group, String feature)
FeatureServiceI
checkFeature
in interface FeatureServiceI
public boolean checkFeature(UserI user, String tag, String feature)
FeatureServiceI
checkFeature
in interface FeatureServiceI
public boolean checkFeature(UserI user, Collection<String> tags, String feature)
FeatureServiceI
checkFeature
in interface FeatureServiceI
public boolean checkFeatureForAnyTag(UserI user, String feature)
FeatureServiceI
checkFeatureForAnyTag
in interface FeatureServiceI
public boolean isOnByDefaultForGroupType(String feature, String displayName)
FeatureServiceI
isOnByDefaultForGroupType
in interface FeatureServiceI
public boolean isBlockedByGroupType(String feature, String displayName)
FeatureServiceI
isBlockedByGroupType
in interface FeatureServiceI
public void blockByGroupType(String feature, String displayName, UserI authenticatedUser)
blockByGroupType
in interface FeatureServiceI
public void unblockByGroupType(String feature, String displayName, UserI authenticatedUser)
unblockByGroupType
in interface FeatureServiceI
public void enableIsOnByDefaultByGroupType(String feature, String displayName, UserI authenticatedUser)
enableIsOnByDefaultByGroupType
in interface FeatureServiceI
public void disableIsOnByDefaultByGroupType(String feature, String displayName, UserI authenticatedUser)
disableIsOnByDefaultByGroupType
in interface FeatureServiceI
public boolean isBlockedByGroup(UserGroup group, String feature)
isBlockedByGroup
in interface FeatureServiceI
public boolean isOnByDefaultForGroup(UserGroup group, String feature)
isOnByDefaultForGroup
in interface FeatureServiceI
public void disableFeatureForGroup(UserGroup group, String feature, UserI authenticatedUser)
disableFeatureForGroup
in interface FeatureServiceI
public void blockFeatureForGroup(UserGroup group, String feature, UserI authenticatedUser)
FeatureServiceI
blockFeatureForGroup
in interface FeatureServiceI
public void unblockFeatureForGroup(UserGroup group, String feature, UserI authenticatedUser)
FeatureServiceI
unblockFeatureForGroup
in interface FeatureServiceI
public Collection<String> getEnabledFeaturesForGroupType(String type)
getEnabledFeaturesForGroupType
in interface FeatureServiceI
public Collection<String> getBannedFeaturesForGroupType(String type)
getBannedFeaturesForGroupType
in interface FeatureServiceI
public List<String> getEnabledFeaturesByTag(String tag)
getEnabledFeaturesByTag
in interface FeatureServiceI
public List<String> getBlockedFeaturesByTag(String tag)
getBlockedFeaturesByTag
in interface FeatureServiceI
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.