@Service public class HibernateGroupFeatureService extends org.nrg.framework.orm.hibernate.AbstractHibernateEntityService<GroupFeature,GroupFeatureDAO> implements GroupFeatureService
Constructor and Description |
---|
HibernateGroupFeatureService() |
Modifier and Type | Method and Description |
---|---|
GroupFeature |
addFeatureToGroup(String groupId,
String tag,
String feature)
Creates the specified group feature combo.
|
void |
blockFeatureForGroup(String id,
String tag,
String feature)
Block feature for this group
|
void |
delete(String groupId,
String feature)
Deletes the specified group feature combo.
|
void |
deleteByGroup(String groupId)
Deletes the specified group.
|
void |
deleteByTag(String tag)
Deletes the specified tag.
|
List<GroupFeature> |
findFeaturesForGroup(String groupId)
Finds all features for the specified group
|
List<GroupFeature> |
findFeaturesForGroups(List<String> groupIds)
Finds all features for the specified groups
|
List<GroupFeature> |
findFeaturesForTag(String tag) |
GroupFeature |
findGroupFeature(String groupId,
String feature)
Finds all matching group features
|
List<GroupFeature> |
findGroupsForFeature(String feature)
Finds all groups for the specified feature.
|
List<GroupFeature> |
findGroupsForFeatures(List<String> feature)
Finds all groups for the specified feature.
|
List<GroupFeature> |
getBannedByTag(String tag)
get features with OnByDefault=true and tag=x
|
List<GroupFeature> |
getEnabledByTag(String tag)
get features with OnByDefault=true and tag=x
|
afterPropertiesSet, create, create, delete, delete, getAll, getAllWithDisabled, getContext, getCount, getCountWithDisabled, getDao, getInitialize, newEntity, refresh, refresh, refresh, refresh, refresh, refresh, retrieve, setApplicationContext, setInitialize, update, validate
getCacheRegion, getParameterizedType, isMatchingType
@Transactional public List<GroupFeature> findFeaturesForGroup(String groupId)
GroupFeatureService
findFeaturesForGroup
in interface GroupFeatureService
groupId
- The group ID from the XdatUserGroup table.group features
issued to the indicated group.@Transactional public List<GroupFeature> findFeaturesForGroups(List<String> groupIds)
GroupFeatureService
findFeaturesForGroups
in interface GroupFeatureService
groupIds
- The group IDs from the XdatUserGroup table.group features
issued to the indicated group.@Transactional public List<GroupFeature> findGroupsForFeature(String feature)
GroupFeatureService
findGroupsForFeature
in interface GroupFeatureService
feature
- The feature to match.group features
issued to the indicated feature.@Transactional public List<GroupFeature> findGroupsForFeatures(List<String> feature)
GroupFeatureService
findGroupsForFeatures
in interface GroupFeatureService
feature
- The feature to match.group features
issued to the indicated feature.@Transactional public void delete(String groupId, String feature)
GroupFeatureService
delete
in interface GroupFeatureService
groupId
- The group ID to match.feature
- The feature to match.@Transactional public void deleteByGroup(String groupId)
GroupFeatureService
deleteByGroup
in interface GroupFeatureService
groupId
- The group ID to match.@Transactional public void deleteByTag(String tag)
GroupFeatureService
deleteByTag
in interface GroupFeatureService
tag
- The tag to match.@Transactional public GroupFeature addFeatureToGroup(String groupId, String tag, String feature)
GroupFeatureService
addFeatureToGroup
in interface GroupFeatureService
groupId
- The group ID.tag
- The tag.feature
- The feature.@Transactional public GroupFeature findGroupFeature(String groupId, String feature)
GroupFeatureService
findGroupFeature
in interface GroupFeatureService
groupId
- The group ID.feature
- The feature.@Transactional public void blockFeatureForGroup(String id, String tag, String feature)
GroupFeatureService
blockFeatureForGroup
in interface GroupFeatureService
@Transactional public List<GroupFeature> findFeaturesForTag(String tag)
findFeaturesForTag
in interface GroupFeatureService
@Transactional public List<GroupFeature> getEnabledByTag(String tag)
GroupFeatureService
getEnabledByTag
in interface GroupFeatureService
@Transactional public List<GroupFeature> getBannedByTag(String tag)
GroupFeatureService
getBannedByTag
in interface GroupFeatureService
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.