public class HFCAAffiliation extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HFCAAffiliation.HFCAAffiliationResp
Response of affiliation requests
|
Modifier and Type | Method and Description |
---|---|
HFCAAffiliation.HFCAAffiliationResp |
create(User registrar)
create an affiliation
|
HFCAAffiliation.HFCAAffiliationResp |
create(User registrar,
boolean force)
create an affiliation
|
HFCAAffiliation |
createDecendent(String name)
The identities affected during request
|
HFCAAffiliation.HFCAAffiliationResp |
delete(User registrar)
delete an affiliation
|
HFCAAffiliation.HFCAAffiliationResp |
delete(User registrar,
boolean force)
delete an affiliation
|
HFCAAffiliation |
getChild(String name)
Gets child affiliation by name
|
Collection<HFCAAffiliation> |
getChildren()
The names of all affiliations
affected by request
|
Collection<HFCAIdentity> |
getIdentities()
The identities affected during request.
|
String |
getName()
The name of the affiliation
|
String |
getUpdateName()
The name of the new affiliation
|
boolean |
isDeleted()
Returns true if the affiliation has been deleted
|
int |
read(User registrar)
gets a specific affiliation
|
void |
setUpdateName(String updateName)
The name of the new affiliation
|
HFCAAffiliation.HFCAAffiliationResp |
update(User registrar)
update an affiliation
|
HFCAAffiliation.HFCAAffiliationResp |
update(User registrar,
boolean force)
update an affiliation
|
public String getName()
public String getUpdateName() throws AffiliationException
AffiliationException
public void setUpdateName(String updateName) throws AffiliationException
AffiliationException
public Collection<HFCAAffiliation> getChildren() throws AffiliationException
AffiliationException
public Collection<HFCAIdentity> getIdentities() throws AffiliationException
AffiliationException
public HFCAAffiliation createDecendent(String name) throws InvalidArgumentException, AffiliationException
name
- Name of the child affiliationInvalidArgumentException
AffiliationException
public HFCAAffiliation getChild(String name) throws AffiliationException, InvalidArgumentException
name
- Name of the child affiliation to getAffiliationException
InvalidArgumentException
public boolean isDeleted()
public int read(User registrar) throws AffiliationException, InvalidArgumentException
registrar
- The identity of the registrarAffiliationException
- if getting an affiliation fails.InvalidArgumentException
public HFCAAffiliation.HFCAAffiliationResp create(User registrar) throws AffiliationException, InvalidArgumentException
registrar
- The identity of the registrar (i.e. who is performing the registration).AffiliationException
- if adding an affiliation fails.InvalidArgumentException
public HFCAAffiliation.HFCAAffiliationResp create(User registrar, boolean force) throws AffiliationException, InvalidArgumentException
registrar
- The identity of the registrar (i.e. who is performing the registration).force
- Forces the creation of parent affiliationsAffiliationException
- if adding an affiliation fails.InvalidArgumentException
public HFCAAffiliation.HFCAAffiliationResp update(User registrar) throws AffiliationException, InvalidArgumentException
registrar
- The identity of the registrar (i.e. who is performing the registration).AffiliationException
- If updating an affiliation failsInvalidArgumentException
public HFCAAffiliation.HFCAAffiliationResp update(User registrar, boolean force) throws AffiliationException, InvalidArgumentException
registrar
- The identity of the registrar (i.e. who is performing the registration).force
- Forces updating of child affiliationsAffiliationException
- If updating an affiliation failsInvalidArgumentException
public HFCAAffiliation.HFCAAffiliationResp delete(User registrar) throws AffiliationException, InvalidArgumentException
registrar
- The identity of the registrar (i.e. who is performing the registration).AffiliationException
- if deleting an affiliation fails.InvalidArgumentException
public HFCAAffiliation.HFCAAffiliationResp delete(User registrar, boolean force) throws AffiliationException, InvalidArgumentException
registrar
- The identity of the registrar (i.e. who is performing the registration).force
- Forces the deletion of affiliationAffiliationException
- if deleting an affiliation fails.InvalidArgumentException
Copyright © 2022. All rights reserved.