Class AutoregisterMicroserviceRepository
java.lang.Object
com.cumulocity.microservice.subscription.repository.impl.AutoregisterMicroserviceRepository
- All Implemented Interfaces:
MicroserviceRepository
This class should be used with services which are not managed by Core Platform.
This usually means internal Cumulocity services with customized helm deployments,
it works properly with "current bootstrap" user credentials (eg. servicebootstrap_lwm2m)
-
Constructor Summary
ConstructorsConstructorDescriptionAutoregisterMicroserviceRepository(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 applicationName, MicroserviceMetadataRepresentation metadata) Method is Deprecated and will be removed in the future UseMicroserviceRepository.register(MicroserviceMetadataRepresentation)method instead.
-
Constructor Details
-
AutoregisterMicroserviceRepository
public AutoregisterMicroserviceRepository(CredentialsSwitchingPlatform platform, ApplicationApiRepresentation api)
-
-
Method Details
-
register
public com.cumulocity.rest.representation.application.ApplicationRepresentation register(MicroserviceMetadataRepresentation metadata) - Specified by:
registerin interfaceMicroserviceRepository
-
register
public com.cumulocity.rest.representation.application.ApplicationRepresentation register(String applicationName, MicroserviceMetadataRepresentation metadata) Description copied from interface:MicroserviceRepositoryMethod is Deprecated and will be removed in the future UseMicroserviceRepository.register(MicroserviceMetadataRepresentation)method instead.- Specified by:
registerin interfaceMicroserviceRepository- Parameters:
applicationName- 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
-