new AffiliationService()
Methods
-
create(req, registrar)
-
Create a new affiliation. The caller must have hf.AffiliationMgr authority.
Parameters:
Name Type Description reqAffiliationRequest Required. The AffiliationRequest registrarUser Required. The identity of the registrar (i.e. who is performing the registration). Returns:
- Type
- Promise
-
delete(req, registrar)
-
Delete an affiliation. The caller must have hf.AffiliationMgr authority.
Parameters:
Name Type Description reqAffiliationRequest Required. The AffiliationRequest registrarUser Required. The identity of the registrar (i.e. who is performing the registration). Returns:
- Type
- Promise
-
getAll(registrar)
-
List all affiliations equal to and below the caller's affiliation. The caller must have hf.AffiliationMgr authority.
Parameters:
Name Type Description registrarUser Required. The identity of the registrar (i.e. who is performing the registration). Returns:
- Type
- Promise
-
getOne(affiliation, registrar)
-
List a specific affiliation at or below the caller's affinity. The caller must have hf.AffiliationMgr authority.
Parameters:
Name Type Description affiliationstring The affiliation path to be queried. registrarUser Required. The identity of the registrar (i.e. who is performing the registration). Returns:
- Type
- Promise
-
update(affiliation, req, registrar)
-
Rename an affiliation. The caller must have hf.AffiliationMgr authority.
Parameters:
Name Type Description affiliationstring The affiliation path to be updated reqAffiliationRequest Required. The AffiliationRequest registrarUser Returns:
- Type
- Promise