org.squashtest.csp.tm.internal.service
Class DataFilteringServiceImpl
java.lang.Object
org.squashtest.csp.tm.internal.service.DataFilteringServiceImpl
- All Implemented Interfaces:
- DataFilteringService
@Service(value="squashtest.tm.service.DataFilteringService")
public class DataFilteringServiceImpl
- extends Object
- implements DataFilteringService
|
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. |
void |
setPermissionEvaluationService(org.squashtest.csp.core.service.security.PermissionEvaluationService service)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataFilteringServiceImpl
public DataFilteringServiceImpl()
setPermissionEvaluationService
@ServiceReference
public void setPermissionEvaluationService(org.squashtest.csp.core.service.security.PermissionEvaluationService service)
isFullyAllowed
public boolean isFullyAllowed(Object object)
- Description copied from interface:
DataFilteringService
- 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.
- Specified by:
isFullyAllowed in interface DataFilteringService
- Parameters:
object - to check
- Returns:
- true if all system and user checks are successful.
hasReadPermissions
public boolean hasReadPermissions(Object object)
- Description copied from interface:
DataFilteringService
- That method will tell if the security system allows such object to be shipped to the end user.
- Specified by:
hasReadPermissions in interface DataFilteringService
- Parameters:
object - the object to check.
- Returns:
- true if the used is allowed to read that object.
isAllowedByUser
public boolean isAllowedByUser(ProjectResource object)
- Description copied from interface:
DataFilteringService
- That method will tell if the user actually wants that data, or if he discards it.
- Specified by:
isAllowedByUser in interface DataFilteringService
- 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.