org.springframework.roo.addon.surf.content
Class ContentOperations

java.lang.Object
  extended by org.springframework.roo.addon.surf.content.ContentOperations

public class ContentOperations
extends Object

Provides Surf Content operations.

Since:
1.0
Author:
Yong Qu

Constructor Summary
ContentOperations(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
 void createContentAssociation(String id, String contentTypeName, String desName, String type)
          Creates a new Surf content association.
 boolean isNewContentAssociationAvailable()
          Checks if a new Surf content association can be added.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentOperations

public ContentOperations(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

isNewContentAssociationAvailable

public boolean isNewContentAssociationAvailable()
Checks if a new Surf content association can be added.

Returns:
true if a new Surf page can be added.

createContentAssociation

public void createContentAssociation(String id,
                                     String contentTypeName,
                                     String desName,
                                     String type)
Creates a new Surf content association.

Parameters:
id - Association id.
contentTypeName - Content type.
desName - Page or component id.
type - Association type.


Copyright © 2009 SpringSource, Inc. All Rights Reserved.