org.springframework.roo.addon.surf
Class SurfCommands

java.lang.Object
  extended by org.springframework.roo.addon.surf.SurfCommands
All Implemented Interfaces:
org.springframework.roo.shell.CommandMarker

public class SurfCommands
extends Object
implements org.springframework.roo.shell.CommandMarker

Commands for the 'install surf' add-on to be used by the ROO shell.

Since:
1.0
Author:
Yong Qu

Constructor Summary
SurfCommands(SurfOperations surfOperations)
           
 
Method Summary
 void installSurf(String siteName)
          Installs all required Surf artifacts.
 void installSurfPackage(String packageName)
          Installs an addon into the Surf project.
 boolean isInstallSurfAddonAvailable()
          Checks availability of the "surf addon install" command.
 boolean isInstallSurfAvailable()
          Checks availability of the "surf install" command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurfCommands

public SurfCommands(SurfOperations surfOperations)
Method Detail

isInstallSurfAvailable

public boolean isInstallSurfAvailable()
Checks availability of the "surf install" command.

Returns:
true if the "surf install" command is available at this moment.

isInstallSurfAddonAvailable

public boolean isInstallSurfAddonAvailable()
Checks availability of the "surf addon install" command.

Returns:
true if the "surf addon install" command is available at this moment.

installSurf

public void installSurf(String siteName)
Installs all required Surf artifacts.

Parameters:
siteName - Site name for the new Surf project (last segment of package name used as default).

installSurfPackage

public void installSurfPackage(String packageName)
Installs an addon into the Surf project.

Parameters:
packageName - Addon package name.


Copyright © 2009 SpringSource, Inc. All Rights Reserved.