001package org.apache.archiva.redback.integration.model;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 * http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022/**
023 * SimplePermission - this is a placeholder for information passed back
024 * and forth between the Action and the Client.
025 *
026 * We intentionally do not hook up the actual object to prevent
027 * creative injection of fields and values by the untrusted client.
028 *
029 * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
030 *
031 */
032public class SimplePermission
033{
034    private String name;
035
036    private String operationName;
037
038    private String resourceIdentifier;
039
040    public String getName()
041    {
042        return name;
043    }
044
045    public void setName( String name )
046    {
047        this.name = name;
048    }
049
050    public String getOperationName()
051    {
052        return operationName;
053    }
054
055    public void setOperationName( String operationName )
056    {
057        this.operationName = operationName;
058    }
059
060    public String getResourceIdentifier()
061    {
062        return resourceIdentifier;
063    }
064
065    public void setResourceIdentifier( String resourceIdentifier )
066    {
067        this.resourceIdentifier = resourceIdentifier;
068    }
069}