ccc.commands
Class UpdateResourceMetadataCommand

java.lang.Object
  extended by ccc.commands.UpdateResourceMetadataCommand

public class UpdateResourceMetadataCommand
extends java.lang.Object

Command: update resource metadata.

Author:
Civic Computing Ltd.

Constructor Summary
UpdateResourceMetadataCommand(IRepositoryFactory repoFactory)
          Constructor.
 
Method Summary
 void execute(UserEntity actor, java.util.Date happenedOn, java.util.UUID id, 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)
          Update metadata of the resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateResourceMetadataCommand

public UpdateResourceMetadataCommand(IRepositoryFactory repoFactory)
Constructor.

Parameters:
repoFactory - The repository factory for this command.
Method Detail

execute

public void execute(UserEntity actor,
                    java.util.Date happenedOn,
                    java.util.UUID id,
                    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)
Update metadata of the resource.

Parameters:
id - The resource to update.
metadata - The new metadata to set.
actor - The user who performed the command.
happenedOn - When the command was performed.
title - The new title for the resource.
description - The new description for the resource.
tags - The new tags for the resource.


Copyright © 2010. All Rights Reserved.