X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fauthorization%2FResourceGroup.java;fp=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fauthorization%2FResourceGroup.java;h=0000000000000000000000000000000000000000;hb=42c32160bfd41de57189bb246fec5ffb48ed8e9e;hp=5a2a17f6cf45b18604ce305d2e11fba276b18e33;hpb=edf5bfcee83c750853253ccfd991ba7000f5f65b;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/authorization/ResourceGroup.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/authorization/ResourceGroup.java deleted file mode 100644 index 5a2a17f6cf..0000000000 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/authorization/ResourceGroup.java +++ /dev/null @@ -1,80 +0,0 @@ - -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ - -package org.opendaylight.controller.sal.authorization; - -import java.io.Serializable; - -/** - * Represents a group of resources along with the privilege associated to it - * - * - * - */ -public class ResourceGroup implements Serializable { - private static final long serialVersionUID = 1L; - private String groupName; // the resource group name - private Privilege privilege; // the privilege for this profile on the resource group - - public ResourceGroup(String groupName, Privilege privilege) { - this.groupName = groupName; - this.privilege = privilege; - } - - /** - * Returns the name for this resource group - * @return - */ - public String getGroupName() { - return groupName; - } - - /** - * Returns the privilege for this group on its resources - * @return - */ - public Privilege getPrivilege() { - return privilege; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result - + ((groupName == null) ? 0 : groupName.hashCode()); - result = prime * result - + ((privilege == null) ? 0 : privilege.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - ResourceGroup other = (ResourceGroup) obj; - if (groupName == null) { - if (other.groupName != null) - return false; - } else if (!groupName.equals(other.groupName)) - return false; - if (privilege != other.privilege) - return false; - return true; - } - - @Override - public String toString() { - return "[" + groupName + ", " + privilege.toString() + "]"; - } -}