Examples of RepresentationType


Examples of org.apache.isis.viewer.json.applib.RepresentationType

    protected void addLinkFor(final MutatorSpec mutatorSpec) {
        if (!hasMemberFacet(mutatorSpec.mutatorFacetType)) {
            return;
        }
        final JsonRepresentation arguments = mutatorArgs(mutatorSpec);
        final RepresentationType representationType = memberType.getRepresentationType();
        final JsonRepresentation mutatorLink = linkToForMutatorInvoke().memberBuilder(mutatorSpec.rel, memberType, objectMember, representationType, mutatorSpec.suffix).withHttpMethod(mutatorSpec.httpMethod).withArguments(arguments).build();
        getLinks().arrayAdd(mutatorLink);
    }
View Full Code Here

Examples of org.apache.isis.viewer.json.applib.RepresentationType

    @Override
    @GET
    @Path("/")
    @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_TYPE_LIST })
    public Response domainTypes() {
        final RepresentationType representationType = RepresentationType.TYPE_LIST;
        init(representationType);

        final Collection<ObjectSpecification> allSpecifications = getSpecificationLoader().allSpecifications();

        final RendererFactory rendererFactory = rendererFactoryRegistry.find(representationType);
View Full Code Here

Examples of org.apache.isis.viewer.json.applib.RepresentationType

    @GET
    @Path("/{domainType}")
    @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_DOMAIN_TYPE })
    public Response domainType(@PathParam("domainType") final String domainType) {

        final RepresentationType representationType = RepresentationType.DOMAIN_TYPE;
        init(representationType);

        final ObjectSpecification objectSpec = getSpecificationLoader().loadSpecification(domainType);

        final RendererFactory rendererFactory = rendererFactoryRegistry.find(representationType);
View Full Code Here

Examples of org.apache.isis.viewer.json.applib.RepresentationType

    @Override
    @GET
    @Path("/{domainType}/properties/{propertyId}")
    @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_PROPERTY_DESCRIPTION })
    public Response typeProperty(@PathParam("domainType") final String domainType, @PathParam("propertyId") final String propertyId) {
        final RepresentationType representationType = RepresentationType.PROPERTY_DESCRIPTION;
        init(representationType);

        final ObjectSpecification parentSpec = getSpecificationLoader().loadSpecification(domainType);
        if (parentSpec == null) {
            throw JsonApplicationException.create(HttpStatusCode.NOT_FOUND);
View Full Code Here

Examples of org.apache.isis.viewer.json.applib.RepresentationType

    @Override
    @GET
    @Path("/{domainType}/collections/{collectionId}")
    @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_COLLECTION_DESCRIPTION })
    public Response typeCollection(@PathParam("domainType") final String domainType, @PathParam("collectionId") final String collectionId) {
        final RepresentationType representationType = RepresentationType.COLLECTION_DESCRIPTION;
        init(representationType);

        final ObjectSpecification parentSpec = getSpecificationLoader().loadSpecification(domainType);
        if (parentSpec == null) {
            throw JsonApplicationException.create(HttpStatusCode.NOT_FOUND);
View Full Code Here

Examples of org.apache.isis.viewer.json.applib.RepresentationType

    @Override
    @GET
    @Path("/{domainType}/actions/{actionId}")
    @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_ACTION_DESCRIPTION })
    public Response typeAction(@PathParam("domainType") final String domainType, @PathParam("actionId") final String actionId) {
        final RepresentationType representationType = RepresentationType.ACTION_DESCRIPTION;
        init(representationType);

        final ObjectSpecification parentSpec = getSpecificationLoader().loadSpecification(domainType);
        if (parentSpec == null) {
            throw JsonApplicationException.create(HttpStatusCode.NOT_FOUND);
View Full Code Here

Examples of org.apache.isis.viewer.json.applib.RepresentationType

    @Override
    @GET
    @Path("/{domainType}/actions/{actionId}/params/{paramName}")
    @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_ACTION_PARAMETER_DESCRIPTION })
    public Response typeActionParam(@PathParam("domainType") final String domainType, @PathParam("actionId") final String actionId, @PathParam("paramName") final String paramName) {
        final RepresentationType representationType = RepresentationType.ACTION_PARAMETER_DESCRIPTION;
        init(representationType);

        final ObjectSpecification parentSpec = getSpecificationLoader().loadSpecification(domainType);
        if (parentSpec == null) {
            throw JsonApplicationException.create(HttpStatusCode.NOT_FOUND);
View Full Code Here

Examples of org.apache.isis.viewer.json.applib.RepresentationType

    public Response domainTypeIsSubtypeOf(@PathParam("domainType") final String domainType, @QueryParam("supertype") final String superTypeStr, // simple
                                                                                                                                                // style
            @QueryParam("args") final String args // formal style
    ) {

        final RepresentationType representationType = RepresentationType.TYPE_ACTION_RESULT;
        init();

        final String supertype = domainTypeFor(superTypeStr, args, "supertype");

        final ObjectSpecification domainTypeSpec = getSpecificationLoader().loadSpecification(domainType);
View Full Code Here

Examples of org.apache.isis.viewer.json.applib.RepresentationType

    public Response domainTypeIsSupertypeOf(@PathParam("domainType") final String domainType, @QueryParam("subtype") final String subTypeStr, // simple
                                                                                                                                              // style
            @QueryParam("args") final String args // formal style
    ) {

        final RepresentationType representationType = RepresentationType.TYPE_ACTION_RESULT;
        init();

        final String subtype = domainTypeFor(subTypeStr, args, "subtype");

        final ObjectSpecification domainTypeSpec = getSpecificationLoader().loadSpecification(domainType);
View Full Code Here

Examples of org.apache.isis.viewer.json.applib.RepresentationType

    @Path("/{domainType}/typeactions/newTransientInstance/invoke")
    @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_TYPE_ACTION_RESULT, RestfulMediaType.APPLICATION_JSON_ERROR })
    @ClientResponseType(entityType = String.class)
    public Response newTransientInstance(@PathParam("domainType") final String domainTypeStr, @QueryParam("args") final String args) {

        final RepresentationType representationType = RepresentationType.TYPE_ACTION_RESULT;
        init(representationType);

        final String domainType = domainTypeFor(domainTypeStr, args, "domainType");

        final ObjectSpecification domainTypeSpec = getSpecificationLoader().loadSpecification(domainType);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.