new AffiliationService()
Methods
-
create(req, registrar)
-
Create a new affiliation. The caller must have hf.AffiliationMgr authority.
Parameters:
Name Type Description req
AffiliationRequest Required. The AffiliationRequest registrar
User 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 req
AffiliationRequest Required. The AffiliationRequest registrar
User 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 registrar
User 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 affiliation
string The affiliation path to be queried. registrar
User 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 affiliation
string The affiliation path to be updated req
AffiliationRequest Required. The AffiliationRequest registrar
User Returns:
- Type
- Promise