com.semarchy.mdm.runtime.semql.dataaccess
Class SemQLDataAccessUtils

java.lang.Object
  extended by com.semarchy.mdm.runtime.semql.dataaccess.SemQLDataAccessUtils

public final class SemQLDataAccessUtils
extends Object


Method Summary
static void assertReadAuthorized(com.semarchy.platform.language.semql.ParsingResult<?> parseResult, IDataAccessModelSecurityProvider pSecuProvider)
          Assert that parseResult can be read globally or partially
static String buildAttributeExpression(List<IManyToOneNode> pathsToCurrentView, IViewAttribute<? extends IAttribute> pAttribute)
           
static String buildCondition(Set<RowScope> pRowScopes)
          Build a SemQL security Condition to apply for a Set of RowScopes
static Set<RowScope> getReadRowScopes(com.semarchy.platform.language.semql.ParsingResult<?> parseResult, IDataAccessModelSecurityProvider pSecuProvider, boolean pOnlyPartialScopes)
          REturns the list of row scopes to check (with an AND) for read privilege for a given attribute
static Set<RowScope> getReadRowScopes(SemQLViewAttribute semQLViewAttr, IDataAccessModelSecurityProvider pSecuProvider, boolean pOnlyPartialScopes)
          REturns the list of row scopes to check (with an AND) for read privilege for a given attribute
static IView getRootView(ISemQLDataAccessAttr pDataAccessAttr)
          Get the Root view on which the attribute was expressed.
static boolean isReadAuthroized(com.semarchy.platform.language.semql.ParsingResult<?> parseResult, IDataAccessModelSecurityProvider pSecuProvider)
          Return true if parseResult can be read globally or partially
static String toCharAttributeExpression(IViewAttribute<? extends IAttribute> pViewAttribute)
           
static String toCharAttributeExpression(SemQLViewAttribute pDataAccessAttr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertReadAuthorized

public static void assertReadAuthorized(com.semarchy.platform.language.semql.ParsingResult<?> parseResult,
                                        IDataAccessModelSecurityProvider pSecuProvider)
Assert that parseResult can be read globally or partially

Parameters:
parseResult -
pSecuProvider -

isReadAuthroized

public static boolean isReadAuthroized(com.semarchy.platform.language.semql.ParsingResult<?> parseResult,
                                       IDataAccessModelSecurityProvider pSecuProvider)
Return true if parseResult can be read globally or partially

Parameters:
parseResult -
pSecuProvider -

getReadRowScopes

public static Set<RowScope> getReadRowScopes(com.semarchy.platform.language.semql.ParsingResult<?> parseResult,
                                             IDataAccessModelSecurityProvider pSecuProvider,
                                             boolean pOnlyPartialScopes)
REturns the list of row scopes to check (with an AND) for read privilege for a given attribute


getReadRowScopes

public static Set<RowScope> getReadRowScopes(SemQLViewAttribute semQLViewAttr,
                                             IDataAccessModelSecurityProvider pSecuProvider,
                                             boolean pOnlyPartialScopes)
REturns the list of row scopes to check (with an AND) for read privilege for a given attribute

Parameters:
pManyToOneNodePath -
pViewAttribute -
pSecuProvider -
pOnlyPartialScopes -
Returns:

buildCondition

public static String buildCondition(Set<RowScope> pRowScopes)
Build a SemQL security Condition to apply for a Set of RowScopes

Parameters:
pRowScopes - partial row scopes
Returns:

buildAttributeExpression

public static String buildAttributeExpression(List<IManyToOneNode> pathsToCurrentView,
                                              IViewAttribute<? extends IAttribute> pAttribute)

toCharAttributeExpression

public static String toCharAttributeExpression(SemQLViewAttribute pDataAccessAttr)

toCharAttributeExpression

public static String toCharAttributeExpression(IViewAttribute<? extends IAttribute> pViewAttribute)

getRootView

public static IView getRootView(ISemQLDataAccessAttr pDataAccessAttr)
Get the Root view on which the attribute was expressed.

Parameters:
pDataAccessAttr -
Returns:


Copyright © 2015. All Rights Reserved.