|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.semarchy.mdm.runtime.semql.dataaccess.SemQLDataAccessUtils
public final class SemQLDataAccessUtils
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 |
---|
public static void assertReadAuthorized(com.semarchy.platform.language.semql.ParsingResult<?> parseResult, IDataAccessModelSecurityProvider pSecuProvider)
parseResult
- pSecuProvider
- public static boolean isReadAuthroized(com.semarchy.platform.language.semql.ParsingResult<?> parseResult, IDataAccessModelSecurityProvider pSecuProvider)
parseResult
- pSecuProvider
- public static Set<RowScope> getReadRowScopes(com.semarchy.platform.language.semql.ParsingResult<?> parseResult, IDataAccessModelSecurityProvider pSecuProvider, boolean pOnlyPartialScopes)
public static Set<RowScope> getReadRowScopes(SemQLViewAttribute semQLViewAttr, IDataAccessModelSecurityProvider pSecuProvider, boolean pOnlyPartialScopes)
pManyToOneNodePath
- pViewAttribute
- pSecuProvider
- pOnlyPartialScopes
-
public static String buildCondition(Set<RowScope> pRowScopes)
pRowScopes
- partial row scopes
public static String buildAttributeExpression(List<IManyToOneNode> pathsToCurrentView, IViewAttribute<? extends IAttribute> pAttribute)
public static String toCharAttributeExpression(SemQLViewAttribute pDataAccessAttr)
public static String toCharAttributeExpression(IViewAttribute<? extends IAttribute> pViewAttribute)
public static IView getRootView(ISemQLDataAccessAttr pDataAccessAttr)
pDataAccessAttr
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |