public class RhnSetDecl
extends java.lang.Object
RhnSet
. This combines the name of the set with
the security information needed to ensure that users only put items into the
set they actually have permission to see. All sets must be declared as
constants in this class; to load a set, you can simply say
RhnSetDecl.SYSTEMS.get(user)
.
To create a new set, you need to first define the needed cleanup as a
constant in SetCleanup
and then declare the set with a new constant
in this class.
Modifier and Type | Method and Description |
---|---|
void |
clear(User u)
Clear the set for user
u |
RhnSet |
create(User u)
Create a new, empty set
|
RhnSetDecl |
createCustom(java.lang.Object... suffix)
Creates new Declaration based on the selections for this set.
|
static RhnSetDecl |
find(java.lang.String label)
Retrieves the set declaration associated to the given label
|
static RhnSetDecl |
findOrCreate(java.lang.String label,
SetCleanup cleanup)
Deprecated.
Do not use this method.
|
static java.lang.String |
generateCustomSetName(RhnSetDecl base,
java.lang.Object... suffix)
Generates a new set name based on an existing set and one or more variables.
|
RhnSet |
get(User u)
Load the set for user
u . |
java.lang.String |
getLabel()
The label of the set
|
RhnSet |
lookup(User u)
Look the set for user
u up from the database. |
static RhnSetDecl |
setForChannelErrata(Channel chan)
get the set for Channel Errata cloning
|
static RhnSetDecl |
setForChannelPackages(Channel chan)
get the set for Channel package pushing
|
static RhnSetDecl |
setForSystemCrashes(Server serv)
get the set for system software crashes
|
public static final RhnSetDecl ACTIONS_COMPLETED
public static final RhnSetDecl ACTIONS_FAILED
public static final RhnSetDecl ACTIONS_ARCHIVED
public static final RhnSetDecl ACTIONS_PENDING
public static final RhnSetDecl ACTIONS_UNSCHEDULE
public static final RhnSetDecl ACTION_CHAINS
public static final RhnSetDecl CHANNELS_FOR_ERRATA
public static final RhnSetDecl ERRATA
public static final RhnSetDecl ERRATA_CLONE
public static final RhnSetDecl ERRATA_TO_DELETE
public static final RhnSetDecl ERRATA_TO_DELETE_BULK
public static final RhnSetDecl ERRATA_TO_SYNC
public static final RhnSetDecl ERRATA_PACKAGES_TO_SYNC
public static final RhnSetDecl FILE_LISTS
public static final RhnSetDecl PACKAGES_FOR_SYSTEM_SYNC
public static final RhnSetDecl PACKAGES_REMOVABLE
public static final RhnSetDecl PACKAGES_TO_ADD
public static final RhnSetDecl PACKAGES_TO_PUSH
public static final RhnSetDecl PACKAGES_TO_INSTALL
public static final RhnSetDecl PACKAGES_TO_REMOVE
public static final RhnSetDecl PACKAGES_UPGRADABLE
public static final RhnSetDecl PACKAGES_VERIFY
public static final RhnSetDecl PACKAGES_TO_SYNC_CHANNEL
public static final RhnSetDecl SYSTEMS
public static final RhnSetDecl DUPLICATE_SYSTEMS
public static final RhnSetDecl SYSTEMS_AFFECTED
public static final RhnSetDecl SYSTEM_ENTITLEMENTS
public static final RhnSetDecl SYSTEMS_FAILED
public static final RhnSetDecl SYSTEM_GROUPS
public static final RhnSetDecl TEST
public static final RhnSetDecl USERS
public static final RhnSetDecl METHODS_IN_ORG
public static final RhnSetDecl KICSKTART_IPRANGES
public static final RhnSetDecl ACTIVATION_KEYS
public static final RhnSetDecl KICKSTART_ACTIVATION_KEYS
public static final RhnSetDecl GPGSSL_KEYS
public static final RhnSetDecl PACKAGE_PROFILES
public static final RhnSetDecl CONFIG_SYSTEMS
public static final RhnSetDecl CONFIG_TARGET_SYSTEMS
public static final RhnSetDecl CONFIG_ENABLE_SYSTEMS
public static final RhnSetDecl CONFIG_CHANNELS
public static final RhnSetDecl CONFIG_CHANNELS_RANKING
public static final RhnSetDecl CONFIG_CHANNELS_TO_UNSUBSCRIBE
public static final RhnSetDecl CONFIG_FILES
public static final RhnSetDecl CONFIG_FILE_NAMES
public static final RhnSetDecl ORG_LIST
public static final RhnSetDecl CONFIG_IMPORT_FILE_NAMES
public static final RhnSetDecl CONFIG_REVISIONS
public static final RhnSetDecl CONFIG_FILE_DEPLOY_SYSTEMS
public static final RhnSetDecl CONFIG_CHANNEL_DEPLOY_REVISIONS
public static final RhnSetDecl CONFIG_CHANNEL_DEPLOY_SYSTEMS
public static final RhnSetDecl SSM_GROUP_LIST
public static final RhnSetDecl SSM_CHANNEL_LIST
public static final RhnSetDecl SSM_REMOVE_PACKAGES_LIST
public static final RhnSetDecl SSM_UPGRADE_PACKAGES_LIST
public static final RhnSetDecl SSM_VERIFY_PACKAGES_LIST
public static final RhnSetDecl VIRTUAL_SYSTEMS
public static final RhnSetDecl REMOVE_SYSTEMS_LIST
public static final RhnSetDecl CHANNEL_SUBSCRIPTION_PERMS
public static final RhnSetDecl TARGET_SYSTEMS_FOR_CHANNEL
public static final RhnSetDecl PACKAGE_DOWNLOADABLE_LIST
public static final RhnSetDecl ERRATA_TO_REMOVE
public static final RhnSetDecl ERRATA_TO_ADD
public static final RhnSetDecl PACKAGES_FOR_MERGE
public static final RhnSetDecl CHANNEL_MANAGEMENT_PERMS
public static final RhnSetDecl TARGET_SYSTEMS
public static final RhnSetDecl DELETABLE_PACKAGE_LIST
public static final RhnSetDecl REMOVEABLE_SYSTEM_LIST
public static final RhnSetDecl PACKAGE_INSTALLABLE_LIST
public static final RhnSetDecl PACKAGE_ANSWER_FILE_LIST
public static final RhnSetDecl PACKAGE_UPGRADABLE_LIST
public static final RhnSetDecl REMOVE_SYSTEM_FROM_GROUPS
public static final RhnSetDecl TARGET_GROUPS_FOR_SYSTEM
public static final RhnSetDecl SCHEDULE_ACTION_LIST
public static final RhnSetDecl REMOVABLE_SNAPSHOT_TAG_LIST
public static final RhnSetDecl SYSTEMS_AFFECTED_BY_ERRATA
public static final RhnSetDecl SSCD_VERIFY_PACKAGE_LIST
public static final RhnSetDecl SSCD_REMOVABLE_PACKAGE_LIST
public static final RhnSetDecl MULTIORG_TRUST_LIST
public static final RhnSetDecl SSM_CHANNEL_SUBSCRIBE
public static final RhnSetDecl SSM_CHANNEL_UNSUBSCRIBE
public static final RhnSetDecl ISS_SLAVES
public static final RhnSetDecl ISS_MASTERS
public static final RhnSetDecl ISS_LOCAL_ORGS
public static final RhnSetDecl XCCDF_TESTRESULTS
public static final RhnSetDecl SSM_SYSTEMS_SET_LOCK
public static final RhnSetDecl SSM_SYSTEMS_REBOOT
public static final RhnSetDecl PENDING_ACTIONS_TO_DELETE
public static final RhnSetDecl SNAPSHOT_TAGS_TO_DELETE
public static final RhnSetDecl SYSTEM_NOTES
public void clear(User u)
u
u
- the user whose set to clearpublic RhnSet create(User u)
u
- the user for whom to create the setpublic RhnSet get(User u)
u
. If the set for this user does
not exist yet, a new one is created. In other words, this method will
always return a non-null value.u
- the user for whom to get the setu
public java.lang.String getLabel()
public RhnSet lookup(User u)
u
up from the database. If the user
has no entries in the set, return null
u
- the user for whom to look the set upnull
if the user has nothing in the setpublic RhnSetDecl createCustom(java.lang.Object... suffix)
suffix
- suffix to make this set declaration unique@Deprecated public static RhnSetDecl findOrCreate(java.lang.String label, SetCleanup cleanup)
label
. If
one exists, cleanup
is ignored. Otherwise, a declaration
with the given cleanup
and label
is
created.label
- the label for the setcleanup
- the cleanup to usepublic static RhnSetDecl find(java.lang.String label)
label
- the label for the setpublic static RhnSetDecl setForChannelErrata(Channel chan)
chan
- the Channel passed inpublic static RhnSetDecl setForChannelPackages(Channel chan)
chan
- the Channel passed inpublic static RhnSetDecl setForSystemCrashes(Server serv)
serv
- server passed inpublic static java.lang.String generateCustomSetName(RhnSetDecl base, java.lang.Object... suffix)
base
- the generation will use the label from this setsuffix
- used as entropy in the custom name