See the engine page for a diagram on how the parameters fit into the bigger scheme of the application.

Contents

Parameters

Each condition is generated from a parameter with the following structure:

  • Type
  • Values
  • Contest ID
  • IsActive
  • ID

These are stored in the DB and used to generate the condition classes for evaluation. Below is a list of currently implemented conditions.

Tag Condition

  • Type - 'tagCondition'
  • Values - string of tag to search for.

This condition searches a given photo for the tag stored in value. If found, it returns true. Otherwise, it returns false.

Date Posted Condition

  • Type - 'datePostedCondition'
  • Values - two strings - start date and end date.

This condition returns true if the posted date of a given photo is between the two parameters.

User's Own Photo Condition

  • Type - 'usersOwnPhotoCondition'
  • Values - none

This condition returns true if the user attempting to upload the photo matches the owner of the photo in Flickr's database.

Not User's Own Photo Condition

  • Type - 'notUsersOwnPhotoCondition'
  • Values - none

This condition returns true if the user attempting to upload the photo is not the owner of the photo in Flickr's database.

User In Group Condition

  • Type - 'userInGroupCondition'
  • values - name of group

This condition returns true if a user is a member of the given group.

Max Votes Condition

  • type - 'userMaxVotesCondition'
  • values - max number of votes

This condition returns true if a user has not exceeded the maximum number of allotted votes.

Max Submissions Condition

  • typs - 'userMaxSubmissionsCondition'
  • values - max number of submissions

This condition returns true if a user has not exceeded the maximum number of photo submissions.