/** * {@inheritDoc} */ @Override public String getStorageProviderType() { return type.name(); }
public String getName() { return name(); } }
public static StorageProviderType fromString(String pt) { for (StorageProviderType pType : values()) { if (pType.text.equalsIgnoreCase(pt) || pType.name().equalsIgnoreCase(pt)) { return pType; } } return StorageProviderType.UNKNOWN; }
protected void queueContentDeleteAuditTasks(final String spaceId, final String userId) { final String storeType = unwrappedSnapshotProvider.getStorageProviderType().name();
xml.append("<id>"+acctId+"</id>"); xml.append("<storageProviderType>"); xml.append(type.name()); xml.append("</storageProviderType>"); xml.append("<storageProviderCredential>");
/** * This method returns a ResourceType from the arg type id. * Allowable types are the names from the two enums: * - StorageProviderType * - DuraCloudUserType * * @param type id for ResourceType * @return ResourceType corresponding to the arg type id. * @throws UnknownResourceTypeException if arg type id not recognized. */ public static ResourceType fromString(String type) { // check if arg is a StorageProviderType for (StorageProviderType pType : StorageProviderType.values()) { if (pType.toString().equalsIgnoreCase(type) || pType.name().equalsIgnoreCase(type)) { return new ResourceType(type); } } // check if arg is a DuraCloudUserType for (DuraCloudUserType uType : DuraCloudUserType.values()) { if (uType.toString().equalsIgnoreCase(type) || uType.name().equalsIgnoreCase(type)) { return new ResourceType(type); } } throw new UnknownResourceTypeException(type); }