public class IssMaster extends BaseDto
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CA_CERT |
static java.lang.String |
DEFAULT_MASTER |
static java.lang.String |
ID |
static java.lang.String |
LABEL |
static long |
NEW_MASTER_ID |
Constructor and Description |
---|
IssMaster() |
Modifier and Type | Method and Description |
---|---|
void |
addToMaster(IssMasterOrg org)
Add a single new master-org, to this Master
|
boolean |
equals(java.lang.Object obj)
Equality based on id
|
java.lang.String |
getCaCert()
Get filename of CA Certificate for this master
|
java.lang.Long |
getId()
Getter for id
|
protected java.lang.String |
getIsCurrentMaster()
Is this master the current-default for the Slave we're on?
|
java.lang.String |
getLabel()
Getter for label
|
java.util.Set<IssMasterOrg> |
getMasterOrgs()
Get Orgs this master has let us know about
|
int |
getNumMappedMasterOrgs()
How many master-orgs have been mapped?
|
int |
getNumMasterOrgs()
How many orgs did Master tell us about? (NOTE: we add this because you can't
do ${current.orgs.size} in the JSPs :( )
|
int |
hashCode() |
boolean |
isDefaultMaster()
Is this master the default for this slave's satellite-sync?
|
void |
makeDefaultMaster()
Make this master the default for this slave's satellite-sync operations
|
void |
resetMasterOrgs(java.util.Set<IssMasterOrg> inOrgs)
Reset the orgs for this master to a new map
|
void |
setCaCert(java.lang.String caCertIn)
Set filename of the CA Cert for this master
|
void |
setId(java.lang.Long idIn)
Setter for id
|
protected void |
setIsCurrentMaster(java.lang.String isCurrentIn)
Set this master as default, or not
NOTE: FOR HIBERNATE ONLY, use #makeDefaultMaster() instead
|
void |
setLabel(java.lang.String labelIn)
Setter for label
|
protected void |
setMasterOrgs(java.util.Set<IssMasterOrg> inOrgs)
Set the orgs for this master - protected, we want callers to either add-to the list,
or to give us a chance to do the Right Thing in terms of connecting the incoming
orgs and this master.
|
void |
unsetAsDefault()
Make sure this master is NOT the default for satellite-sync
NOTE: Preferred is to make someone else the default -but sometimes, you
just don't want a default...
|
addToSet, getSelectionKey, toString
isDisabled, isSelectable, isSelected, setDisabled, setSelected
public static final java.lang.String ID
public static final java.lang.String LABEL
public static final java.lang.String DEFAULT_MASTER
public static final java.lang.String CA_CERT
public static final long NEW_MASTER_ID
public java.lang.Long getId()
getId
in interface Identifiable
getId
in class BaseDto
public void setId(java.lang.Long idIn)
idIn
- to setpublic java.lang.String getLabel()
public void setLabel(java.lang.String labelIn)
labelIn
- to setpublic java.lang.String getCaCert()
public void setCaCert(java.lang.String caCertIn)
caCertIn
- path to the CA cert for this masterprotected java.lang.String getIsCurrentMaster()
protected void setIsCurrentMaster(java.lang.String isCurrentIn)
isCurrentIn
- - 'Y' if this is the default, 'N' elsepublic void makeDefaultMaster()
public void unsetAsDefault()
public boolean isDefaultMaster()
public java.util.Set<IssMasterOrg> getMasterOrgs()
protected void setMasterOrgs(java.util.Set<IssMasterOrg> inOrgs)
inOrgs
- orgs of the master that we know ofpublic void resetMasterOrgs(java.util.Set<IssMasterOrg> inOrgs)
inOrgs
- orgs of the master that we know ofpublic void addToMaster(IssMasterOrg org)
org
- org to be addedpublic int getNumMasterOrgs()
public int getNumMappedMasterOrgs()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The Thing we're comparing against