|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.redhat.rhn.frontend.xmlrpc.BaseHandler
com.redhat.rhn.frontend.xmlrpc.activationkey.ActivationKeyHandler
public class ActivationKeyHandler
ActivationKeyHandler
| Constructor Summary | |
|---|---|
ActivationKeyHandler()
|
|
| Method Summary | |
|---|---|
int |
addChildChannels(java.lang.String sessionKey,
java.lang.String key,
java.util.List childChannelLabels)
Add a child channel to an activation key. |
int |
addConfigChannels(java.lang.String sessionKey,
java.util.List<java.lang.String> keys,
java.util.List<java.lang.String> configChannelLabels,
boolean addToTop)
Given a list of activation keys and configuration channels, this method inserts the configuration channels to either the top or the bottom (whichever you specify) of an activation key's configuration channels list. |
int |
addEntitlements(java.lang.String sessionKey,
java.lang.String key,
java.util.List entitlements)
Add entitlements to an activation key. |
int |
addPackageNames(java.lang.String sessionKey,
java.lang.String key,
java.util.List packageNames)
Add package names to an activation key. |
int |
addServerGroups(java.lang.String sessionKey,
java.lang.String key,
java.util.List serverGroupIds)
Add server groups to an activation key. |
java.lang.String |
create(java.lang.String sessionKey,
java.lang.String key,
java.lang.String description,
java.lang.String baseChannelLabel,
java.lang.Integer usageLimit,
java.util.List entitlements,
java.lang.Boolean universalDefault)
Creates a new activation key. |
java.lang.String |
create(java.lang.String sessionKey,
java.lang.String key,
java.lang.String description,
java.lang.String baseChannelLabel,
java.util.List entitlements,
java.lang.Boolean universalDefault)
Creates a new activation key with unlimited usage.. |
int |
delete(java.lang.String sessionKey,
java.lang.String key)
Deletes an activation key. |
ActivationKey |
getDetails(java.lang.String sessionKey,
java.lang.String key)
Return a struct of activation key details. |
java.util.List<ActivationKey> |
listActivationKeys(java.lang.String sessionKey)
Return a list of activation key structs that are visible to the requesting user. |
java.util.List |
listConfigChannels(java.lang.String sessionKey,
java.lang.String key)
Returns a list of config channel structs that are associated to a given activation key. |
int |
removeChildChannels(java.lang.String sessionKey,
java.lang.String key,
java.util.List childChannelLabels)
Remove a child channel from an activation key. |
int |
removeConfigChannels(java.lang.String sessionKey,
java.util.List<java.lang.String> keys,
java.util.List<java.lang.String> configChannelLabels)
removes selected channels from list of config channels provided for a given list of activation keys. |
int |
removeEntitlements(java.lang.String sessionKey,
java.lang.String key,
java.util.List entitlements)
Remove entitlements from an activation key. |
int |
removePackageNames(java.lang.String sessionKey,
java.lang.String key,
java.util.List packageNames)
Remove package names from an activation key. |
int |
removeServerGroups(java.lang.String sessionKey,
java.lang.String key,
java.util.List serverGroupIds)
Remove server groups from an activation key. |
int |
setConfigChannels(java.lang.String sessionKey,
java.util.List<java.lang.String> keys,
java.util.List<java.lang.String> configChannelLabels)
replaces the existing set of config channels for a given activation key. |
int |
setDetails(java.lang.String sessionKey,
java.lang.String key,
java.util.Map details)
Set activation key details. |
| Methods inherited from class com.redhat.rhn.frontend.xmlrpc.BaseHandler |
|---|
ensureConfigAdmin, ensureOrgAdmin, ensureProvisioning, ensureSatellite, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, validateEntitlements |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivationKeyHandler()
| Method Detail |
|---|
public java.lang.String create(java.lang.String sessionKey,
java.lang.String key,
java.lang.String description,
java.lang.String baseChannelLabel,
java.lang.Integer usageLimit,
java.util.List entitlements,
java.lang.Boolean universalDefault)
throws FaultException
sessionKey - The current user's session key.key - Key for the activation key, or empty string to have one
autogenerated.description - A note or description.baseChannelLabel - label of this key's base channel.usageLimit - Usage limit for this key.entitlements - List of string entitlement labels for the activation key.universalDefault - Whether or not this key should be set as the
default for the user's organization.
FaultException - A FaultException is thrown if the loggedInUser
doesn't have permissions to create new activation keys.
public java.lang.String create(java.lang.String sessionKey,
java.lang.String key,
java.lang.String description,
java.lang.String baseChannelLabel,
java.util.List entitlements,
java.lang.Boolean universalDefault)
throws FaultException
sessionKey - The current user's session key.key - Key for the activation key, or empty string to have one
autogenerated.description - A note or description.baseChannelLabel - label of this key's base channel.entitlements - List of string entitlement labels for the activation key.universalDefault - Whether or not this key should be set as the
default for the user's organization.
FaultException - A FaultException is thrown if the loggedInUser
doesn't have permissions to create new activation keys.
public int delete(java.lang.String sessionKey,
java.lang.String key)
sessionKey - The current user's session key.key - Key for the activation key, or empty string to have one
autogenerated.
java.lang.IllegalArgumentException - if the loggedInUser
doesn't have permissions to create new activation keys.
public int setDetails(java.lang.String sessionKey,
java.lang.String key,
java.util.Map details)
throws FaultException
sessionKey - The current user's session keykey - The activation key to be modifieddetails - Map of new details. (contents optional)
FaultException - Thrown if the user does not have the activation
key admin role, if the base channel given does not exist, or if it
actually is not a base channel.
public ActivationKey getDetails(java.lang.String sessionKey,
java.lang.String key)
sessionKey - The current user's session keykey - The activation key to be modified
public int addEntitlements(java.lang.String sessionKey,
java.lang.String key,
java.util.List entitlements)
sessionKey - The current user's session key.key - The activation key to act upon.entitlements - List of string entitlement labels to be added.
public int removeEntitlements(java.lang.String sessionKey,
java.lang.String key,
java.util.List entitlements)
sessionKey - The current user's session key.key - The activation key to act upon.entitlements - List of string entitlement labels to be removed.
public int addChildChannels(java.lang.String sessionKey,
java.lang.String key,
java.util.List childChannelLabels)
sessionKey - The current user's session keykey - The activation key to act uponchildChannelLabels - List of child channel labels to be added to this
activation key
public int removeChildChannels(java.lang.String sessionKey,
java.lang.String key,
java.util.List childChannelLabels)
sessionKey - The current user's session keykey - The activation key to act uponchildChannelLabels - List of child channel labels to be removed
from this activation key
public int addServerGroups(java.lang.String sessionKey,
java.lang.String key,
java.util.List serverGroupIds)
sessionKey - The current user's session key.key - The activation key to act upon.serverGroupIds - List of server group IDs to be added to this activation key.
public int removeServerGroups(java.lang.String sessionKey,
java.lang.String key,
java.util.List serverGroupIds)
sessionKey - The current user's session keykey - The activation key to act uponserverGroupIds - List of server group IDs to be removed from this activation key
public int addPackageNames(java.lang.String sessionKey,
java.lang.String key,
java.util.List packageNames)
sessionKey - The current user's session keykey - The activation key to act uponpackageNames - List of package names to be added to this activation key
public int removePackageNames(java.lang.String sessionKey,
java.lang.String key,
java.util.List packageNames)
sessionKey - The current user's session keykey - The activation key to act uponpackageNames - List of package names to be removed from this activation key
public java.util.List<ActivationKey> listActivationKeys(java.lang.String sessionKey)
sessionKey - The current user's session key
public java.util.List listConfigChannels(java.lang.String sessionKey,
java.lang.String key)
sessionKey - the sessionkey needed for authenticationkey - the activation key
public int setConfigChannels(java.lang.String sessionKey,
java.util.List<java.lang.String> keys,
java.util.List<java.lang.String> configChannelLabels)
sessionKey - the sessionkey needed for authenticationkeys - a lsit of activation keys.configChannelLabels - sets channels labels
public int addConfigChannels(java.lang.String sessionKey,
java.util.List<java.lang.String> keys,
java.util.List<java.lang.String> configChannelLabels,
boolean addToTop)
sessionKey - the sessionkey needed for authenticationkeys - the list of activation keys.configChannelLabels - set of configuration channels labelsaddToTop - if true inserts the configuration channels list to
the top of the configuration channels list of a server
public int removeConfigChannels(java.lang.String sessionKey,
java.util.List<java.lang.String> keys,
java.util.List<java.lang.String> configChannelLabels)
sessionKey - the sessionkeykeys - the list of activation key values.configChannelLabels - sets channels labels
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||