public class SetCleanup
extends java.lang.Object
RhnSetFactory
saves a set, it calls cleanup(com.redhat.rhn.domain.rhnset.RhnSet)
with the set being saved as an argument; that method must remove anything
from the set in the database that the user does not have permission to.Modifier and Type | Field and Description |
---|---|
static SetCleanup |
ILLEGAL_ERRATA |
static SetCleanup |
ILLEGAL_SERVERS |
static SetCleanup |
INACCESSIBLE_CONFIG_CHANNELS |
static SetCleanup |
INACCESSIBLE_CONFIG_FILES |
static SetCleanup |
INACCESSIBLE_CONFIG_REVISIONS |
static SetCleanup |
INACCESSIBLE_XCCDF_RESULTS |
static SetCleanup |
NOOP |
static SetCleanup |
UNOWNED_ACTIONS |
static SetCleanup |
UNOWNED_ACTIVATION_KEYS |
static SetCleanup |
UNOWNED_CHANNELS |
static SetCleanup |
UNOWNED_ERRATA |
static SetCleanup |
UNOWNED_FILE_LIST |
static SetCleanup |
UNOWNED_GPGSSL_KEYS |
static SetCleanup |
UNOWNED_METHODS |
static SetCleanup |
UNOWNED_NONRHN_ERRATA |
static SetCleanup |
UNOWNED_PACKAGE_PROFILES |
static SetCleanup |
UNOWNED_PACKAGES |
static SetCleanup |
UNOWNED_SERVERS |
static SetCleanup |
UNOWNED_SYSTEM_GROUPS |
static SetCleanup |
UNOWNED_USERS |
static SetCleanup |
UNOWNED_VIRTUAL_SERVERS |
Constructor and Description |
---|
SetCleanup(java.lang.String modeName0)
Create a new cleanup object.
|
SetCleanup(java.lang.String catalogName0,
java.lang.String modeName0)
Create a new cleanup object.
|
Modifier and Type | Method and Description |
---|---|
protected int |
cleanup(RhnSet set) |
protected java.lang.String |
getMode() |
public static final SetCleanup NOOP
public static final SetCleanup ILLEGAL_SERVERS
public static final SetCleanup ILLEGAL_ERRATA
public static final SetCleanup UNOWNED_ACTIONS
public static final SetCleanup UNOWNED_CHANNELS
public static final SetCleanup UNOWNED_ERRATA
public static final SetCleanup UNOWNED_NONRHN_ERRATA
public static final SetCleanup UNOWNED_PACKAGES
public static final SetCleanup UNOWNED_SERVERS
public static final SetCleanup UNOWNED_VIRTUAL_SERVERS
public static final SetCleanup UNOWNED_SYSTEM_GROUPS
public static final SetCleanup UNOWNED_USERS
public static final SetCleanup UNOWNED_METHODS
public static final SetCleanup UNOWNED_ACTIVATION_KEYS
public static final SetCleanup UNOWNED_GPGSSL_KEYS
public static final SetCleanup UNOWNED_FILE_LIST
public static final SetCleanup UNOWNED_PACKAGE_PROFILES
public static final SetCleanup INACCESSIBLE_CONFIG_REVISIONS
public static final SetCleanup INACCESSIBLE_CONFIG_FILES
public static final SetCleanup INACCESSIBLE_CONFIG_CHANNELS
public static final SetCleanup INACCESSIBLE_XCCDF_RESULTS
public SetCleanup(java.lang.String catalogName0, java.lang.String modeName0)
cleanup(com.redhat.rhn.domain.rhnset.RhnSet)
method
will look up a WriteMode
with the given name
and execute it. The WriteMode
must take two arguments:
the user_id and the labelcatalogName0
- the name of the mode catalogmodeName0
- the name of the mode within the catalogpublic SetCleanup(java.lang.String modeName0)
cleanup(com.redhat.rhn.domain.rhnset.RhnSet)
method will look up a
WriteMode
with the given name from the
Set_queries and execute it. The WriteMode
must
take two arguments: the user_id and the labelmodeName0
- the name of the mode with the Set_queriesprotected java.lang.String getMode()
protected int cleanup(RhnSet set)