/* * RHQ Management Platform * Copyright (C) 2005-2008 Red Hat, Inc. * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ package org.rhq.enterprise.gui.legacy; /** * A class representing an application permission. * * @deprecated */ @Deprecated public class Permission { //-----------------------------------------instance variables // private String name; // private Map<String, OldOperation> operations; // // //-----------------------------------------constructors // // public Permission() { // this(null); // } // // public Permission(String name) { // this.setName(name); // } // // //-----------------------------------------public methods // // public String getName() { // return this.name; // } // // public void setName(String name) { // this.name = name; // } // // public OldOperation getOperation(String name) { // if (this.operations == null) { // return null; // } // // return this.operations.get(name); // } // // public void putOperation(String name, OldOperation operation) { // if (this.operations == null) { // this.operations = new HashMap<String, OldOperation>(); // } // // this.operations.put(name, operation); // } // // public Map getOperations() { // return this.operations; // } // // public void setOperations(Map<String, OldOperation> operations) { // this.operations = operations; // } // // public String toString() { // StringBuffer str = new StringBuffer("{"); // str.append("name=" + getName() + " "); // str.append("operations=" + getOperations() + " "); // str.append("}"); // return(str.toString()); // } }