Data for configuration of profile-manager, input and output funcs.
List of Global Functions
CheckNameValidity - Checks if the name of the new profile consists of valid characters: [a-zA-Z0-9_-.]
GetDefaultResourceGroups - get the map of default resource groups
GetHashMarks - Gets the hash marks (to show in ProgressPopup) from the hashfile
GetProgressText - Reads the file with the progress informations.
GetResourceGroupResources - Gets resources of resource group.
GetResourceGroups - Returns all available resource groups.
GetUsernames - Return list of user names available in system First time, read it using yast2-users, use cache for later calls.
GetUsers - Return the map of users able to run scpm
GetUsersAllowed - Check if users are able to switch profiles
Modified - Was anything modified?
ProgressPopup - Popup for showing progress informations
Read - Read all profile-manager settings
ReadConfigFile - reads a contents of scpm config file (/etc/scpm.conf)
ReadResourceGroups - Reads all available resource groups.
ReadUsers - Read the set of users allowed to run SCPM
RebuildDB - Rebuilds SCPM database after changing resources.
Recover - Calls SCPM::Recover (false) function, which replays journal after the crash (started in separate agen'ts thread, return value must be checked with Wait)
ResetResourceGroup - Resets one resource group to default values
ResetResourceGroups - Resets RG's to default values
Rollback - Calls SCPM::Recover (true)
SaveResourceGroups - Save the resource groups edited in YaST UI
SetUsers - Upodate the global map of users
Wait - Checks the return value of agent's thread
Write - Write all profile-manager settings
WriteConfigFile - writes configuration data to scpm config file (/etc/scpm.conf)
WriteResourceGroups - function for writing modifications in resource groups
WriteSCPMStatus - Enables or disables SCPM (depends on value of enabled variable).
WriteStatus - general function for writing status (enable/disable)
WriteStatusFirst - Enables SCPM for the first time
WriteUsers - Write new set of users allowed to run scpm
WriteUsersAllowed - Write the new status if the users are allowed to run SCPM or not
List of Global Variables
conf_modified - if SCPM configuration (stored in scpm_conf map) was modified
enabled - Is SCPM enabled?
hash_size - how many times was progress bar used
initialized - Is SCPM initialized? This is set to true after first enabling.
needs_recover - Is SCPM recovery? (after something failed)
needs_reinit - Is SCPM re-initialization needed? (possibly after update)
resource_groups - all resource groups available; filled by ReadResourceGroups()
resource_groups_deleted - list of resource groups marked for deletion
resource_groups_modified - if resource groups were modified
scpm_conf - this map holds the contents of scpm.conf configuration file
scpm_error - When scpm action fails, the error message is stored here by SetError()
status_modified - Was enabled/disabled status changed?
users_allowed - If users are available to switch profiles
users_modified - if list of users was modified
Checks if the name of the new profile consists of valid characters: [a-zA-Z0-9_-.]
Function parameters
string name
Return value
boolean - true if valid
Gets the hash marks (to show in ProgressPopup) from the hashfile
Return value
integer - number of characters in hashfile
Reads the file with the progress informations.
Function parameters
boolean everything
Return value
string - the text to show in ProgressPopup (one line in normal case)
Gets resources of resource group.
Function parameters
string groupname
Return value
list - of resources
Returns all available resource groups.
Return value
map<string,map> - of groups
Return list of user names available in system First time, read it using yast2-users, use cache for later calls.
Return value
list<string> - of user names (for local users)
Popup for showing progress informations
Function parameters
string position
integer start
integer end
Return value
boolean - true
reads a contents of scpm config file (/etc/scpm.conf)
Return value
boolean - false when file doesn't exist
Reads all available resource groups.
Return value
boolean - true on success
Rebuilds SCPM database after changing resources.
Return value
boolean - true on success
Calls SCPM::Recover (false) function, which replays journal after the crash (started in separate agen'ts thread, return value must be checked with Wait)
Return value
void
Resets one resource group to default values
Function parameters
string groupname
Return value
boolean - success
Save the resource groups edited in YaST UI
Return value
boolean - success
Upodate the global map of users
Function parameters
map<string,string> current_users
Return value
boolean
Checks the return value of agent's thread
Return value
boolean - true if thread finished succesfully
writes configuration data to scpm config file (/etc/scpm.conf)
Return value
boolean - true
function for writing modifications in resource groups
Return value
boolean
Enables or disables SCPM (depends on value of enabled variable).
Return value
boolean - true on success