public class OrgHandler extends BaseHandler
VALID
Constructor and Description |
---|
OrgHandler() |
Modifier and Type | Method and Description |
---|---|
OrgDto |
create(User loggedInUser,
java.lang.String orgName,
java.lang.String adminLogin,
java.lang.String adminPassword,
java.lang.String prefix,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email,
java.lang.Boolean usePamAuth)
Create a new organization.
|
int |
delete(User loggedInUser,
java.lang.Integer orgId)
Delete an organization.
|
int |
getCrashFileSizeLimit(User loggedInUser,
java.lang.Integer orgId)
Get organization wide crash file size limit.
|
OrgDto |
getDetails(User loggedInUser,
java.lang.Integer orgId)
Returns the detailed information about an organization
given the org_id.
|
OrgDto |
getDetails(User loggedInUser,
java.lang.String name)
Returns the detailed information about an organization
given the org_name.
|
java.util.Map<java.lang.String,java.lang.Object> |
getPolicyForScapFileUpload(User loggedInUser,
java.lang.Integer orgId)
Get the status of SCAP detailed result file upload settings for the given
organization.
|
java.util.Map<java.lang.String,java.lang.Object> |
getPolicyForScapResultDeletion(User loggedInUser,
java.lang.Integer orgId)
Get the status of SCAP result deletion settings for the given organization.
|
boolean |
isCrashfileUploadEnabled(User loggedInUser,
java.lang.Integer orgId)
Get the status of crash file upload settings for the given organization.
|
boolean |
isCrashReportingEnabled(User loggedInUser,
java.lang.Integer orgId)
Get the status of crash reporting settings for the given organization.
|
boolean |
isErrataEmailNotifsForOrg(User loggedInUser,
java.lang.Integer orgId)
Returns whether errata e-mail notifications are enabled for the organization
|
boolean |
isOrgConfigManagedByOrgAdmin(User loggedInUser,
java.lang.Integer orgId)
Returns whether Organization Administrator is able to manage his organization
configuration.
|
java.util.List<OrgDto> |
listOrgs(User loggedInUser)
Returns the list of organizations.
|
java.util.List |
listUsers(User loggedInUser,
java.lang.Integer orgId)
Returns the list of active users in a given organization
|
java.lang.Object[] |
migrateSystems(User loggedInUser,
java.lang.Integer toOrgId,
java.util.List<java.lang.Integer> sids)
Migrate systems from one organization to another.
|
int |
setCrashFileSizeLimit(User loggedInUser,
java.lang.Integer orgId,
java.lang.Integer limit)
Set organization wide crash file size limit.
|
java.lang.Integer |
setCrashfileUpload(User loggedInUser,
java.lang.Integer orgId,
java.lang.Boolean enable)
Set the status of crash file upload settings for the given organization.
|
java.lang.Integer |
setCrashReporting(User loggedInUser,
java.lang.Integer orgId,
java.lang.Boolean enable)
Set the status of crash reporting settings for the given organization.
|
java.lang.Integer |
setErrataEmailNotifsForOrg(User loggedInUser,
java.lang.Integer orgId,
java.lang.Boolean enable)
Dis/enables errata e-mail notifications for the organization
|
java.lang.Integer |
setOrgConfigManagedByOrgAdmin(User loggedInUser,
java.lang.Integer orgId,
java.lang.Boolean enable)
Sets whether Organization Administrator can manage his organization configuration
|
int |
setPolicyForScapFileUpload(User loggedInUser,
java.lang.Integer orgId,
java.util.Map<java.lang.String,java.lang.Object> newSettings)
Set the status of SCAP detailed result file upload settings for the given
organization.
|
int |
setPolicyForScapResultDeletion(User loggedInUser,
java.lang.Integer orgId,
java.util.Map<java.lang.String,java.lang.Object> newSettings)
Set the status of SCAP result deletion settings for the given organization.
|
OrgDto |
updateName(User loggedInUser,
java.lang.Integer orgId,
java.lang.String name) |
ensureConfigAdmin, ensureOrgAdmin, ensureOrgOrConfigAdmin, ensureSatAdmin, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, providesAuthentication, setEntityAttribute, validateClientCertificate, validateEntitlements, validateMap, verifyOrgExists
public OrgDto create(User loggedInUser, java.lang.String orgName, java.lang.String adminLogin, java.lang.String adminPassword, java.lang.String prefix, java.lang.String firstName, java.lang.String lastName, java.lang.String email, java.lang.Boolean usePamAuth)
loggedInUser
- The current userorgName
- Organization name. Must meet same criteria as in the web UI.adminLogin
- New administrator login name for the new org.adminPassword
- New administrator password.prefix
- New administrator's prefix.firstName
- New administrator's first name.lastName
- New administrator's last name.email
- New administrator's e-mail.usePamAuth
- Should PAM authentication be used for new administrators account.public java.util.List<OrgDto> listOrgs(User loggedInUser)
loggedInUser
- The current userpublic int delete(User loggedInUser, java.lang.Integer orgId)
loggedInUser
- The current userorgId
- ID of organization to delete.public java.util.List listUsers(User loggedInUser, java.lang.Integer orgId)
loggedInUser
- The current userorgId
- the orgId of the organization to lookup on.public OrgDto getDetails(User loggedInUser, java.lang.Integer orgId)
loggedInUser
- The current userorgId
- the orgId of the organization to lookup on.public OrgDto getDetails(User loggedInUser, java.lang.String name)
loggedInUser
- The current username
- the name of the organization to lookup on.public OrgDto updateName(User loggedInUser, java.lang.Integer orgId, java.lang.String name)
loggedInUser
- The current userorgId
- the orgId of the organization to set name onname
- the new name for the org.public java.lang.Object[] migrateSystems(User loggedInUser, java.lang.Integer toOrgId, java.util.List<java.lang.Integer> sids) throws FaultException
loggedInUser
- The current usertoOrgId
- destination organization ID.sids
- System IDs.FaultException
- A FaultException is thrown if:
- The user performing the request is not an organization administrator
- The user performing the request is not a satellite administrator, but the
from org id is different than the user's org id.
- The from and to org id provided are the same.
- One or more of the servers provides do not exist
- The origination or destination organization does not exist
- The user is not defined in the destination organization's trustpublic int getCrashFileSizeLimit(User loggedInUser, java.lang.Integer orgId)
loggedInUser
- The current userorgId
- Organization ID to set the limit for.public int setCrashFileSizeLimit(User loggedInUser, java.lang.Integer orgId, java.lang.Integer limit)
loggedInUser
- The current userorgId
- Organization ID to set the limit for.limit
- The limit to set.public boolean isCrashReportingEnabled(User loggedInUser, java.lang.Integer orgId)
loggedInUser
- The current userorgId
- Organization ID to set the limit for.public java.lang.Integer setCrashReporting(User loggedInUser, java.lang.Integer orgId, java.lang.Boolean enable)
loggedInUser
- The current userorgId
- Organization ID to set the limit for.enable
- Boolean to indicate desired settings.public boolean isCrashfileUploadEnabled(User loggedInUser, java.lang.Integer orgId)
loggedInUser
- The current userorgId
- Organization ID to set the limit for.public java.lang.Integer setCrashfileUpload(User loggedInUser, java.lang.Integer orgId, java.lang.Boolean enable)
loggedInUser
- The current userorgId
- Organization ID to set the limit for.enable
- Boolean to indicate desired settings.public java.util.Map<java.lang.String,java.lang.Object> getPolicyForScapFileUpload(User loggedInUser, java.lang.Integer orgId)
loggedInUser
- The current userorgId
- ID of organization to query.public int setPolicyForScapFileUpload(User loggedInUser, java.lang.Integer orgId, java.util.Map<java.lang.String,java.lang.Object> newSettings)
loggedInUser
- The current userorgId
- ID of organization to work with.newSettings
- New settings of the SCAP detailed result file upload.public java.util.Map<java.lang.String,java.lang.Object> getPolicyForScapResultDeletion(User loggedInUser, java.lang.Integer orgId)
loggedInUser
- The current userorgId
- ID of organization to query.public int setPolicyForScapResultDeletion(User loggedInUser, java.lang.Integer orgId, java.util.Map<java.lang.String,java.lang.Object> newSettings)
loggedInUser
- The current userorgId
- ID of organization to work with.newSettings
- New settings of the SCAP result deletion settings.public boolean isOrgConfigManagedByOrgAdmin(User loggedInUser, java.lang.Integer orgId)
loggedInUser
- The current userorgId
- affected organizationpublic java.lang.Integer setOrgConfigManagedByOrgAdmin(User loggedInUser, java.lang.Integer orgId, java.lang.Boolean enable)
loggedInUser
- The current userorgId
- affected organization idenable
- boolean to indicate permissions of Organization Administrator to manage
organization configurationpublic boolean isErrataEmailNotifsForOrg(User loggedInUser, java.lang.Integer orgId)
loggedInUser
- The current userorgId
- affected organizationpublic java.lang.Integer setErrataEmailNotifsForOrg(User loggedInUser, java.lang.Integer orgId, java.lang.Boolean enable)
loggedInUser
- The current userorgId
- affected organization idenable
- boolean to indicate errata e-mail notifications are enabled
for the organization