com.semarchy.mdm.runtime.model.security
Class RowScope

java.lang.Object
  extended by 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

Nested Class Summary
static class RowScope.Type
           
 
Field Summary
static RowScope ALL_ROWS
           
static RowScope NO_ROWS
           
 
Method Summary
 boolean authorizedForAllRows()
           
 boolean authorizedForSomeRows()
           
 boolean equals(Object obj)
           
 String getFilter()
          Return the SemQL Filter that represent this RowScope.
 Collection<String> getFilters()
          Provides the detailed collection of filters used to create this RowScope.
 RowScope.Type getLevel()
           
 int hashCode()
           
 boolean isDenied()
           
static RowScope mergeScopesOR(Collection<RowScope> pAttrScopes)
          Merge RowScopes keeping the more permissive combination (using or)
static RowScope partialScope(Set<String> pFilters)
           
static RowScope partialScope(String pFilter)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL_ROWS

public static final RowScope ALL_ROWS

NO_ROWS

public static final RowScope NO_ROWS
Method Detail

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.