public class JiraGroupRules
extends java.lang.Object
| Constructor and Description |
|---|
JiraGroupRules() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
verifyReadAccess(org.opendof.tools.repository.interfaces.core.AuthenticatedUser authUser,
org.opendof.tools.repository.interfaces.da.InterfaceData interfaceData,
boolean userGroupOnly)
Verify Read Access.
|
public static boolean verifyReadAccess(org.opendof.tools.repository.interfaces.core.AuthenticatedUser authUser,
org.opendof.tools.repository.interfaces.da.InterfaceData interfaceData,
boolean userGroupOnly)
Read access is based on the following groups:
CoreController.UserGroupOnlyKey
set to true.
If the interface is in the user group it will only be added to the list if the requesting submitter is authenticated.
If the interface is in a submitter created custom group it will only be added to the list if the request submitter is a member of that custom group.
if the interface is not one of the two constant groups or a custom group then the interface will only be added to the list if the request submitter matches the interface's submitter.
authUser - the authenticated user.interfaceData - the interface data.userGroupOnly - filters on groups only.