public interface AppRegistryService extends AppRegistryCommon
Modifier and Type | Method and Description |
---|---|
boolean |
appExist(String name,
ApplicationType type,
String version)
Checks if an
AppRegistration with this name, type and version exists. |
void |
delete(String name,
ApplicationType type,
String version)
Deletes an
AppRegistration . |
org.springframework.data.domain.Page<AppRegistration> |
findAll(org.springframework.data.domain.Pageable pageable) |
org.springframework.data.domain.Page<AppRegistration> |
findAllByTypeAndNameIsLike(ApplicationType type,
String name,
org.springframework.data.domain.Pageable pageable) |
AppRegistration |
getDefaultApp(String name,
ApplicationType type) |
AppRegistration |
save(String name,
ApplicationType type,
String version,
URI uri,
URI metadataUri)
Saves a new
AppRegistration identified by its name, type, version and URIs. |
void |
setDefaultApp(String name,
ApplicationType type,
String version)
Set an application with name, type and version as the default for all name:type
applications.
|
appExist, find, find, findAll, getAppMetadataResource, getAppResource, getResourceVersion, getResourceVersion, getResourceWithoutVersion, importAll, save
AppRegistration getDefaultApp(String name, ApplicationType type)
name
- application nametype
- application versionvoid setDefaultApp(String name, ApplicationType type, String version)
name
- application nametype
- application typeversion
- application version.AppRegistration save(String name, ApplicationType type, String version, URI uri, URI metadataUri)
AppRegistration
identified by its name, type, version and URIs.name
- Name of the AppRegistration to savetype
- Type of the AppRegistration to saveversion
- Version of the AppRegistration to saveuri
- Resource uri of the AppRegistration to savemetadataUri
- metadata of the AppRegistration to savevoid delete(String name, ApplicationType type, String version)
AppRegistration
. If the AppRegistration
does not exist, a
NoSuchAppRegistrationException
will be thrown.name
- Name of the AppRegistration to deletetype
- Type of the AppRegistration to deleteversion
- Version of the AppRegistration to deleteboolean appExist(String name, ApplicationType type, String version)
AppRegistration
with this name, type and version exists.name
- application nametype
- application typeversion
- application version.org.springframework.data.domain.Page<AppRegistration> findAll(org.springframework.data.domain.Pageable pageable)
pageable
- Pagination informationAppRegistration
's including multiple version for the same
application. Uses the pagination.org.springframework.data.domain.Page<AppRegistration> findAllByTypeAndNameIsLike(ApplicationType type, String name, org.springframework.data.domain.Pageable pageable)
type
- appliation typename
- application namepageable
- Pagination informationAppRegistration
versions for given name and type. Uses the pagination.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.