NAME
RTx::Shredder::Constants - RTx::Shredder constants that is used to mark state of RT objects.
DESCRIPTION
This module exports two group of bit constants. First group is group of flags which are used to dependecies between objects, and second group is states of RT objects in Shredder cache.
FLAGS
DEPENDS_ON
Targets that has such dependency flag set should be wiped out with base object.
WIPE_AFTER
If dependency has such flag then target object should be wiped only after base object. Group and Principal have such relationship.
VARIABLE
This flag is used to mark dependencies that can be resolved with changing value in target object. For example ticket can be created by user we can change this reference on other user.
RELATES
This flag is used to validate relationships integrity. Base object is valid only when all target objects which are marked with this flags exist.
STATES
ON_STACK
Default state of object in Shredder cache that means that object is loaded and placed into cache.
WIPED
Objects with this state are not exist any more in DB, but perl object is still in memory. This state is used to be shure that delete query is called once.
VALID
Object is marked with this state only when its relationships are valid.