From d5fbcafc2ff04e665c2ec8079c759fe4cabf9d1a Mon Sep 17 00:00:00 2001 From: Min Chen Date: Fri, 23 May 2014 14:46:41 -0700 Subject: [PATCH] Convert windows line ending to unix forIAMService.java. --- .../apache/cloudstack/iam/api/IAMService.java | 198 +++++++++--------- 1 file changed, 99 insertions(+), 99 deletions(-) diff --git a/services/iam/server/src/org/apache/cloudstack/iam/api/IAMService.java b/services/iam/server/src/org/apache/cloudstack/iam/api/IAMService.java index 3a470ee677f..29e7c972b7e 100644 --- a/services/iam/server/src/org/apache/cloudstack/iam/api/IAMService.java +++ b/services/iam/server/src/org/apache/cloudstack/iam/api/IAMService.java @@ -1,99 +1,99 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. -package org.apache.cloudstack.iam.api; - -import java.util.List; - -import org.apache.cloudstack.iam.api.IAMPolicyPermission.Permission; - -import com.cloud.utils.Pair; - -public interface IAMService { - - /* IAM group related interfaces */ - IAMGroup createIAMGroup(String iamGroupName, String description, String path); - - boolean deleteIAMGroup(Long iamGroupId); - - List listIAMGroups(long accountId); - - IAMGroup addAccountsToGroup(List acctIds, Long groupId); - - IAMGroup removeAccountsFromGroup(List acctIds, Long groupId); - - List listAccountsByGroup(long groupId); - - Pair, Integer> listIAMGroups(Long iamGroupId, String iamGroupName, String path, Long startIndex, Long pageSize); - - /* IAM Policy related interfaces */ - IAMPolicy createIAMPolicy(String iamPolicyName, String description, Long parentPolicyId, String path); - - boolean deleteIAMPolicy(long iamPolicyId); - - List listIAMPolicies(long accountId); - - List listIAMPoliciesByGroup(long groupId); - - Pair, Integer> listIAMPolicies(Long iamPolicyId, String iamPolicyName, String path, Long startIndex, Long pageSize); - - IAMGroup attachIAMPoliciesToGroup(List policyIds, Long groupId); - - IAMGroup removeIAMPoliciesFromGroup(List policyIds, Long groupId); - - void attachIAMPolicyToAccounts(Long policyId, List acctIds); - - void removeIAMPolicyFromAccounts(Long policyId, List acctIds); - - IAMPolicy addIAMPermissionToIAMPolicy(long iamPolicyId, String entityType, String scope, Long scopeId, - String action, String accessType, Permission perm, Boolean recursive); - - IAMPolicy removeIAMPermissionFromIAMPolicy(long iamPolicyId, String entityType, String scope, Long scopeId, - String action); - - void removeIAMPermissionForEntity(final String entityType, final Long entityId); - - IAMPolicy getResourceGrantPolicy(String entityType, Long entityId, String accessType, String action); - - IAMPolicy getResourceOwnerPolicy(); - - List listPolicyPermissions(long policyId); - - List listPolicyPermissionsByScope(long policyId, String action, String scope, String accessType); - - List listPolicyPermissionByActionAndEntity(long policyId, String action, String entityType); - - boolean isActionAllowedForPolicies(String action, List policies); - - List getGrantedEntities(long accountId, String action, String scope); - - IAMPolicy resetIAMPolicy(long iamPolicyId); - - List listPolicyPermissionByAccessAndEntity(long policyId, String accessType, - String entityType); - - List listParentIAMGroups(long groupId); - - List listRecursiveIAMPoliciesByGroup(long groupId); - - /* Interface used for cache IAM checkAccess result */ - void addToIAMCache(Object accessKey, Object allowDeny); - - Object getFromIAMCache(Object accessKey); - - void invalidateIAMCache(); - -} +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +package org.apache.cloudstack.iam.api; + +import java.util.List; + +import org.apache.cloudstack.iam.api.IAMPolicyPermission.Permission; + +import com.cloud.utils.Pair; + +public interface IAMService { + + /* IAM group related interfaces */ + IAMGroup createIAMGroup(String iamGroupName, String description, String path); + + boolean deleteIAMGroup(Long iamGroupId); + + List listIAMGroups(long accountId); + + IAMGroup addAccountsToGroup(List acctIds, Long groupId); + + IAMGroup removeAccountsFromGroup(List acctIds, Long groupId); + + List listAccountsByGroup(long groupId); + + Pair, Integer> listIAMGroups(Long iamGroupId, String iamGroupName, String path, Long startIndex, Long pageSize); + + /* IAM Policy related interfaces */ + IAMPolicy createIAMPolicy(String iamPolicyName, String description, Long parentPolicyId, String path); + + boolean deleteIAMPolicy(long iamPolicyId); + + List listIAMPolicies(long accountId); + + List listIAMPoliciesByGroup(long groupId); + + Pair, Integer> listIAMPolicies(Long iamPolicyId, String iamPolicyName, String path, Long startIndex, Long pageSize); + + IAMGroup attachIAMPoliciesToGroup(List policyIds, Long groupId); + + IAMGroup removeIAMPoliciesFromGroup(List policyIds, Long groupId); + + void attachIAMPolicyToAccounts(Long policyId, List acctIds); + + void removeIAMPolicyFromAccounts(Long policyId, List acctIds); + + IAMPolicy addIAMPermissionToIAMPolicy(long iamPolicyId, String entityType, String scope, Long scopeId, + String action, String accessType, Permission perm, Boolean recursive); + + IAMPolicy removeIAMPermissionFromIAMPolicy(long iamPolicyId, String entityType, String scope, Long scopeId, + String action); + + void removeIAMPermissionForEntity(final String entityType, final Long entityId); + + IAMPolicy getResourceGrantPolicy(String entityType, Long entityId, String accessType, String action); + + IAMPolicy getResourceOwnerPolicy(); + + List listPolicyPermissions(long policyId); + + List listPolicyPermissionsByScope(long policyId, String action, String scope, String accessType); + + List listPolicyPermissionByActionAndEntity(long policyId, String action, String entityType); + + boolean isActionAllowedForPolicies(String action, List policies); + + List getGrantedEntities(long accountId, String action, String scope); + + IAMPolicy resetIAMPolicy(long iamPolicyId); + + List listPolicyPermissionByAccessAndEntity(long policyId, String accessType, + String entityType); + + List listParentIAMGroups(long groupId); + + List listRecursiveIAMPoliciesByGroup(long groupId); + + /* Interface used for cache IAM checkAccess result */ + void addToIAMCache(Object accessKey, Object allowDeny); + + Object getFromIAMCache(Object accessKey); + + void invalidateIAMCache(); + +}