Class QuotaTypeDeterminer
java.lang.Object
edu.ucsb.nceas.metacat.dataone.quota.QuotaTypeDeterminer
A class to decide the quota type (storage, portal and etc) based on the given name space
- Author:
- tao
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
determine
(org.dataone.service.types.v2.SystemMetadata sysmeta) Determine the quota type and instance id from the object format information in the system metadataGet the instance id determined in the determine methodGet the quota type determined in the determine method
-
Field Details
-
STORAGE
- See Also:
-
PORTAL
- See Also:
-
-
Constructor Details
-
Method Details
-
determine
public void determine(org.dataone.service.types.v2.SystemMetadata sysmeta) throws org.dataone.service.exceptions.InvalidRequest Determine the quota type and instance id from the object format information in the system metadata- Parameters:
sysmeta
- the system metadata associated with the request object- Throws:
org.dataone.service.exceptions.InvalidRequest
-
getQuotaType
Get the quota type determined in the determine method- Returns:
- the string of the quota type
-
getInstanceId
Get the instance id determined in the determine method- Returns:
- the string of the instance id
-