org.springframework.roo.addon.surf.site
Class SiteOperations

java.lang.Object
  extended by org.springframework.roo.addon.surf.site.SiteOperations

public class SiteOperations
extends Object

Provides Surf Site operations.

Since:
1.0
Author:
Yong Qu

Constructor Summary
SiteOperations(org.springframework.roo.process.manager.FileManager fileManager, org.springframework.roo.project.PathResolver pathResolver, org.springframework.roo.metadata.MetadataService metadataService, org.springframework.roo.project.ProjectOperations projectOperations)
           
 
Method Summary
 boolean isSiteOperationAvailable()
          Checks if a new site configuration can be created.
 void newSite(String siteName, String rootPageId)
          Creates a new site configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteOperations

public SiteOperations(org.springframework.roo.process.manager.FileManager fileManager,
                      org.springframework.roo.project.PathResolver pathResolver,
                      org.springframework.roo.metadata.MetadataService metadataService,
                      org.springframework.roo.project.ProjectOperations projectOperations)
Parameters:
fileManager -
pathResolver -
metadataService -
projectOperations -
Method Detail

isSiteOperationAvailable

public boolean isSiteOperationAvailable()
Checks if a new site configuration can be created.

Returns:
true if a new site configuration can be created.

newSite

public void newSite(String siteName,
                    String rootPageId)
Creates a new site configuration.

Parameters:
siteName - Site name
rootPageId - Root page id.


Copyright © 2009 SpringSource, Inc. All Rights Reserved.