public class QuotaTypeDeterminer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PORTAL |
static java.lang.String |
STORAGE |
Constructor and Description |
---|
QuotaTypeDeterminer(java.util.List<java.lang.String> portalNameSpaces)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
determine(org.dataone.service.types.v2.SystemMetadata sysmeta)
Determine the quota type and instance id from the object format information in the system metadata
|
java.lang.String |
getInstanceId()
Get the instance id determined in the determine method
|
java.lang.String |
getQuotaType()
Get the quota type determined in the determine method
|
public static final java.lang.String STORAGE
public static final java.lang.String PORTAL
public QuotaTypeDeterminer(java.util.List<java.lang.String> portalNameSpaces) throws org.dataone.service.exceptions.ServiceFailure
portalNameSpaces
- list of portal objects' name spaceorg.dataone.service.exceptions.ServiceFailure
public void determine(org.dataone.service.types.v2.SystemMetadata sysmeta) throws org.dataone.service.exceptions.InvalidRequest
sysmeta
- the system metadata associated with the request objectorg.dataone.service.exceptions.InvalidRequest
public java.lang.String getQuotaType()
public java.lang.String getInstanceId()
Copyright © 2023 Regents of the University of California. All Rights Reserved.