JsonResourceAttributeMixin.java revision 41c1067de1a5fa74255d311e5362548ae41f9a04
6f3e57ac9d0b054c3169579f3422080b8ba10105mx/*
47693af92e50a1ad81825eb01b7157a211269613mx * Copyright 2014 ForgeRock, AS.
47693af92e50a1ad81825eb01b7157a211269613mx *
47693af92e50a1ad81825eb01b7157a211269613mx * The contents of this file are subject to the terms of the Common Development and
47693af92e50a1ad81825eb01b7157a211269613mx * Distribution License (the License). You may not use this file except in compliance with the
47693af92e50a1ad81825eb01b7157a211269613mx * License.
47693af92e50a1ad81825eb01b7157a211269613mx *
47693af92e50a1ad81825eb01b7157a211269613mx * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
47693af92e50a1ad81825eb01b7157a211269613mx * specific language governing permission and limitations under the License.
47693af92e50a1ad81825eb01b7157a211269613mx *
47693af92e50a1ad81825eb01b7157a211269613mx * When distributing Covered Software, include this CDDL Header Notice in each file and include
47693af92e50a1ad81825eb01b7157a211269613mx * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
47693af92e50a1ad81825eb01b7157a211269613mx * Header, with the fields enclosed by brackets [] replaced by your own identifying
47693af92e50a1ad81825eb01b7157a211269613mx * information: "Portions copyright [year] [name of copyright owner]".
47693af92e50a1ad81825eb01b7157a211269613mx */
47693af92e50a1ad81825eb01b7157a211269613mx
47693af92e50a1ad81825eb01b7157a211269613mxpackage org.forgerock.openam.forgerockrest.entitlements.model.json;
47693af92e50a1ad81825eb01b7157a211269613mx
47693af92e50a1ad81825eb01b7157a211269613mximport org.codehaus.jackson.annotate.JsonIgnore;
6f3e57ac9d0b054c3169579f3422080b8ba10105mximport org.codehaus.jackson.annotate.JsonTypeInfo;
6f3e57ac9d0b054c3169579f3422080b8ba10105mximport org.codehaus.jackson.map.annotate.JsonTypeIdResolver;
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
d635b452b5b58e50f0c67983f4a57a04deefce77Winson Wang - Sun Microsystems - Beijing China/**
47693af92e50a1ad81825eb01b7157a211269613mx * JSON data binding mixin for {@link com.sun.identity.entitlement.ResourceAttribute} instances.
6f3e57ac9d0b054c3169579f3422080b8ba10105mx *
6f3e57ac9d0b054c3169579f3422080b8ba10105mx * @since 12.0.0
6f3e57ac9d0b054c3169579f3422080b8ba10105mx */
51fc88a818087605a0e5f11eddb8b66576f72c23Winson Wang - Sun Microsystems - Beijing China@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, include = JsonTypeInfo.As.PROPERTY, property = "type")
51fc88a818087605a0e5f11eddb8b66576f72c23Winson Wang - Sun Microsystems - Beijing China@JsonTypeIdResolver(ResourceAttributeTypeIdResolver.class)
6f3e57ac9d0b054c3169579f3422080b8ba10105mxpublic abstract class JsonResourceAttributeMixin {
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mx @JsonIgnore
6f3e57ac9d0b054c3169579f3422080b8ba10105mx public abstract String getState();
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mx @JsonIgnore
6f3e57ac9d0b054c3169579f3422080b8ba10105mx public abstract String getPResponseProviderName();
6f3e57ac9d0b054c3169579f3422080b8ba10105mx}
6f3e57ac9d0b054c3169579f3422080b8ba10105mx