
org.xlcloud.service.ResourceRestriction Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2012 AMG.lab, a Bull Group Company
*
* Licensed 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.xlcloud.service;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
*
* @author Andrzej Stasiak, AMG.net
*
*/
@XmlAccessorType( XmlAccessType.FIELD )
@XmlType(name = "", propOrder = {"resource", "action"})
@XmlRootElement( name = "resourceRestriction" )
public class ResourceRestriction implements Serializable {
/**
* TODO Documentation serialVersionUID
*/
private static final long serialVersionUID = -2967280324284075365L;
private String resource;
private List action;
/**
* @return the resource
*/
public String getResource() {
return resource;
}
/**
* @param resource the resource to set
*/
public void setResource(String resource) {
this.resource = resource;
}
/**
* @return the action
*/
public List getAction() {
if(action == null) {
action = new ArrayList<>();
}
return action;
}
/**
* @param action the action to set
*/
public void setAction(List action) {
this.action = action;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy