Appends a required field to a redirector.
When rendering a redirector with required fields, all specified fields must be provided in the parameters. If the fields array is empty, the redirector is "loose" and accepts any parameters.
The ID of the campaign containing the redirector
The redirector ID to append fields
The field name to require
The campaign lock secret obtained from CampaignRepository.lock()
DatabaseError If the campaign does not exist
DatabaseError If the campaign is not locked
DatabaseError If the lock secret does not match
DatabaseError If the redirector does not exist
Creates a new redirector in the specified campaign.
The redirector is created with an empty fields array,
meaning it is initially "loose" (accepts any parameters).
Use appendField() or removeField() to manage required fields.
The ID of the campaign to create the redirector in
The unique identifier for the new redirector
The page template
The campaign lock secret obtained from CampaignRepository.lock()
DatabaseError If the campaign does not exist
DatabaseError If the campaign is not locked
DatabaseError If the lock secret does not match
DatabaseError If a redirector with the same ID already exists
Delete a redirector model by its ID.
A redirector cannot be deleted if it has any lures pointing to it.
The ID of the campaign containing the redirector
The redirector ID to delete
The campaign lock secret obtained from CampaignRepository.lock()
DatabaseError If the campaign does not exist
DatabaseError If the campaign is not locked
DatabaseError If the lock secret does not match
DatabaseError If the redirector does not exist
DatabaseError If the redirector still has lures
Lists all redirectors in a campaign.
Redirectors are ordered by creation time (oldest first).
The ID of the campaign to list redirectors for
An array of redirector models, or null if the campaign does not exist
Lists all full redirectors in a campaign.
Redirectors are ordered by creation time (oldest first).
The ID of the campaign to list redirectors for
An array of full redirector models, or null if the campaign does not exist
Reads a redirector by its ID.
The ID of the campaign containing the redirector
The redirector ID to read
The redirector model, or null if not found
Reads a full redirector by its ID.
The ID of the campaign containing the redirector
The redirector ID to read
The full redirector model, or null if not found
Removes a required field from a redirector.
The ID of the campaign containing the redirector
The redirector ID to remove fields
The field name to remove
The campaign lock secret obtained from CampaignRepository.lock()
DatabaseError If the campaign does not exist
DatabaseError If the campaign is not locked
DatabaseError If the lock secret does not match
DatabaseError If the redirector does not exist
Updates specific fields of a redirector model.
The ID of the campaign containing the redirector
The redirector ID to update
The page template
The campaign lock secret obtained from CampaignRepository.lock()
DatabaseError If the campaign does not exist
DatabaseError If the campaign is not locked
DatabaseError If the lock secret does not match
DatabaseError If the redirector does not exist
Represents a redirector repository.