ccc.commands
Class IncludeInMainMenuCommand

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

public class IncludeInMainMenuCommand
extends java.lang.Object

Command: include/exclude a resource in the main menu.

Author:
Civic Computing Ltd.

Constructor Summary
IncludeInMainMenuCommand(IRepositoryFactory repoFactory)
          Constructor.
IncludeInMainMenuCommand(ResourceRepository repository, LogEntryRepository audit)
          Constructor.
 
Method Summary
 void execute(UserEntity actor, java.util.Date happenedOn, java.util.UUID id, boolean b)
          Specify whether this resource should be included in the main menu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncludeInMainMenuCommand

public IncludeInMainMenuCommand(IRepositoryFactory repoFactory)
Constructor.

Parameters:
repoFactory - The repository factory for this command.

IncludeInMainMenuCommand

public IncludeInMainMenuCommand(ResourceRepository repository,
                                LogEntryRepository audit)
Constructor.

Parameters:
repository - The resource repository.
audit - The audit log repository.
Method Detail

execute

public void execute(UserEntity actor,
                    java.util.Date happenedOn,
                    java.util.UUID id,
                    boolean b)
Specify whether this resource should be included in the main menu.

Parameters:
id - The id of the resource to change.
b - True if the resource should be included; false otherwise.
actor - The user who performed the command.
happenedOn - When the command was performed.


Copyright © 2010. All Rights Reserved.