Class MicroserviceSubscriptionsRepository
java.lang.Object
com.cumulocity.microservice.subscription.repository.MicroserviceSubscriptionsRepository
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionMicroserviceSubscriptionsRepository
(MicroserviceRepository repository, PlatformProperties platformProperties) -
Method Summary
Modifier and TypeMethodDescriptiondiffWithCurrentSubscriptions
(List<MicroserviceCredentials> credentials) Optional<com.cumulocity.rest.representation.application.ApplicationRepresentation>
register
(MicroserviceMetadataRepresentation metadata) Optional<com.cumulocity.rest.representation.application.ApplicationRepresentation>
register
(String applicationName, MicroserviceMetadataRepresentation metadata) Deprecated.retrieveSubscriptions
(String applicationId) void
updateCurrentSubscriptions
(Collection<MicroserviceCredentials> subscriptions)
-
Constructor Details
-
MicroserviceSubscriptionsRepository
@ConstructorProperties({"repository","platformProperties"}) @Autowired public MicroserviceSubscriptionsRepository(MicroserviceRepository repository, PlatformProperties platformProperties)
-
-
Method Details
-
getCurrentSubscriptions
-
register
public Optional<com.cumulocity.rest.representation.application.ApplicationRepresentation> register(MicroserviceMetadataRepresentation metadata) -
register
@Deprecated public Optional<com.cumulocity.rest.representation.application.ApplicationRepresentation> register(String applicationName, MicroserviceMetadataRepresentation metadata) Deprecated. -
retrieveSubscriptions
public MicroserviceSubscriptionsRepository.Subscriptions retrieveSubscriptions(String applicationId) -
diffWithCurrentSubscriptions
public MicroserviceSubscriptionsRepository.Subscriptions diffWithCurrentSubscriptions(List<MicroserviceCredentials> credentials) -
updateCurrentSubscriptions
-