Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Converts PermissionEnum to permission codename which will be checked when CheckPermission() is called.
Derived classes can override this method to change permission which is checked (for example check for global permissions if object is global).

Converts PermissionEnum to permission codename which will be checked when CheckPermission() is called.
Derived classes can override this method to change permission which is checked (for example check for global permissions if object is global).

Returns search fields collection. When existing collection is passed as argument, fields will be added to that collection.
When collection is not passed, new collection will be created and return.
Collection will contain field values only when collection with StoreValues property set to true is passed to the method.
When method creates new collection, it is created with StoreValues property set to false.

This method is called on cloned object prepared in memory by InsertAsClone method.
Override if you need to do further actions before inserting actual object to DB (insert special objects, modify foreign keys, copy files, etc.).
Calls Insert() by default.