@Override public void deletePartialTemplate(String partialTemplateName, int version) throws IOException, IllegalAccessException { deleteEntity(EntityType.PARTIAL_TEMPLATE, partialTemplateName, version); }
@Override public ClusterTemplate getClusterTemplate(String clusterTemplateName, int version) throws IOException { return get(EntityType.CLUSTER_TEMPLATE, clusterTemplateName, version, clusterTemplateTransform); }
@Override public Collection<AutomatorType> getAllAutomatorTypes() throws IOException { return getAllLatestEntities(EntityType.AUTOMATOR_TYPE, automatorTypeTransform); }
@Before public void setupPluginHandlerTest() throws Exception { entityStoreService.getView(SUPERADMIN_ACCOUNT).writeAutomatorType(Entities.AutomatorTypeExample.SHELL); entityStoreService.getView(SUPERADMIN_ACCOUNT).writeAutomatorType(Entities.AutomatorTypeExample.CHEF); entityStoreService.getView(SUPERADMIN_ACCOUNT).writeProviderType(Entities.ProviderTypeExample.JOYENT); }
@Before public void setupTest() throws Exception { entityStoreService.getView(ADMIN_ACCOUNT).writeClusterTemplate(smallTemplate); }
@Override public EntityStoreView getView(Account account) { if (account.isAdmin()) { return new SQLAdminEntityStoreView(account, dbConnectionPool, gson); } else { return new SQLUserEntityStoreView(account, dbConnectionPool, gson); } }
@Override public void clearState() throws Exception { sqlStore.clearData(); }
@Override public void deleteClusterTemplate(String clusterTemplateName, int version) throws IOException, IllegalAccessException { deleteEntity(EntityType.CLUSTER_TEMPLATE, clusterTemplateName, version); }
@Override public ProviderType getProviderType(String providerTypeName) throws IOException { return get(EntityType.PROVIDER_TYPE, providerTypeName, Constants.FIND_MAX_VERSION, providerTypeTransform); }
@Override public void deleteService(String serviceName, int version) throws IOException, IllegalAccessException { deleteEntity(EntityType.SERVICE, serviceName, version); }
@Override public ProviderType getProviderType(String providerTypeName, int version) throws IOException { return get(EntityType.PROVIDER_TYPE, providerTypeName, version, providerTypeTransform); }
@Override public void deleteProviderType(String providerTypeName) throws IOException, IllegalAccessException { deleteEntity(EntityType.PROVIDER_TYPE, providerTypeName); }
@Override public HardwareType getHardwareType(String hardwareTypeName) throws IOException { return get(EntityType.HARDWARE_TYPE, hardwareTypeName, Constants.FIND_MAX_VERSION, hardwareTypeTransform); }
@Override public void deleteAutomatorType(String automatorTypeName) throws IOException, IllegalAccessException { deleteEntity(EntityType.AUTOMATOR_TYPE, automatorTypeName); }
@Override public ImageType getImageType(String imageTypeName) throws IOException { return get(EntityType.IMAGE_TYPE, imageTypeName, Constants.FIND_MAX_VERSION, imageTypeTransform); }
@Override public void deleteImageType(String imageTypeName) throws IOException, IllegalAccessException { deleteEntity(EntityType.IMAGE_TYPE, imageTypeName); }
@Override public ClusterTemplate getClusterTemplate(String clusterTemplateName) throws IOException { return get(EntityType.CLUSTER_TEMPLATE, clusterTemplateName, Constants.FIND_MAX_VERSION, clusterTemplateTransform); }
@Override public void deleteService(String serviceName) throws IOException, IllegalAccessException { deleteEntity(EntityType.SERVICE, serviceName); }
@Override public AutomatorType getAutomatorType(String automatorTypeName) throws IOException { return get(EntityType.AUTOMATOR_TYPE, automatorTypeName, Constants.FIND_MAX_VERSION, automatorTypeTransform); }
@Override public void deletePartialTemplate(String partialTemplateName) throws IOException, IllegalAccessException { deleteEntity(EntityType.PARTIAL_TEMPLATE, partialTemplateName); }