All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.inteligr8.alfresco.activiti.api.ShareApi Maven / Gradle / Ivy

/*
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see .
 */
package com.inteligr8.alfresco.activiti.api;

import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.PUT;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;

import com.inteligr8.activiti.model.ResultList;
import com.inteligr8.alfresco.activiti.model.ShareInfoRequest;
import com.inteligr8.alfresco.activiti.model.SharePermission;

/**
 * This is an undocumented API.
 * 
 * @author [email protected]
 */
@Path("/app/rest/models")
public interface ShareApi {

    @GET
    @Path("/{modelId}/share-info")
    @Produces({ MediaType.APPLICATION_JSON })
    public ResultList getShareInfo(
    		@PathParam("modelId") String modelId);

    @PUT
    @Path("/{modelId}/share-info")
    @Consumes({ MediaType.APPLICATION_JSON })
    public void setShareInfo(
    		@PathParam("modelId") String modelId,
    		ShareInfoRequest request);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy