/*
* oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2014, Gluu
*/
package org.xdi.oxauth.model.uma;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import org.jboss.resteasy.annotations.providers.jaxb.IgnoreMediaTypes;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Resource set that needs protection by registering a resource set description
* at the AM.
*
* @author Yuriy Movchan
* @author Yuriy Zabrovarnyy
* Date: 10/04/2012
*/
@IgnoreMediaTypes("application/*+json") // try to ignore jettison as it's recommended here: http://docs.jboss.org/resteasy/docs/2.3.4.Final/userguide/html/json.html
@JsonPropertyOrder({ "_id", "_rev", "name", "iconUri", "scopes" })
@XmlRootElement
public class ResourceSetWithId extends ResourceSet {
private String id;
@JsonProperty(value = "_id")
@XmlElement(name = "_id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public String toString() {
return "ResourceSetWithId [id=" + id
+ ", toString()=" + super.toString() + "]";
}
}