当前位置: 首页>>代码示例>>Java>>正文


Java Status.STATUS_ACCEPTED属性代码示例

本文整理汇总了Java中org.springframework.extensions.webscripts.Status.STATUS_ACCEPTED属性的典型用法代码示例。如果您正苦于以下问题:Java Status.STATUS_ACCEPTED属性的具体用法?Java Status.STATUS_ACCEPTED怎么用?Java Status.STATUS_ACCEPTED使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.springframework.extensions.webscripts.Status的用法示例。


在下文中一共展示了Status.STATUS_ACCEPTED属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: create

@WebApiDescription(title = "Create rendition", successStatus = Status.STATUS_ACCEPTED)
@Override
public List<Rendition> create(String nodeId, List<Rendition> entity, Parameters parameters)
{
    // Temporary - pending future improvements to thumbnail service to minimise chance of
    // missing/failed thumbnails (when requested/generated 'concurrently')
    if (entity.size() > 1)
    {
        throw new InvalidArgumentException("Please specify one rendition entity id only");
    }

    for (Rendition rendition : entity)
    {
        renditions.createRendition(nodeId, rendition, parameters);
    }
    return null;
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:17,代码来源:NodeRenditionsRelation.java

示例2: create

@WebApiDescription(title = "Execute action", successStatus = Status.STATUS_ACCEPTED)
@Override
public List<Action> create(List<Action> entity, Parameters parameters)
{
    if (entity == null || entity.size() != 1)
    {
        throw new InvalidArgumentException("Please specify one action request only.");
    }

    List<Action> result = new ArrayList<>(1);
    result.add(actions.executeAction(entity.get(0), parameters));
    return result;
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:13,代码来源:ActionExecutionsEntityResource.java

示例3: readAll

@Override
@WebApiDescription(title = "Gets all the Sheep", successStatus = Status.STATUS_ACCEPTED)
@WebApiParameters({
            @WebApiParam(name = "siteId", title = "Site id", description="What ever."),
            @WebApiParam(name = "who", title = "Who", kind=ResourceParameter.KIND.HTTP_HEADER),
            @WebApiParam(name = "body", title = "aintnobody", kind=ResourceParameter.KIND.HTTP_BODY_OBJECT),
            @WebApiParam(name = "requiredParam", title = "",required=true, kind=ResourceParameter.KIND.QUERY_STRING)})
public CollectionWithPagingInfo<Sheep> readAll(Parameters params)
{
    return CollectionWithPagingInfo.asPagedCollection(new Sheep("paged"));
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:11,代码来源:SheepEntityResource.java

示例4: email

@Operation("email")
@WebApiDescription(title = "Email shared link", successStatus = Status.STATUS_ACCEPTED)
public void email(String sharedId, QuickShareLinkEmailRequest emailRequest, Parameters parameters, WithResponse response)
{
    quickShareLinks.emailSharedLink(sharedId, emailRequest, parameters);
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:6,代码来源:QuickShareLinkEntityResource.java

示例5: growTheLawn

@Operation("grow")
@WebApiDescription(title = "Grow the grass",successStatus = Status.STATUS_ACCEPTED)
@WebApiParam(name = "Grass", title = "The grass.",required=true, kind = ResourceParameter.KIND.HTTP_BODY_OBJECT)
public String growTheLawn(String id, Grass grass, Parameters parameters, WithResponse withResponse) {
    return "Growing well";
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:6,代码来源:GrassEntityResource.java

示例6: readAll

@Override
@WebApiDescription(title = "Gets all the Sheep", successStatus = Status.STATUS_ACCEPTED)
public CollectionWithPagingInfo<Sheep> readAll(Parameters params)
{
    throw new RuntimeException("read all");
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:6,代码来源:BadEntityResource.java

示例7: create

@Override
@WebApiDescription(title = "Creates a multipart", successStatus = Status.STATUS_ACCEPTED)
public MultiPartTestResponse create(FormData formData, Parameters parameters, WithResponse withResponse)
{
    return new MultiPartTestResponse(formData.getParameters().get("name")[0]);
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:6,代码来源:MultiPartTestEntityResource.java


注:本文中的org.springframework.extensions.webscripts.Status.STATUS_ACCEPTED属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。