com.objectplanet.survey.plugin.interfaces
Interface ICreateReportLimit


public interface ICreateReportLimit

Interface for create report limit check.

Author:
Irina Brun

Method Summary
 java.lang.String getLimitReachedHTML()
          Returns html for "limit is reached" page that will be displayed if isMaxReportsPerSurveyReached(long userId, long surveyId) returns true.
 boolean isMaxReportsPerSurveyReached(long userId, long surveyId)
          Checks if maximum allowed reports per survey is reached.
 

Method Detail

isMaxReportsPerSurveyReached

boolean isMaxReportsPerSurveyReached(long userId,
                                     long surveyId)
Checks if maximum allowed reports per survey is reached.

Parameters:
userId - User who wants to create report
surveyId - Survey id
Returns:
True maximum allowed reports is reached for this user.

getLimitReachedHTML

java.lang.String getLimitReachedHTML()
Returns html for "limit is reached" page that will be displayed if isMaxReportsPerSurveyReached(long userId, long surveyId) returns true.

NOT YET IMPLEMENTED.

Returns:
html for "no access" page

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016