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