fr.paris.lutece.plugins.poll.business
Class Poll

java.lang.Object
  extended by fr.paris.lutece.plugins.poll.business.Poll
All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource, fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource

public class Poll
extends java.lang.Object
implements fr.paris.lutece.portal.service.rbac.RBACResource, fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource

This class represents business object Poll


Field Summary
static java.lang.String RESOURCE_TYPE
           
 
Constructor Summary
Poll()
           
 
Method Summary
 int getId()
          Return the identifier of this poll
 java.lang.String getName()
          Returns the name of this poll as a String
 java.util.List<PollQuestion> getQuestions()
          Return the list of the questions
 java.lang.String getResourceId()
          RBAC resource implmentation
 java.lang.String getResourceTypeCode()
          RBAC resource implmentation
 boolean getStatus()
          Return the status of the poll.
 java.lang.String getWorkgroup()
          Returns the workgroup
 void setId(int nIdPoll)
          Sets the identifier of the poll with the specified int
 void setName(java.lang.String strName)
          Sets the name of the poll with the specified String
 void setStatus(boolean bStatus)
          Sets the status of the poll
 void setWorkgroup(java.lang.String strAdminWorkgroup)
          Sets the workgroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_TYPE

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

Poll

public Poll()
Method Detail

getId

public int getId()
Return the identifier of this poll

Returns:
the identifier as an int

setId

public void setId(int nIdPoll)
Sets the identifier of the poll with the specified int

Parameters:
nIdPoll - the identifier as an int

getName

public java.lang.String getName()
Returns the name of this poll as a String

Returns:
The poll name

setName

public void setName(java.lang.String strName)
Sets the name of the poll with the specified String

Parameters:
strName - The String poll name

getStatus

public boolean getStatus()
Return the status of the poll. True means that the poll is active, false inactive.

Returns:
The boolean wich describes the status of the poll.

setStatus

public void setStatus(boolean bStatus)
Sets the status of the poll

Parameters:
status - The status of the poll

getQuestions

public java.util.List<PollQuestion> getQuestions()
Return the list of the questions

Returns:
the list of the questions

getResourceTypeCode

public java.lang.String getResourceTypeCode()
RBAC resource implmentation

Specified by:
getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
The resource type code

getResourceId

public java.lang.String getResourceId()
RBAC resource implmentation

Specified by:
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
The resourceId

getWorkgroup

public java.lang.String getWorkgroup()
Returns the workgroup

Specified by:
getWorkgroup in interface fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
Returns:
The workgroup

setWorkgroup

public void setWorkgroup(java.lang.String strAdminWorkgroup)
Sets the workgroup

Parameters:
strWorkgroup - The workgroup


Copyright © 2008 Mairie de Paris. All Rights Reserved.