org.squashtest.csp.tm.service
Interface DataFilteringService

All Known Implementing Classes:
DataFilteringServiceImpl

public interface DataFilteringService

Internal user only. Should not be exposed through OSGI. Such service provide a convenient way to apply security-imposed and user-defined filters on various data.

Author:
bsiri

Method Summary
 boolean hasReadPermissions(Object object)
          That method will tell if the security system allows such object to be shipped to the end user.
 boolean isAllowedByUser(ProjectResource object)
          That method will tell if the user actually wants that data, or if he discards it.
 boolean isFullyAllowed(Object object)
          if that interface is modified in the future because of more filtering options, at least you can rely on that one to be always present.
 

Method Detail

isFullyAllowed

boolean isFullyAllowed(Object object)
if that interface is modified in the future because of more filtering options, at least you can rely on that one to be always present. It will basically call all checks and return true if none of them failed.

Parameters:
object - to check
Returns:
true if all system and user checks are successful.

hasReadPermissions

boolean hasReadPermissions(Object object)
That method will tell if the security system allows such object to be shipped to the end user.

Parameters:
object - the object to check.
Returns:
true if the used is allowed to read that object.

isAllowedByUser

boolean isAllowedByUser(ProjectResource object)
That method will tell if the user actually wants that data, or if he discards it.

Parameters:
object - the object to check.
Returns:
true if the user wants the data, false if he filtered it out.


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.