public class SlaveHandler extends BaseHandler
VALID| Constructor and Description | 
|---|
| SlaveHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| IssSlave | create(User loggedInUser,
      java.lang.String inSlave,
      java.lang.Boolean inEnabled,
      java.lang.Boolean inAllowAllOrgs)Create a new Slave, known to this Master. | 
| int | delete(User loggedInUser,
      java.lang.Integer inSlaveId)Removes a specified Slave | 
| java.util.List<java.lang.Integer> | getAllowedOrgs(User loggedInUser,
              java.lang.Integer slaveId)Get all the orgs that this Master is willing to export to the specified Slave | 
| IssSlave | getSlave(User loggedInUser,
        java.lang.Integer slaveId)Find a Slave by specifying its ID | 
| IssSlave | getSlaveByName(User loggedInUser,
              java.lang.String slaveFqdn)Find a Slave by specifying its Fully-Qualified Domain Name | 
| java.util.List<IssSlave> | getSlaves(User loggedInUser)Get all the Slaves this Master knows about | 
| int | setAllowedOrgs(User loggedInUser,
              java.lang.Integer slaveId,
              java.util.List<java.lang.Integer> orgIds)Set the orgs that this Master is willing to export to the specified Slave | 
| IssSlave | update(User loggedInUser,
      java.lang.Integer inSlaveId,
      java.lang.String inSlave,
      java.lang.Boolean inEnabled,
      java.lang.Boolean inAllowAllOrgs)Updates attributes of the specified Slave | 
ensureConfigAdmin, ensureOrgAdmin, ensureOrgOrConfigAdmin, ensureSatAdmin, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, providesAuthentication, setEntityAttribute, validateClientCertificate, validateEntitlements, validateMap, verifyOrgExistspublic IssSlave create(User loggedInUser, java.lang.String inSlave, java.lang.Boolean inEnabled, java.lang.Boolean inAllowAllOrgs)
loggedInUser - The current userinSlave - Slave's fully-qualified domain nameinEnabled - Is this Slave allowed to talk to us?inAllowAllOrgs - Should we export all orgs to this Slave?public IssSlave update(User loggedInUser, java.lang.Integer inSlaveId, java.lang.String inSlave, java.lang.Boolean inEnabled, java.lang.Boolean inAllowAllOrgs)
loggedInUser - The current userinSlaveId - id of Slave to updateinSlave - Slave's fully-qualified domain nameinEnabled - Is this Slave allowed to talk to us?inAllowAllOrgs - Should we export all orgs to this Slave?public int delete(User loggedInUser, java.lang.Integer inSlaveId)
loggedInUser - The current userinSlaveId - Id of the Slave to removepublic IssSlave getSlave(User loggedInUser, java.lang.Integer slaveId)
loggedInUser - The current userslaveId - Id of the Slave to look forpublic IssSlave getSlaveByName(User loggedInUser, java.lang.String slaveFqdn)
loggedInUser - The current userslaveFqdn - Domain name of the Slave to look forpublic java.util.List<IssSlave> getSlaves(User loggedInUser)
loggedInUser - The current userpublic java.util.List<java.lang.Integer> getAllowedOrgs(User loggedInUser, java.lang.Integer slaveId)
loggedInUser - The current userslaveId - Id of the Slave to look forpublic int setAllowedOrgs(User loggedInUser, java.lang.Integer slaveId, java.util.List<java.lang.Integer> orgIds)
loggedInUser - The current userslaveId - Id of the Slave to look fororgIds - List of org-ids we're willing to export