ccc.rest.extensions
Interface ResourcesExt

All Superinterfaces:
ActionExecutor
All Known Implementing Classes:
ResourcesEJB

Deprecated.

@Deprecated
public interface ResourcesExt
extends ActionExecutor

Command API, used to update data in CCC.

Author:
Civic Computing Ltd.

Method Summary
 void createWorkingCopy(java.util.UUID resourceId, long index)
          Deprecated. Create a working copy for the specified resource, using the specified log entry.
 void includeInMainMenu(java.util.UUID resourceId, boolean include)
          Deprecated. Specify whether a resource should be included in a site's main menu.
 void updateCacheDuration(java.util.UUID resourceId, Duration duration)
          Deprecated. Update the period that a resource should be cached for.
 void updateMetadata(java.util.UUID resourceId, java.lang.String title, java.lang.String description, java.util.Set<java.lang.String> tags, java.util.Map<java.lang.String,java.lang.String> metadata)
          Deprecated. Update metadata of the resource.
 void updateResourceTemplate(java.util.UUID resourceId, java.util.UUID templateId)
          Deprecated. Update the specified resource's template on the server.
 
Methods inherited from interface ccc.rest.extensions.ActionExecutor
executeAction
 

Method Detail

updateResourceTemplate

void updateResourceTemplate(java.util.UUID resourceId,
                            java.util.UUID templateId)
Deprecated. 
Update the specified resource's template on the server.

Parameters:
resourceId - The id of the resource to update.
templateId - The new template to set for the resource.

includeInMainMenu

void includeInMainMenu(java.util.UUID resourceId,
                       boolean include)
Deprecated. 
Specify whether a resource should be included in a site's main menu.

Parameters:
resourceId - The id of the resource to update.
include - True if the resource should be included, false otherwise.

updateMetadata

void updateMetadata(java.util.UUID resourceId,
                    java.lang.String title,
                    java.lang.String description,
                    java.util.Set<java.lang.String> tags,
                    java.util.Map<java.lang.String,java.lang.String> metadata)
Deprecated. 
Update metadata of the resource.

Parameters:
resourceId - The id of the resource to update.
title - The new title to set.
description - The new description to set.
tags - The new tags to set.
metadata - The metadata to update.

createWorkingCopy

void createWorkingCopy(java.util.UUID resourceId,
                       long index)
Deprecated. 
Create a working copy for the specified resource, using the specified log entry.

Parameters:
resourceId - The id of the resource.
index - The index number of the log entry.

updateCacheDuration

void updateCacheDuration(java.util.UUID resourceId,
                         Duration duration)
Deprecated. 
Update the period that a resource should be cached for.

Parameters:
resourceId - The resource to update.
duration - The cache duration.


Copyright © 2010. All Rights Reserved.