fr.paris.lutece.plugins.document.modules.comment.business
Class DocumentComment

java.lang.Object
  extended by fr.paris.lutece.plugins.document.modules.comment.business.DocumentComment
All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource

public class DocumentComment
extends java.lang.Object
implements fr.paris.lutece.portal.service.rbac.RBACResource

This class defines the Document Comment business object.


Field Summary
static java.lang.String RESOURCE_TYPE
           
 
Constructor Summary
DocumentComment()
           
 
Method Summary
 java.lang.String getComment()
          Returns the comment
 int getCommentId()
          Returns the identifier of the object
 java.sql.Timestamp getDateComment()
          Returns the date of the comment
 int getDocumentId()
          Returns the identifier of the Document
 java.lang.String getEmail()
          Returns the email of the user
 java.lang.String getIpAddress()
          Returns the IP address of the user
 java.lang.String getName()
          Returns the name of the user
 java.lang.String getResourceId()
          Returns the resource Id of the current object
 java.lang.String getResourceTypeCode()
          Returns the Resource Type Code that identify the resource type
 int getStatus()
          Returns the status of the comment
 void setComment(java.lang.String strComment)
          Sets the comment
 void setCommentId(int nCommentId)
          Sets the identifier of the object
 void setDateComment(java.sql.Timestamp dateComment)
          Sets the date of the comment
 void setDocumentId(int nDocumentId)
          Sets the identifier of the Document
 void setEmail(java.lang.String strEmail)
          Sets the email of the user
 void setIpAddress(java.lang.String strIpAddress)
          Sets the IP address of the user
 void setName(java.lang.String strName)
          Sets the name of the user
 void setStatus(int nStatus)
          Sets the status of the comment
 java.lang.String toString()
          Creates a String representation of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE_TYPE

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

DocumentComment

public DocumentComment()
Method Detail

getDocumentId

public int getDocumentId()
Returns the identifier of the Document

Returns:
The identifier of the Document

setDocumentId

public void setDocumentId(int nDocumentId)
Sets the identifier of the Document

Parameters:
nDocumentId - the new identifier

getDateComment

public java.sql.Timestamp getDateComment()
Returns the date of the comment

Returns:
the date of the comment

setDateComment

public void setDateComment(java.sql.Timestamp dateComment)
Sets the date of the comment

Parameters:
dateComment - the new date

getCommentId

public int getCommentId()
Returns the identifier of the object

Returns:
The identifier of the object

setCommentId

public void setCommentId(int nCommentId)
Sets the identifier of the object

Parameters:
nCommentId - the new identifier

getStatus

public int getStatus()
Returns the status of the comment

Returns:
The status of the comment (0 = unpublished, 1 = published)

setStatus

public void setStatus(int nStatus)
Sets the status of the comment

Parameters:
nStatus - the new status (0 = unpublished, 1 = published)

getComment

public java.lang.String getComment()
Returns the comment

Returns:
the comment

setComment

public void setComment(java.lang.String strComment)
Sets the comment

Parameters:
strComment - the new comment

getEmail

public java.lang.String getEmail()
Returns the email of the user

Returns:
the email of the user

setEmail

public void setEmail(java.lang.String strEmail)
Sets the email of the user

Parameters:
strEmail - the new email

getIpAddress

public java.lang.String getIpAddress()
Returns the IP address of the user

Returns:
the IP address of the user

setIpAddress

public void setIpAddress(java.lang.String strIpAddress)
Sets the IP address of the user

Parameters:
strIpAddress - the new IP address

getName

public java.lang.String getName()
Returns the name of the user

Returns:
the name of the user

setName

public void setName(java.lang.String strName)
Sets the name of the user

Parameters:
strName - the new name

getResourceTypeCode

public java.lang.String getResourceTypeCode()
Returns the Resource Type Code that identify the resource type

Specified by:
getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
The Resource Type Code

getResourceId

public java.lang.String getResourceId()
Returns the resource Id of the current object

Specified by:
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
The resource Id of the current object

toString

public java.lang.String toString()
Creates a String representation of the object

Overrides:
toString in class java.lang.Object
Returns:
the String representation


Copyright © 2010 Mairie de Paris. All Rights Reserved.