NAME
RT::SavedSearch - an RT SavedSearch object
SYNOPSIS
use RT::SavedSearch
DESCRIPTION
An RT SavedSearch object
NAME
RT::SavedSearch - Represents a config setting
METHODS
Create PARAMHASH
Create takes a hash of values and creates a row in the database. Available keys are:
- Name
- Description
- Type
- PrincipalId
- Content
Returns a tuple of (status, msg) on failure and (id, msg) on success.
ValidateName
Name must be unique for each principal and search type.
Returns either (0, "failure reason") or 1 depending on whether the given name is valid.
SetPrincipalId PRINCIPALID
Moves this saved search to another principal.
Delete
Disable object.
IsVisibleTo PrincipalId
Returns true if it is visible to the principal. This does not deal with ACLs, this only looks at membership.
_Value
Checks "CurrentUserCanSee" before calling SUPER::_Value.
EscapeDescription STRING
Returns STRING with all square brackets except those in [_1] escaped, ready for passing as the first argument to loc().
GetOption Option_Name
Returns the current value of the named SavedSearch option.
DeleteOption Option_Name
Deletes the named SavedSearch option.
ValidateOption Option_Name, Option_Value
Returns true if Option_Value is acceptable for the named option, false otherwise.
An option RT has no validator for is accepted, so extensions that add their own options keep working; an extension is responsible for validating what it adds.
SetContent HASHREF
Set the content. Values are checked with "ValidateOption" first.
Returns a tuple of (status, message).
SetOption ( Option_Name, Option_Value )
Set the named option with the provided value for this SavedSearch.
Returns a tuple of (status, message).
ShortenerObj
Return the corresponding shortener object
URI
Returns this saved search's URI
URI
Returns this saved search's corresponding collection Class like RT::Tickets