Class CurrentMicroserviceRepository
java.lang.Object
com.cumulocity.microservice.subscription.repository.impl.CurrentMicroserviceRepository
- All Implemented Interfaces:
MicroserviceRepository
works with platform API >= 8.18
-
Constructor Summary
ConstructorsConstructorDescriptionCurrentMicroserviceRepository(CredentialsSwitchingPlatform platform, ApplicationApiRepresentation api) -
Method Summary
Modifier and TypeMethodDescriptioncom.cumulocity.rest.representation.application.ApplicationRepresentationIterable<com.cumulocity.rest.representation.application.ApplicationUserRepresentation>Iterable<com.cumulocity.rest.representation.application.ApplicationUserRepresentation>getSubscriptions(String notUsedApplicationId) Method is Deprecated and will be removed in the future.com.cumulocity.rest.representation.application.ApplicationRepresentationregister(MicroserviceMetadataRepresentation metadata) com.cumulocity.rest.representation.application.ApplicationRepresentationregister(String applicationNameNotUsed, MicroserviceMetadataRepresentation metadata) Deprecated.
-
Constructor Details
-
CurrentMicroserviceRepository
public CurrentMicroserviceRepository(CredentialsSwitchingPlatform platform, ApplicationApiRepresentation api)
-
-
Method Details
-
register
public com.cumulocity.rest.representation.application.ApplicationRepresentation register(MicroserviceMetadataRepresentation metadata) - Specified by:
registerin interfaceMicroserviceRepository
-
register
@Deprecated public com.cumulocity.rest.representation.application.ApplicationRepresentation register(String applicationNameNotUsed, MicroserviceMetadataRepresentation metadata) Deprecated.Description copied from interface:MicroserviceRepositoryMethod is Deprecated and will be removed in the future UseMicroserviceRepository.register(MicroserviceMetadataRepresentation)method instead.- Specified by:
registerin interfaceMicroserviceRepository- Parameters:
applicationNameNotUsed- application namemetadata- microservice metadata- Returns:
- application representation
-
getCurrentApplication
public com.cumulocity.rest.representation.application.ApplicationRepresentation getCurrentApplication()- Specified by:
getCurrentApplicationin interfaceMicroserviceRepository
-
getSubscriptions
public Iterable<com.cumulocity.rest.representation.application.ApplicationUserRepresentation> getSubscriptions()- Specified by:
getSubscriptionsin interfaceMicroserviceRepository
-
getSubscriptions
public Iterable<com.cumulocity.rest.representation.application.ApplicationUserRepresentation> getSubscriptions(String notUsedApplicationId) Description copied from interface:MicroserviceRepositoryMethod is Deprecated and will be removed in the future. UseMicroserviceRepository.getSubscriptions()method instead.- Specified by:
getSubscriptionsin interfaceMicroserviceRepository- Parameters:
notUsedApplicationId- application identifier- Returns:
- collection of application users
-