public class XmlRpcConfigChannelHelper
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
| ConfigRevision | createOrUpdatePath(User loggedInUser,
                  ConfigChannel channel,
                  java.lang.String path,
                  ConfigFileType type,
                  java.util.Map<java.lang.String,java.lang.Object> data)Creates a NEW path(file/directory) with the given path or updates an existing path
 with the given contents in a given channel. | 
| static XmlRpcConfigChannelHelper | getInstance() | 
| ConfigChannel | lookupGlobal(User user,
            java.lang.String label)Helper method to lookup a config channel from a config channel label | 
| java.util.List<ConfigChannel> | lookupGlobals(User user,
             java.util.List<java.lang.String> labels)Helper method to lookup a list of config channels from channel labels | 
public static XmlRpcConfigChannelHelper getInstance()
public ConfigChannel lookupGlobal(User user, java.lang.String label)
user - The user looking up the serverlabel - The label of the config channel we're looking forpublic java.util.List<ConfigChannel> lookupGlobals(User user, java.util.List<java.lang.String> labels)
user - The user looking up the serverlabels - The labels of the config channels we're looking forpublic ConfigRevision createOrUpdatePath(User loggedInUser, ConfigChannel channel, java.lang.String path, ConfigFileType type, java.util.Map<java.lang.String,java.lang.Object> data)
loggedInUser - logged in userchannel - the config channel who holds the file.path - the path of the given text file.type - the config file typedata - a map containing properties pertaining to the given path..
 for directory paths - 'data' will hold values for ->
  owner, group, permissions, revision, selinux_ctx
 for file paths -  'data' will hold values for->
  contents, owner, group, permissions, selinux_ctx
      macro-start-delimiter, macro-end-delimiter, revision
 for symlinks paths -  'data' will hold values for->
  target_path, revision, selinux_ctx