Package org.dspace.qaevent.security
Interface QASecurity
- All Known Implementing Classes:
AdministratorsOnlyQASecurity,UserBasedFilterQASecurity
public interface QASecurity
The QASecurity interface defines methods for implementing security strategies
related to Quality Assurance (QA) events. Classes implementing this interface should
provide logic to filter and determine visibility of QA events based on the user's permissions.
- Author:
- Andrea Bollini (andrea.bollini at 4science.com)
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanSeeQAEvent(Context context, EPerson user, QAEvent qaEvent) Returntrueit the user is potentially allowed to see events in the qasource that adopt this security strategybooleancanSeeQASource(Context context, EPerson user) Returntrueit the user is potentially allowed to see events in the qasource that adopt this security strategygenerateFilterQuery(Context context, EPerson user) Return a SOLR queries that can be applied querying the qaevent SOLR core to retrieve only the qaevents visible to the provided user
-
Method Details
-
generateFilterQuery
Return a SOLR queries that can be applied querying the qaevent SOLR core to retrieve only the qaevents visible to the provided user- Parameters:
context- the DSpace contextuser- the user to consider to restrict the visible qaevents- Returns:
- the SOLR filter query to apply
-
canSeeQASource
Returntrueit the user is potentially allowed to see events in the qasource that adopt this security strategy- Parameters:
context- the DSpace contextuser- the user to consider to restrict the visible qaevents- Returns:
trueif the user can eventually see some qaevents
-
canSeeQAEvent
Returntrueit the user is potentially allowed to see events in the qasource that adopt this security strategy- Parameters:
context- the DSpace contextuser- the user to consider to restrict the visible qaevents- Returns:
trueif the user can see the provided qaEvent
-