org.springframework.roo.addon.surf.site
Class SiteOperations
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
-
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 namerootPageId
- Root page id.
Copyright © 2009 SpringSource, Inc. All Rights Reserved.