com.semarchy.mdm.runtime.model.security
Class RowScope
java.lang.Object
com.semarchy.mdm.runtime.model.security.RowScope
- All Implemented Interfaces:
- Serializable
public class RowScope
- extends Object
- implements Serializable
Represent the vertical or Rowlevel condition under which a privilege is granted.
- Author:
- sarod
- See Also:
- Serialized Form
ALL_ROWS
public static final RowScope ALL_ROWS
NO_ROWS
public static final RowScope NO_ROWS
partialScope
public static RowScope partialScope(String pFilter)
partialScope
public static RowScope partialScope(Set<String> pFilters)
getLevel
public RowScope.Type getLevel()
getFilters
public Collection<String> getFilters()
- Provides the detailed collection of filters used to create this RowScope.
getFilter()
is generally the method you want to use if you are
interested in the SemQL filter represented by this RowScope
.
- Returns:
getFilter
public String getFilter()
- Return the SemQL Filter that represent this RowScope.
- Returns:
mergeScopesOR
public static RowScope mergeScopesOR(Collection<RowScope> pAttrScopes)
- Merge RowScopes keeping the more permissive combination (using or)
- Parameters:
pAttrScopes
-
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
isDenied
public boolean isDenied()
authorizedForSomeRows
public boolean authorizedForSomeRows()
authorizedForAllRows
public boolean authorizedForAllRows()
Copyright © 2015. All Rights Reserved.