@Singleton @WeldService public class RuleManagerImpl extends Object implements org.gcube.data.analysis.tabulardata.commons.webservice.RuleManager
| Constructor and Description |
|---|
RuleManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.data.analysis.tabulardata.commons.webservice.types.tasks.TaskInfo |
applyColumnRule(Long tabularResourceId,
String columnId,
List<Long> ruleIds) |
org.gcube.data.analysis.tabulardata.commons.webservice.types.tasks.TaskInfo |
applyTableRule(Long tabularResourceId,
org.gcube.data.analysis.tabulardata.commons.webservice.types.MapObject<String,String> mappingPlaceholderIDToColumnId,
Long ruleId) |
void |
detachColumnRules(Long tabularResourceId,
String columnId,
List<Long> ruleIds) |
void |
detachTableRules(Long tabularResourceId,
List<Long> ruleIds) |
List<org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription> |
getApplicableBaseColumnRules(Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> dataTypeClass) |
org.gcube.data.analysis.tabulardata.commons.webservice.types.AppliedRulesResponse |
getAppliedRulesByTabularResourceId(Long id) |
List<org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription> |
getRules() |
List<org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription> |
getRulesByScope(org.gcube.data.analysis.tabulardata.commons.rules.RuleScope scope) |
void |
remove(Long id) |
long |
saveRule(String name,
String description,
org.gcube.data.analysis.tabulardata.expression.Expression rule,
org.gcube.data.analysis.tabulardata.commons.rules.types.RuleType ruleType) |
org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription |
share(Long entityId,
org.gcube.data.analysis.tabulardata.commons.utils.SharingEntity... entities) |
org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription |
unshare(Long entityId,
org.gcube.data.analysis.tabulardata.commons.utils.SharingEntity... entities) |
void |
updateColumnRule(org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription descriptor) |
public List<org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription> getRules() throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
getRules in interface org.gcube.data.analysis.tabulardata.commons.webservice.RuleManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionpublic List<org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription> getRulesByScope(org.gcube.data.analysis.tabulardata.commons.rules.RuleScope scope) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
getRulesByScope in interface org.gcube.data.analysis.tabulardata.commons.webservice.RuleManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionpublic List<org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription> getApplicableBaseColumnRules(Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> dataTypeClass) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
getApplicableBaseColumnRules in interface org.gcube.data.analysis.tabulardata.commons.webservice.RuleManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionpublic long saveRule(String name, String description, org.gcube.data.analysis.tabulardata.expression.Expression rule, org.gcube.data.analysis.tabulardata.commons.rules.types.RuleType ruleType) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
saveRule in interface org.gcube.data.analysis.tabulardata.commons.webservice.RuleManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionpublic void updateColumnRule(org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription descriptor)
throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException,
org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleException
updateColumnRule in interface org.gcube.data.analysis.tabulardata.commons.webservice.RuleManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleExceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.tasks.TaskInfo applyColumnRule(Long tabularResourceId, String columnId, List<Long> ruleIds) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceException
applyColumnRule in interface org.gcube.data.analysis.tabulardata.commons.webservice.RuleManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceExceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.tasks.TaskInfo applyTableRule(Long tabularResourceId, org.gcube.data.analysis.tabulardata.commons.webservice.types.MapObject<String,String> mappingPlaceholderIDToColumnId, Long ruleId) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceException
applyTableRule in interface org.gcube.data.analysis.tabulardata.commons.webservice.RuleManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceExceptionpublic void detachColumnRules(Long tabularResourceId, String columnId, List<Long> ruleIds) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceException
detachColumnRules in interface org.gcube.data.analysis.tabulardata.commons.webservice.RuleManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceExceptionpublic void detachTableRules(Long tabularResourceId, List<Long> ruleIds) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceException
detachTableRules in interface org.gcube.data.analysis.tabulardata.commons.webservice.RuleManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceExceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.AppliedRulesResponse getAppliedRulesByTabularResourceId(Long id) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
getAppliedRulesByTabularResourceId in interface org.gcube.data.analysis.tabulardata.commons.webservice.RuleManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionpublic void remove(Long id) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleException
remove in interface org.gcube.data.analysis.tabulardata.commons.webservice.RuleManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleExceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription share(Long entityId, org.gcube.data.analysis.tabulardata.commons.utils.SharingEntity... entities) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
share in interface org.gcube.data.analysis.tabulardata.commons.webservice.Sharable<Long,org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription,org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleException>org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription unshare(Long entityId, org.gcube.data.analysis.tabulardata.commons.utils.SharingEntity... entities) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
unshare in interface org.gcube.data.analysis.tabulardata.commons.webservice.Sharable<Long,org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription,org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleException>org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionCopyright © 2018. All Rights Reserved.