public interface FeatureServiceI
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 tag)
returns default blocked setting for this feature for a given tag
|
boolean |
isOnByDefaultForGroup(UserGroup group,
String feature) |
boolean |
isOnByDefaultForGroupType(String feature,
String tag)
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
|
Collection<String> getFeaturesForUserByTag(UserI user, String tag)
user
- Collection<String> getFeaturesForUserByTags(UserI user, Collection<String> tags)
user
- Collection<String> getFeaturesForGroup(UserGroup group)
group
- void addFeatureForGroup(UserGroup group, String feature, UserI authenticatedUser) throws Exception
group
- feature
- Exception
void removeFeatureSettingFromGroup(UserGroup group, String feature, UserI authenticatedUser) throws Exception
group
- feature
- Exception
void removeAllFeatureSettingsFromGroup(UserGroup group, UserI authenticatedUser) throws Exception
group
- feature
- Exception
boolean checkFeature(UserGroup group, String feature)
group
- boolean checkFeature(UserI user, String tag, String feature)
group
- boolean checkFeature(UserI user, Collection<String> tags, String feature)
group
- boolean isOnByDefaultForGroupType(String feature, String tag)
feature
- void blockFeatureForGroup(UserGroup group, String feature, UserI authenticatedUser)
group
- feature
- void unblockFeatureForGroup(UserGroup group, String feature, UserI authenticatedUser)
group
- feature
- boolean isBlockedByGroupType(String feature, String tag)
feature
- tag
- boolean checkFeatureForAnyTag(UserI user, String feature)
user
- feature
- void unblockByGroupType(String feature, String displayName, UserI authenticatedUser)
void enableIsOnByDefaultByGroupType(String feature, String displayName, UserI authenticatedUser)
void disableIsOnByDefaultByGroupType(String feature, String displayName, UserI authenticatedUser)
void disableFeatureForGroup(UserGroup group, String feature, UserI authenticatedUser)
Collection<String> getEnabledFeaturesForGroupType(String type)
Collection<String> getBannedFeaturesForGroupType(String type)
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.