com.objectplanet.survey.plugin.interfaces
Interface ICreateSurveyLimit


public interface ICreateSurveyLimit

Interface for create survey limit check.

Author:
Ina Skåre

Method Summary
 java.lang.String getLimitReachedHTML()
          Returns html for "limit is reached" page that will be displayed if isMaxSurveysReached(long userId) returns true.
 boolean isMaxSurveysReached(long userId, long folderId)
          Checks if maximum allowed surveys is reached.
 

Method Detail

isMaxSurveysReached

boolean isMaxSurveysReached(long userId,
                            long folderId)
Checks if maximum allowed surveys is reached.

Parameters:
userId - User who wants to create another survey
folderId - Current folder id
Returns:
True if maximum allowed surveys is reached for this user.

getLimitReachedHTML

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

NOT YET IMPLEMENTED.

Returns:
html for "no access" page

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016