public class MasterHandler extends BaseHandler
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String[] | REQUIRED_MASTER_ORG_ATTRS | 
| static java.lang.String[] | VALID_MASTER_ORG_ATTRS | 
VALID| Constructor and Description | 
|---|
| MasterHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | addToMaster(User loggedInUser,
           java.lang.Integer masterId,
           java.util.Map<java.lang.String,java.lang.Object> newOrg)Add a single organizations to the list of those the specified Master has
 exported to this Slave | 
| IssMaster | create(User loggedInUser,
      java.lang.String label)Create a new Master, known to this Slave. | 
| int | delete(User loggedInUser,
      java.lang.Integer masterId)Removes a specified Master | 
| IssMaster | getDefaultMaster(User loggedInUser)Return the current default-Master for this Slave | 
| IssMaster | getMaster(User loggedInUser,
         java.lang.Integer masterId)Find a Master by specifying its ID | 
| IssMaster | getMasterByLabel(User loggedInUser,
                java.lang.String masterLabel)Find a Master by specifying its label | 
| java.util.List<IssMasterOrg> | getMasterOrgs(User loggedInUser,
             java.lang.Integer masterId)List all organizations the specified Master has exported to this Slave | 
| java.util.List<IssMaster> | getMasters(User loggedInUser)Get all the Masters this Slave knows about | 
| int | makeDefault(User loggedInUser,
           java.lang.Integer masterId)Make the specified Master the default for this Slave's satellite-sync | 
| int | mapToLocal(User loggedInUser,
          java.lang.Integer masterId,
          java.lang.Integer masterOrgId,
          java.lang.Integer localOrgId)Map a given master-organization to a specific local-organization | 
| int | setCaCert(User loggedInUser,
         java.lang.Integer masterId,
         java.lang.String caCertFilename)Set the CA-CERT filename for specified Master on this Slave | 
| int | setMasterOrgs(User loggedInUser,
             java.lang.Integer masterId,
             java.util.List<java.util.Map<java.lang.String,java.lang.Object>> orgMaps)Reset all organizations the specified Master has exported to this Slave | 
| int | unsetDefaultMaster(User loggedInUser)Make this slave have no default Master for satellite-sync | 
| IssMaster | update(User loggedInUser,
      java.lang.Integer masterId,
      java.lang.String newLabel)Updates the label of the specified Master | 
ensureConfigAdmin, ensureOrgAdmin, ensureOrgOrConfigAdmin, ensureSatAdmin, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, providesAuthentication, setEntityAttribute, validateClientCertificate, validateEntitlements, validateMap, verifyOrgExistspublic static final java.lang.String[] VALID_MASTER_ORG_ATTRS
public static final java.lang.String[] REQUIRED_MASTER_ORG_ATTRS
public IssMaster create(User loggedInUser, java.lang.String label)
loggedInUser - The current userlabel - Master's fully-qualified domain namepublic IssMaster update(User loggedInUser, java.lang.Integer masterId, java.lang.String newLabel)
loggedInUser - The current usermasterId - Id of the Master to updatenewLabel - new labelpublic int delete(User loggedInUser, java.lang.Integer masterId)
loggedInUser - The current usermasterId - Id of the Master to removepublic int makeDefault(User loggedInUser, java.lang.Integer masterId)
loggedInUser - The current usermasterId - Id of the Master to be the defaultpublic IssMaster getDefaultMaster(User loggedInUser)
loggedInUser - The current userpublic int unsetDefaultMaster(User loggedInUser)
loggedInUser - The current userpublic int setCaCert(User loggedInUser, java.lang.Integer masterId, java.lang.String caCertFilename)
loggedInUser - The current usermasterId - Id of the Master we're affectingcaCertFilename - path to this Master's CA Cert on this Slavepublic IssMaster getMaster(User loggedInUser, java.lang.Integer masterId)
loggedInUser - The current usermasterId - Id of the Master to look forpublic IssMaster getMasterByLabel(User loggedInUser, java.lang.String masterLabel)
loggedInUser - The current usermasterLabel - Label of the Master to look forpublic java.util.List<IssMaster> getMasters(User loggedInUser)
loggedInUser - The current userpublic java.util.List<IssMasterOrg> getMasterOrgs(User loggedInUser, java.lang.Integer masterId)
loggedInUser - The current usermasterId - Id of the Master to look forpublic int setMasterOrgs(User loggedInUser, java.lang.Integer masterId, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> orgMaps)
loggedInUser - The current usermasterId - Id of the Master to look fororgMaps - List of MasterOrgs we know aboutpublic int addToMaster(User loggedInUser, java.lang.Integer masterId, java.util.Map<java.lang.String,java.lang.Object> newOrg)
loggedInUser - The current usermasterId - Id of the Master to look fornewOrg - new master-organization to addpublic int mapToLocal(User loggedInUser, java.lang.Integer masterId, java.lang.Integer masterOrgId, java.lang.Integer localOrgId)
loggedInUser - The current usermasterId - Id of the Master to look formasterOrgId - id of the master-organization to work withlocalOrgId - id of the local organization to map to masterOrgId