Skip to content

Commit 14e992e

Browse files
author
Kishan Kavala
committed
CLOUDSTACK-763: Removed unused methods
1 parent 49fbff2 commit 14e992e

3 files changed

Lines changed: 2 additions & 19 deletions

File tree

api/src/com/cloud/network/vpc/NetworkACL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.cloudstack.acl.ControlledEntity;
2121
import org.apache.cloudstack.api.InternalIdentity;
2222

23-
public interface NetworkACL extends InternalIdentity, ControlledEntity{
23+
public interface NetworkACL extends InternalIdentity{
2424
public static final long DEFAULT_DENY = 1;
2525
public static final long DEFAULT_ALLOW = 2;
2626

server/src/com/cloud/network/vpc/NetworkACLServiceImpl.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ public class NetworkACLServiceImpl extends ManagerBase implements NetworkACLServ
7676
@Inject
7777
NetworkACLItemDao _networkACLItemDao;
7878
@Inject
79-
List<NetworkACLServiceProvider> _networkAclElements;
80-
@Inject
8179
NetworkModel _networkModel;
8280
@Inject
8381
NetworkDao _networkDao;
@@ -221,9 +219,6 @@ public NetworkACLItem createNetworkACLItem(CreateNetworkACLCmd aclItemCmd){
221219
}
222220
_accountMgr.checkAccess(caller, null, true, vpc);
223221

224-
Account aclOwner = _accountMgr.getAccount(vpc.getAccountId());
225-
_accountMgr.checkAccess(aclOwner, SecurityChecker.AccessType.ModifyEntry, false, acl);
226-
227222
if(aclItemCmd.getNumber() != null){
228223
if(_networkACLItemDao.findByAclAndNumber(aclId, aclItemCmd.getNumber()) != null){
229224
throw new InvalidParameterValueException("ACL item with number "+aclItemCmd.getNumber()+" already exists in ACL: "+acl.getUuid());
@@ -435,9 +430,6 @@ public NetworkACLItem updateNetworkACLItem(Long id, String protocol, List<String
435430

436431
_accountMgr.checkAccess(caller, null, true, vpc);
437432

438-
Account aclOwner = _accountMgr.getAccount(vpc.getAccountId());
439-
_accountMgr.checkAccess(aclOwner, SecurityChecker.AccessType.ModifyEntry, false, acl);
440-
441433
if(number != null){
442434
//Check if ACL Item with specified number already exists
443435
NetworkACLItemVO aclNumber = _networkACLItemDao.findByAclAndNumber(acl.getId(), number);

server/src/com/cloud/network/vpc/NetworkACLVO.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class NetworkACLVO implements NetworkACL{
4141
@Column(name="description")
4242
private String description;
4343

44-
protected NetworkACLVO(){
44+
public NetworkACLVO(){
4545
}
4646

4747
protected NetworkACLVO(String name, String description, long vpcId){
@@ -76,13 +76,4 @@ public String getName() {
7676
return name;
7777
}
7878

79-
@Override
80-
public long getAccountId() {
81-
return 0; //To change body of implemented methods use File | Settings | File Templates.
82-
}
83-
84-
@Override
85-
public long getDomainId() {
86-
return 0; //To change body of implemented methods use File | Settings | File Templates.
87-
}
8879
}

0 commit comments

Comments
 (0)