public class DefaultRuleManagerProxy extends Object implements RuleManagerProxy
| Constructor and Description |
|---|
DefaultRuleManagerProxy(org.gcube.common.clients.delegates.ProxyDelegate<org.gcube.data.analysis.tabulardata.commons.webservice.RuleManager> config) |
| 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,
Map<String,String> mappingPlacelhoderIdColumnId,
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 type) |
org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription |
share(Long entityId,
org.gcube.data.analysis.tabulardata.commons.utils.AuthorizationToken... authTokens) |
org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription |
unshare(Long entityId,
org.gcube.data.analysis.tabulardata.commons.utils.AuthorizationToken... authTokens) |
void |
updateColumnRule(org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription descriptor) |
public DefaultRuleManagerProxy(org.gcube.common.clients.delegates.ProxyDelegate<org.gcube.data.analysis.tabulardata.commons.webservice.RuleManager> config)
public long saveRule(String name, String description, org.gcube.data.analysis.tabulardata.expression.Expression rule, org.gcube.data.analysis.tabulardata.commons.rules.types.RuleType type)
saveRule in interface RuleManagerProxypublic List<org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription> getRules()
getRules in interface RuleManagerProxypublic List<org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription> getRulesByScope(org.gcube.data.analysis.tabulardata.commons.rules.RuleScope scope)
getRulesByScope in interface RuleManagerProxypublic void remove(Long id) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleException
remove in interface RuleManagerProxyorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleExceptionpublic void updateColumnRule(org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription descriptor)
throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleException
updateColumnRule in interface RuleManagerProxyorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleExceptionpublic List<org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription> getApplicableBaseColumnRules(Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> dataTypeClass)
getApplicableBaseColumnRules in interface RuleManagerProxypublic 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.NoSuchRuleException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceException
applyColumnRule in interface RuleManagerProxyorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleExceptionorg.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
getAppliedRulesByTabularResourceId in interface RuleManagerProxyorg.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.NoSuchTabularResourceException
detachColumnRules in interface RuleManagerProxyorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceExceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.RuleDescription share(Long entityId, org.gcube.data.analysis.tabulardata.commons.utils.AuthorizationToken... authTokens) 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.AuthorizationToken... authTokens) 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.InternalSecurityExceptionpublic void detachTableRules(Long tabularResourceId, List<Long> ruleIds) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceException
detachTableRules in interface RuleManagerProxyorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceExceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.tasks.TaskInfo applyTableRule(Long tabularResourceId, Map<String,String> mappingPlacelhoderIdColumnId, Long ruleId) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceException
applyTableRule in interface RuleManagerProxyorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchRuleExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceExceptionCopyright © 2015. All Rights Reserved.