com.dotmarketing.viewtools
Class CommentsWebAPI

java.lang.Object
  extended by com.dotmarketing.viewtools.CommentsWebAPI
All Implemented Interfaces:
org.apache.velocity.tools.view.tools.ViewTool

public class CommentsWebAPI
extends java.lang.Object
implements org.apache.velocity.tools.view.tools.ViewTool


Nested Class Summary
 class CommentsWebAPI.CommentsComparator
           
 
Field Summary
static java.lang.String commentsVelocityStructureName
           
 
Constructor Summary
CommentsWebAPI()
           
 
Method Summary
 java.util.List<Contentlet> getComments(long inode)
          Deprecated. 
 java.util.List<Contentlet> getComments(java.lang.String inode)
           
 java.util.List<Contentlet> getComments(java.lang.String inode, boolean descendingOrder)
           
 int getCommentsCount(long inode)
          Deprecated. 
 int getCommentsCount(java.lang.String inode)
           
 com.liferay.portal.model.User getUser()
           
 void init(java.lang.Object obj)
           
 boolean isRespectFrontendRoles()
           
 void setRespectFrontendRoles(boolean respectFrontendRoles)
           
 void setUser(com.liferay.portal.model.User user)
           
 void validateComments(Contentlet contentlet)
           
 void validateComments(java.lang.String contentletInode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commentsVelocityStructureName

public static final java.lang.String commentsVelocityStructureName
See Also:
Constant Field Values
Constructor Detail

CommentsWebAPI

public CommentsWebAPI()
Method Detail

init

public void init(java.lang.Object obj)
Specified by:
init in interface org.apache.velocity.tools.view.tools.ViewTool

getComments

@Deprecated
public java.util.List<Contentlet> getComments(long inode)
Deprecated. 


getComments

public java.util.List<Contentlet> getComments(java.lang.String inode,
                                              boolean descendingOrder)

getComments

public java.util.List<Contentlet> getComments(java.lang.String inode)

validateComments

public void validateComments(java.lang.String contentletInode)
                      throws DotSecurityException,
                             DotHibernateException
Throws:
DotSecurityException
DotHibernateException

validateComments

public void validateComments(Contentlet contentlet)
                      throws DotSecurityException,
                             DotHibernateException
Throws:
DotSecurityException
DotHibernateException

getCommentsCount

public int getCommentsCount(java.lang.String inode)

getCommentsCount

@Deprecated
public int getCommentsCount(long inode)
Deprecated. 


getUser

public com.liferay.portal.model.User getUser()

setUser

public void setUser(com.liferay.portal.model.User user)

isRespectFrontendRoles

public boolean isRespectFrontendRoles()

setRespectFrontendRoles

public void setRespectFrontendRoles(boolean respectFrontendRoles)


Copyright © 2013 dotCMS Inc. All Rights Reserved.