|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.redhat.rhn.manager.BaseManager
com.redhat.rhn.manager.configuration.ConfigurationManager
public class ConfigurationManager
ConfigurationManager
| Field Summary | |
|---|---|
static java.lang.String |
ARG0
|
static java.lang.String |
ARG1
|
static int |
DIRECTORIES
|
static int |
ENABLE_ERROR_PACKAGES
|
static int |
ENABLE_ERROR_PROVISIONING
|
static int |
ENABLE_ERROR_RHNTOOLS
|
static int |
ENABLE_NEED_ORG_ADMIN
|
static int |
ENABLE_SUCCESS
|
static java.lang.String |
FEATURE_CONFIG
|
static int |
FILES
|
static java.lang.String |
KEY
|
| Method Summary | |
|---|---|
boolean |
accessToChannel(java.lang.Long uid,
java.lang.Long ccid)
|
void |
copyConfigFile(ConfigRevision revision,
ConfigChannel channel,
User user)
Copies a config file. |
ConfigFileCount |
countAllActionPaths(Server server,
Action action)
Returns the number of files, and directories that were on a applied to server by a given config action This is method is mainly used to show the number of files and directories that were deployed/diff'd Note this method doesnot check whether the Action is visible to the user. |
ConfigFileCount |
countCentrallyDeployablePaths(Server server,
User user)
Returns the sum of all the 'Deployable' files, and directories that are present in the all the centrally managed channels in a given server. |
ConfigFileCount |
countCentrallyManagedPaths(Server server,
User user)
Returns the sum of files, and directories that are present in the all the centrally managed channels in a given server. |
ConfigFileCount |
countDifferingPaths(Server server,
Action action)
Returns the number of files on the server that differed in content from the files in RHN - Managed Note this method doesnot check whether the Action is visible to the user. |
ConfigFileCount |
countLocallyManagedPaths(Server server,
User user,
ConfigChannelType cct)
Returns the number of files, and directories that are managed in the local override channel or Sandbox channel of a given server.. |
ConfigFileCount |
countSuccessfulCompares(Server server,
Action action)
Returns the number of files, and directories that were SUCCESSFULLY applied to server by a given config action This is method is mainly used to show the number of files and directories that were scheduled for comparison Returns the number of files that were selected successfully for comparison in a config DIFF action. |
ConfigRevision |
createNewRevision(User user,
java.io.InputStream input,
ConfigFile file,
java.lang.Long size)
Creates a new config revision object. |
ConfigRevision |
createNewRevision(User user,
java.io.InputStream input,
java.lang.Long cfid,
java.lang.Long size)
Creates a new config revision object. |
void |
deleteConfigChannel(User user,
ConfigChannel channel)
Deletes a config channel. |
void |
deleteConfigFile(User user,
ConfigFile file)
Deletes a config file. |
boolean |
deleteConfigRevision(User user,
ConfigRevision revision)
Deletes a config revision. |
void |
deployConfiguration(User user,
java.util.Collection<Server> servers,
java.util.Date datePicked)
Schedules deploys of all the configuration files or dirs associated to a list of servers |
java.util.Map |
deployFiles(User usr,
java.util.Set fileIds,
java.util.Set systemIds,
java.util.Date datePicked)
Deploy revisions to systems. |
void |
enableSystems(RhnSetDecl set,
User user,
java.util.Date earliest)
Enable the set of systems given for configuration management. |
void |
ensureConfigManageable(Server server)
Method to ensure config management features are available for a given system are available.. |
ChannelSummary |
getChannelSummary(User user,
ConfigChannel channel)
Return ChannelSummary info - see ChannelOverview |
java.lang.Long |
getDeployableRevisionForFileName(java.lang.Long cfnid,
java.lang.Long sid)
Returns the config revision id for a config file with the given config file name id. |
int |
getDirCount(User user,
ConfigChannel channel)
Return the number of Directories in this config-channel |
DataResult |
getEnableSummary(User user,
PageControl pc,
java.lang.String set)
Get a summary of configuration enablement. |
int |
getFileCount(User user,
ConfigChannel channel)
Return the number of Files in this config-channel |
DataResult |
getFileInfo(User user,
ConfigChannel channel)
List files controlled by this channel, sorted by date-modified (descending) |
int |
getFileStorage(User user,
ConfigFile file)
Return the number of bytes used for all revisions of the specified ConfigFile |
static ConfigurationManager |
getInstance()
|
java.util.Map |
getOverviewSummary(User user)
Returns a map of summary information. |
DataResult |
getRecentConfigDeployActions(User user,
java.lang.Integer results)
Lists the last n most recent config deploy actions visible by a user where n is the results param and user is the user param. |
DataResult |
getRecentlyModifiedConfigFiles(User user,
java.lang.Integer results)
Lists the last n most recently modified configuration files visible by a user where n is the results param and user is the user param. |
java.lang.Long |
getServerIdFor(ConfigChannel cc,
User user)
Returns the server id associated to a local/sandbox channel |
DataResult |
getSuccesfulDeploysTo(User usr,
ConfigFileName cfn,
Server srv)
For a given filename and server, find all the successful deploys of a file with that name |
int |
getSystemCount(User user,
ConfigChannel channel)
Return the number of systems subscribed to the specified channel. |
DataResult |
getSystemInfo(User user,
ConfigChannel channel)
List systems subscribed to this channel, sorted by date-modified (descending) |
boolean |
isConfigEnabled(Server server,
User user)
Returns the given system is config enabled. |
boolean |
isDuplicated(java.lang.String label,
ConfigChannelType cct,
Org org)
Returns true if there already exists a config channel with the same label, cc type and org. |
DataResult |
listAllFilesWithTotalSize(User user,
PageControl pc)
Lists all of the configuration files in RHN for a single org. |
DataResult |
listAlternateFilesForCompare(User user,
ConfigFile current,
PageControl pc)
Lists all the alternatives for a given file in other config channels. |
DataResult |
listAvailableFilesNotInChannel(User usr,
ConfigChannel cc,
PageControl pc)
For a specified channel, return info about all systems that the user has access to that are NOT already in that channel |
java.util.List |
listChannelsForCopy(User user,
ConfigChannel cc,
java.lang.String ccType)
List cfg-channels OTHER THAN the specified one, that are of the specified type, and are accessible to the specified user |
DataResult |
listChannelsForFileCompare(User user,
PageControl pc)
Lists all the other channels in this org. |
DataResult |
listChannelsForFileCopy(User user,
ConfigFile current,
java.lang.String type,
PageControl pc)
Lists all global config channels in this user's org except the one that contains the given config file. |
DataResult |
listChannelsForSystem(User user,
Server server,
PageControl pc)
List global config channels for a system. |
DataResult |
listChannelSystems(User user,
ConfigChannel channel,
PageControl pc)
List systems subscribed to this channel, sorted by date added (descending) |
DataResult |
listConfigChannelsForSystem(User user,
Server server,
PageControl pc)
Lists the config channels in the user's config channel set to which the given server is subscribed. |
DataResult<ConfigFileDto> |
listCurrentFiles(User user,
ConfigChannel channel,
PageControl pc)
List current files for channel withOUT using a set |
DataResult |
listCurrentFiles(User user,
ConfigChannel channel,
PageControl pc,
java.lang.String setLabel)
List latest revisions controlled by this channel, sorted by date-modified (descending), optionally constrained by the specified set |
DataResult |
listFileNamesForSsm(User user,
PageControl pc)
Lists the file names of all files subscribed to by systems in the given user's system_list set. |
DataResult<ConfigFileNameDto> |
listFileNamesForSystem(User user,
Server server,
PageControl pc)
Lists the file names to which the given server is subscribed Finds the deployable revisions for each file name. |
DataResult |
listFileNamesInSet(User user,
Server server,
java.lang.String setLabel,
PageControl pc)
Lists the file names in the user's config file name set whether or not they are relevant to the given server. |
DataResult |
listFileNamesInSetForSystem(User user,
Server server,
PageControl pc)
Lists the file names in the user's config file name set relevant to the given server. |
DataResult |
listFilesInChannel(User user,
ConfigChannel channel,
PageControl pc)
Gets a list of files (not directories) in the given config channel. |
DataResult |
listFilesNotInChannel(User usr,
ConfigChannel cc,
PageControl pc)
For a specified channel, return info about all config-files that the user has access to that are NOT already in that channel |
DataResult |
listGlobalChannels(User user,
PageControl pc)
List all of the global channels a given user can see. |
DataResult |
listGlobalChannelsForSystemSubscriptions(Server server,
User user,
PageControl pc)
This query basically lists all the global channels a user can see along with info on whether the channels are subscribed to a given server Basically used in SDC Subscribe Channels page |
DataResult |
listGlobalConfigFiles(User user,
PageControl pc)
Lists all global config files in this user's org that this user can view along with system count and overridden count. |
DataResult |
listGlobalFileDeployInfo(User usr,
ConfigChannel cc,
ConfigFile cf,
PageControl pc)
List the info for the systems subscribed to the specified channel, for which we might want to schedule a deploy of the specified file, without being constrained by a selected set of systems |
DataResult |
listGlobalFileDeployInfo(User usr,
ConfigChannel cc,
ConfigFile cf,
PageControl pc,
java.lang.String setLabel)
List the info for the systems subscribed to the specified channel, for which we might want to schedule a deploy of the specified file, optionally constrained by a selected set of systems |
DataResult |
listLocalConfigFiles(User user,
PageControl pc)
Lists all local config files in this user's org that this user can view. |
java.util.List<? extends ConfigFileNameDto> |
listManagedPathsFor(Server server,
User user,
ConfigChannelType type)
Provides a list of 'Unique' paths (ConfigFileNameDto's) for a given server and channel type. |
DataResult |
listManagedSystemsAndFiles(User user,
PageControl pc)
Lists all configuration managed systems along with counts for how many files and channels they are managed by. |
DataResult |
listNonManagedSystems(User user,
PageControl pc)
Lists all systems visible to a user that are not configuration managed. |
DataResult |
listNonManagedSystemsInSet(User user,
PageControl pc,
java.lang.String set)
Lists all systems visible to a user that are not configuration managed that are in the given set. |
DataResult |
listNonManagedSystemsInSetElaborate(User user,
java.lang.String set)
Lists all systems visible to a user that are not configuration managed that are in the given set. |
DataResult |
listRevisionsForCompare(User user,
ConfigFile file,
ConfigRevision current,
PageControl pc)
Lists all the revisions of the given file other than the given revision. |
DataResult |
listRevisionsForFile(User user,
ConfigFile file,
PageControl pc)
List revisions for the given file |
DataResult |
listSystemInfoForChannel(User usr,
ConfigChannel cc,
PageControl pc)
For a specified ConfigChannel, return overview info for the systems that are subscribed to that channel. |
DataResult |
listSystemInfoForChannel(User usr,
ConfigChannel cc,
PageControl pc,
boolean useSet)
For a specified ConfigChannel, return overview info for the systems that are subscribed to that channel. |
DataResult |
listSystemsForConfigAction(User user,
PageControl pc,
java.lang.String feature)
Lists the systems in the user's system_list set that are subscribed to files whose names are in the user's config file name set. |
DataResult |
listSystemsForConfigChannel(User user,
java.lang.Long ccid,
PageControl pc)
Lists the systems in the given user's system_list set that are subscribed to a config channel with the given config channel id. |
DataResult |
listSystemsForCopy(User user,
PageControl pc)
List systems accessible to the specified user |
DataResult |
listSystemsForFileCompare(User user,
java.lang.Long cfnid,
PageControl pc)
Get a list of systems for a config file diff action. |
DataResult |
listSystemsForFileCopy(User user,
java.lang.Long cfnid,
ConfigChannelType chnlType,
PageControl pc)
Get a list of systems to whose local or sandbox channel one could copy a cfg-file |
DataResult |
listSystemsForFileName(User user,
java.lang.Long cfnid,
PageControl pc)
Lists the systems in the given user's system_list set that are subscribed to a config channel that contains a config file with the given config file name id. |
DataResult |
listSystemsNotInChannel(User user,
ConfigChannel channel,
PageControl pc)
List systems NOT subscribed to this channel, sorted by name |
ConfigChannel |
lookupConfigChannel(User user,
java.lang.Long id)
Looks up a config channel, if the given user has access to it. |
ConfigChannel |
lookupConfigChannel(User user,
java.lang.String label,
ConfigChannelType cct)
Looks up a config channel, if the given user has access to it. |
ConfigFile |
lookupConfigFile(User user,
java.lang.Long id)
Looks up a config file, if the given user has access to it. |
ConfigFile |
lookupConfigFile(User user,
java.lang.Long ccid,
java.lang.String path)
Look up a config-file with a specified name in a specified cfg-channel. |
ConfigRevision |
lookupConfigRevision(User user,
java.lang.Long id)
Looks up a config revision, if the given user has access to it. |
DataResult |
ssmChannelList(User user,
PageControl pc)
List all of the global channels to which systems in the current user's system_list are subscribed. |
DataResult |
ssmChannelListForSubscribe(User user,
PageControl pc)
List all the global channels to which the given user can subscribe systems. |
java.util.List |
ssmChannelsInSetForSubscribe(User user)
List all the global channels to which the given user can subscribe systems. |
DataResult |
ssmSystemListForChannels(User user,
PageControl pc)
List all systems in the given user's system_list subscribed to at least one channel in the user's config channel set |
java.util.List |
ssmSystemsForSubscribe(User user)
List the systems in your system set along with the number of channels selected to which they are already subscribed. |
| Methods inherited from class com.redhat.rhn.manager.BaseManager |
|---|
makeDataResult, makeDataResult, makeDataResultNoPagination, processListControl, processPageControl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String KEY
public static final java.lang.String ARG0
public static final java.lang.String ARG1
public static final int ENABLE_SUCCESS
public static final int ENABLE_ERROR_PROVISIONING
public static final int ENABLE_ERROR_RHNTOOLS
public static final int ENABLE_ERROR_PACKAGES
public static final int ENABLE_NEED_ORG_ADMIN
public static final int FILES
public static final int DIRECTORIES
public static final java.lang.String FEATURE_CONFIG
| Method Detail |
|---|
public static ConfigurationManager getInstance()
public DataResult listGlobalChannels(User user,
PageControl pc)
user - The user looking at channels.pc - A page control for this user.
public DataResult listGlobalChannelsForSystemSubscriptions(Server server,
User user,
PageControl pc)
server - the server to check the channels
subscriptions onuser - The user looking at channels.pc - A page control for this user.
public DataResult listAllFilesWithTotalSize(User user,
PageControl pc)
user - The user requesting to view configuration files.pc - A page control for this user.
public DataResult listManagedSystemsAndFiles(User user,
PageControl pc)
user - The user requesting to view managed systemspc - A page control for this user.
public boolean isConfigEnabled(Server server,
User user)
server - The system we care abt finding config capability info onuser - The user requesting to view target systems
public DataResult listNonManagedSystems(User user,
PageControl pc)
user - The user requesting to view target systemspc - A page control for this user.
public DataResult listNonManagedSystemsInSet(User user,
PageControl pc,
java.lang.String set)
user - The user requesting to view target systemspc - A page control for this user.set - The label for the desired RhnSet
public DataResult listNonManagedSystemsInSetElaborate(User user,
java.lang.String set)
user - The user about to enable thingsset - The name of the set.
public DataResult listRevisionsForCompare(User user,
ConfigFile file,
ConfigRevision current,
PageControl pc)
user - The user requesting a list of revisions.file - The file that the revisions should be for.current - The current revision that should not be included in the list.pc - A PageControl for this user
public DataResult listAlternateFilesForCompare(User user,
ConfigFile current,
PageControl pc)
user - The user requesting a list of alternate files.current - The current file that should not be included in the list.pc - A PageControl for this user
public DataResult listChannelsForFileCompare(User user,
PageControl pc)
user - The user requesting a list of channels.pc - A PageControl for this user
public DataResult listFilesInChannel(User user,
ConfigChannel channel,
PageControl pc)
user - The user requesting a list of files.channel - The config channelpc - A page control for the user.
public DataResult listSystemsForFileCompare(User user,
java.lang.Long cfnid,
PageControl pc)
user - The user requesting a list of systems.cfnid - The config file name identifier for the file to diff.pc - A PageControl for this user.
public DataResult listSystemsForFileCopy(User user,
java.lang.Long cfnid,
ConfigChannelType chnlType,
PageControl pc)
user - The user requesting a list of systems.cfnid - The config file name identifier for the file to diff.chnlType - ConfigChannelType to look for (LOCAL or SANDBOX)pc - A PageControl for this user.
public DataResult listFileNamesForSsm(User user,
PageControl pc)
user - The user requesting the list of file names.pc - A PageControl for this user.
public DataResult listSystemsForFileName(User user,
java.lang.Long cfnid,
PageControl pc)
user - The user requesting a list of systems.cfnid - The identifier of the config file namepc - A PageControl for this user.
public DataResult listSystemsForConfigChannel(User user,
java.lang.Long ccid,
PageControl pc)
user - The user requesting a list of systems.ccid - The identifier of the config channelpc - A PageControl for this user.
public DataResult listFileNamesInSetForSystem(User user,
Server server,
PageControl pc)
user - The user requesting a list of file namesserver - The server to which these files must be relevantpc - A PageControl for this user
public DataResult listFileNamesInSet(User user,
Server server,
java.lang.String setLabel,
PageControl pc)
user - The user requesting a list of file namesserver - The server to which these files may be relevantsetLabel - The DB label of the config file name set.pc - A PageControl for this user
public DataResult<ConfigFileNameDto> listFileNamesForSystem(User user,
Server server,
PageControl pc)
user - The user requesting a list of file namesserver - The server to which these files must be relevantpc - A PageControl for this user
public DataResult listConfigChannelsForSystem(User user,
Server server,
PageControl pc)
user - The user requesting a list of config channelsserver - The server subscribed to these channelspc - A PageControl for this user
public DataResult listSystemsForConfigAction(User user,
PageControl pc,
java.lang.String feature)
user - The user requesting the list of file names.pc - A PageControl for this user.feature - acl off the list by selecting a config mgmt specific feature
like (configfiles.deploy/configfiles.diff)
public DataResult ssmChannelList(User user,
PageControl pc)
user - The user looking at channels.pc - A page control for this user.
public DataResult ssmChannelListForSubscribe(User user,
PageControl pc)
user - The user looking at channels.pc - A page control for this user.
public java.util.List ssmChannelsInSetForSubscribe(User user)
user - The user looking at channels.
public java.util.List ssmSystemsForSubscribe(User user)
user - The user looking at channels.
public DataResult ssmSystemListForChannels(User user,
PageControl pc)
user - The user requested a list of systemspc - A PageControl for this user
public DataResult getEnableSummary(User user,
PageControl pc,
java.lang.String set)
user - The user asking for a summarypc - A PageControl object for this user.set - The label for the RhnSet where the summary is located.
public DataResult listGlobalConfigFiles(User user,
PageControl pc)
user - The user requesting to view config filespc - A page control for this user.
public DataResult listLocalConfigFiles(User user,
PageControl pc)
user - The user requesting to view config filespc - A page control for this user.
public DataResult listChannelsForFileCopy(User user,
ConfigFile current,
java.lang.String type,
PageControl pc)
user - The user requesting to view config filescurrent - The file to be copied for which we should look for
alternatives in the listed channels.
The list will exclude the channel that this file is in.type - The database type for the channel.
A label from ConfigurationFactory.CONFIG_CHANNEL_TYPE_*pc - A page control for this user.
public java.util.List listChannelsForCopy(User user,
ConfigChannel cc,
java.lang.String ccType)
user - user making the requestcc - config-channel of interestccType - channel-type of interest
public DataResult listSystemsForCopy(User user,
PageControl pc)
user - user making the requestpc - page-control
public int getSystemCount(User user,
ConfigChannel channel)
user - user making the requestchannel - channel of interest
public int getFileStorage(User user,
ConfigFile file)
user - User making the requestfile - File of interest
public int getDirCount(User user,
ConfigChannel channel)
user - user making the requestchannel - channel of interest
public int getFileCount(User user,
ConfigChannel channel)
user - user making the requestchannel - channel of interest
public DataResult getSystemInfo(User user,
ConfigChannel channel)
user - user making the requestchannel - channel of interest
public DataResult getFileInfo(User user,
ConfigChannel channel)
user - user making the requestchannel - channel of interest
public DataResult getRecentlyModifiedConfigFiles(User user,
java.lang.Integer results)
user - The user listing filesresults - The number of files to list
public DataResult getRecentConfigDeployActions(User user,
java.lang.Integer results)
user - The user listing deploy actionsresults - The number of actions to list
public ChannelSummary getChannelSummary(User user,
ConfigChannel channel)
user - user making the requestchannel - channel of interest
public DataResult<ConfigFileDto> listCurrentFiles(User user,
ConfigChannel channel,
PageControl pc)
user - user making the requestchannel - channel of interestpc - pagination control (if any)
public DataResult listCurrentFiles(User user,
ConfigChannel channel,
PageControl pc,
java.lang.String setLabel)
user - user making the requestchannel - channel of interestpc - controller/elaborator for the listsetLabel - label of set we care about, or NULL if we don't want to use a set
public DataResult listRevisionsForFile(User user,
ConfigFile file,
PageControl pc)
user - user making the requestfile - config file for which we are listing revisionspc - controller/elaborator for the list
public DataResult listChannelSystems(User user,
ConfigChannel channel,
PageControl pc)
user - user making the requestchannel - channel of interestpc - controller/elaborator for the list
public DataResult listChannelsForSystem(User user,
Server server,
PageControl pc)
user - The user requesting for a list of config channelsserver - The server subscribed to the config channelspc - A PageControl for this user
public java.util.Map getOverviewSummary(User user)
user - The user requesting information
public DataResult listSystemsNotInChannel(User user,
ConfigChannel channel,
PageControl pc)
user - user making the requestchannel - channel of interestpc - controller/elaborator for the list
public void deleteConfigChannel(User user,
ConfigChannel channel)
user - The user requesting to delete the channelchannel - The channel to be deleted.
java.lang.IllegalArgumentException - if user is not allowed to delete this
config channel (different org or not config admin).
public ConfigRevision createNewRevision(User user,
java.io.InputStream input,
java.lang.Long cfid,
java.lang.Long size)
user - The user requesting to create the revisioninput - The stream containing the revision's contentcfid - The identifier for the parent config file.size - The size of the given input stream
public ConfigRevision createNewRevision(User user,
java.io.InputStream input,
ConfigFile file,
java.lang.Long size)
user - The user requesting to create the revisioninput - The stream containing the revision's contentfile - The parent config file.size - The size of the given input stream
public boolean deleteConfigRevision(User user,
ConfigRevision revision)
user - The user requesting to delete the revisionrevision - The revision to be deleted.
java.lang.IllegalArgumentException - if user is not allowed to delete this
config revision (different org or not config admin).
public void deleteConfigFile(User user,
ConfigFile file)
user - The user requesting to delete the filefile - The file to be deleted.
java.lang.IllegalArgumentException - if user is not allowed to delete this
config file (different org or not config admin).
public void copyConfigFile(ConfigRevision revision,
ConfigChannel channel,
User user)
revision - The revision of the file to be copied.channel - The channel to which to copy.user - The user requesting to copy the file
java.lang.IllegalArgumentException - if user is not allowed to copy this
config file (different org or not config admin).
public DataResult getSuccesfulDeploysTo(User usr,
ConfigFileName cfn,
Server srv)
usr - User making the requestcfn - name of interestsrv - server of interest
public DataResult listFilesNotInChannel(User usr,
ConfigChannel cc,
PageControl pc)
usr - User making the requestcc - ConfigChannel of interestpc - A page control for this user.
public DataResult listSystemInfoForChannel(User usr,
ConfigChannel cc,
PageControl pc)
usr - User making the requestcc - ConfigChannel of interestpc - PageControl (if we're paginating)
public DataResult listSystemInfoForChannel(User usr,
ConfigChannel cc,
PageControl pc,
boolean useSet)
usr - User making the requestcc - ConfigChannel of interestpc - PageControl (if we're paginating)useSet - true if we should limit by set_label, false if we want ALL systems
in the channel
public DataResult listAvailableFilesNotInChannel(User usr,
ConfigChannel cc,
PageControl pc)
usr - User making the requestcc - ConfigChannel of interestpc - A page control for this user.
public java.util.List<? extends ConfigFileNameDto> listManagedPathsFor(Server server,
User user,
ConfigChannelType type)
server - the server who's paths are to be retrieveduser - the user needed for permission checkingtype - config channel type that holds the files
public ConfigFileCount countAllActionPaths(Server server,
Action action)
server - The server for whom the count of files
is desired.action - the action for whom the number of files
and dirs are desired.
public ConfigFileCount countSuccessfulCompares(Server server,
Action action)
server - The server for whom the count of files
is desired.action - the action for whom the number of files
and dirs are desired.
public ConfigFileCount countDifferingPaths(Server server,
Action action)
server - The server for whom the count of files
is desired.action - the action for whom the number of files
and dirs are desired.
public ConfigFileCount countLocallyManagedPaths(Server server,
User user,
ConfigChannelType cct)
server - The server for whom the count of files
is desired.user - The user required for permission purposescct - The local channel type of the to look at (local/sandbox)
public ConfigFileCount countCentrallyManagedPaths(Server server,
User user)
server - The server for whom the count of files
is desired.user - The user required for permission purposes
public ConfigFileCount countCentrallyDeployablePaths(Server server,
User user)
server - The server for whom the count of files
is desired.user - The user required for permission purposes
public ConfigChannel lookupConfigChannel(User user,
java.lang.Long id)
user - The user requesting to lookup a config channel.id - The identifier for the config channel
public ConfigChannel lookupConfigChannel(User user,
java.lang.String label,
ConfigChannelType cct)
user - The user requesting to lookup a config channel.label - The label for the ConfigChannelcct - the config channel type of the config channel.
public ConfigFile lookupConfigFile(User user,
java.lang.Long id)
user - The user requesting to lookup a config file.id - The identifier for the config file.
public ConfigFile lookupConfigFile(User user,
java.lang.Long ccid,
java.lang.String path)
user - User making the requestccid - ID of tyhe cohnfig-channel of interestpath - file-path of interest
public ConfigRevision lookupConfigRevision(User user,
java.lang.Long id)
user - The user requesting to lookup a config revision.id - The identifier for the config revision.
public boolean accessToChannel(java.lang.Long uid,
java.lang.Long ccid)
uid - The user idccid - The config channel id
public java.lang.Long getDeployableRevisionForFileName(java.lang.Long cfnid,
java.lang.Long sid)
cfnid - The config file name idsid - The server id
public void enableSystems(RhnSetDecl set,
User user,
java.util.Date earliest)
set - The set that contains systems selected for enablementuser - The user requesting to enable systemsearliest - The earliest time package actions will be scheduled.
public DataResult listGlobalFileDeployInfo(User usr,
ConfigChannel cc,
ConfigFile cf,
PageControl pc)
usr - logged-in usercc - cfg-channel of interestcf - cfg=file of interestpc - paging control for UI control
public DataResult listGlobalFileDeployInfo(User usr,
ConfigChannel cc,
ConfigFile cf,
PageControl pc,
java.lang.String setLabel)
usr - User making the requestcc - Config Channel File is incf - ConfigFile of interestpc - page-control for UI pagingsetLabel - label of limiting set, or NULL if not set-limited
public void deployConfiguration(User user,
java.util.Collection<Server> servers,
java.util.Date datePicked)
user - User needed for authentication purposes..servers - The list of servers, to whom the deploy action
needs to be scheduleddatePicked - date to deploy or null for the earliest date
public java.util.Map deployFiles(User usr,
java.util.Set fileIds,
java.util.Set systemIds,
java.util.Date datePicked)
usr - User requesting the deployfileIds - Revisions to be deployedsystemIds - Systems to deploy todatePicked - Date to schedule the deploy for
public void ensureConfigManageable(Server server)
server - the server to check.
public java.lang.Long getServerIdFor(ConfigChannel cc,
User user)
cc - the local or sandbox channeluser - the logged in user.
public boolean isDuplicated(java.lang.String label,
ConfigChannelType cct,
Org org)
label - Label of the config channelcct - the contig channel typeorg - the org of the current user
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||