com.atlassian.jira.sharing.type
Class GroupShareTypeValidator
java.lang.Object
com.atlassian.jira.sharing.type.GroupShareTypeValidator
- All Implemented Interfaces:
- ShareTypeValidator
public class GroupShareTypeValidator
- extends Object
- implements ShareTypeValidator
A validator for the GroupShareType
.
- Since:
- v3.13
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupShareTypeValidator
public GroupShareTypeValidator(PermissionManager permissionManager,
GroupManager groupManager)
checkSharePermission
public boolean checkSharePermission(JiraServiceContext ctx,
SharePermission permission)
- Description copied from interface:
ShareTypeValidator
- Checks if the passed SharePermission is valid for the associated ShareType.
- Specified by:
checkSharePermission
in interface ShareTypeValidator
- Parameters:
ctx
- Context containing the user that is to store the SharePermission, the i18n bean and an ErrorCollection
permission
- the SharePermission to check.
- Returns:
- true if the permission is valid or false otherwise.
checkSearchParameter
public boolean checkSearchParameter(JiraServiceContext ctx,
ShareTypeSearchParameter searchParameter)
- Description copied from interface:
ShareTypeValidator
- Check to see if the passed SearchParameter is valid for the ShareType.
- Specified by:
checkSearchParameter
in interface ShareTypeValidator
- Parameters:
ctx
- Context containing the user that is to store the SharePermission, the i18n bean and an ErrorCollection
searchParameter
- the parameter is check.
- Returns:
- true if the parameter is valid or false otherwise.
Copyright © 2002-2014 Atlassian. All Rights Reserved.