Class LegacyMicroserviceRepository
java.lang.Object
com.cumulocity.microservice.subscription.repository.impl.LegacyMicroserviceRepository
- All Implemented Interfaces:
MicroserviceRepository
works OK with platform API older than 8.18
-
Constructor Summary
ConstructorDescriptionLegacyMicroserviceRepository
(CredentialsSwitchingPlatform platform, ApplicationApiRepresentation api) Deprecated.LegacyMicroserviceRepository
(String applicationName, String applicationKey, 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 applicationId) 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 applicationName, MicroserviceMetadataRepresentation metadata) Deprecated.
-
Constructor Details
-
LegacyMicroserviceRepository
public LegacyMicroserviceRepository(String applicationName, String applicationKey, CredentialsSwitchingPlatform platform, ApplicationApiRepresentation api) -
LegacyMicroserviceRepository
@Deprecated public LegacyMicroserviceRepository(CredentialsSwitchingPlatform platform, ApplicationApiRepresentation api) Deprecated.
-
-
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 applicationName, 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:
applicationName
- 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 applicationId) 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:
applicationId
- application identifier- Returns:
- collection of application users
-