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

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

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

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

Since:
1.0
Author:
Yong Qu

Constructor Summary
ContentCommands(ContentOperations contentOperations)
           
 
Method Summary
 boolean isNewContentAssociationAvailable()
          Checks availability of the "surf content association create" command.
 void newContentAssociation(String id, String contentTypeName, String desName, String type)
          Creates a new Surf content association.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentCommands

public ContentCommands(ContentOperations contentOperations)
Parameters:
contentOperations -
Method Detail

isNewContentAssociationAvailable

public boolean isNewContentAssociationAvailable()
Checks availability of the "surf content association create" command.

Returns:
true if the "surf content association create" command is available at this moment.

newContentAssociation

public void newContentAssociation(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.