private final RestApiScopeHelper restApiScopeHelper;
protected JiraScope(String key, Collection<String> methods, Collection<RestApiScopeHelper.RestScope> resources)
{
super(key, ImmutableSet.of(InstallationMode.LOCAL, REMOTE));
this.soapScopeHelper = new RpcEncodedSoapApiScopeHelper("/rpc/soap/jirasoapservice-v2", "http://soap.rpc.jira.atlassian.com", checkNotNull(methods));
this.jsonRpcScopeHelper = new JsonRpcApiScopeHelper("/rpc/json-rpc/jirasoapservice-v2", methods);
this.restApiScopeHelper = new RestApiScopeHelper(checkNotNull(resources));
this.apiResourceInfo = concat(soapScopeHelper.getApiResourceInfos(), jsonRpcScopeHelper.getApiResourceInfos(), restApiScopeHelper.getApiResourceInfos());
}