Class LegacyMicroserviceRepository
- java.lang.Object
-
- com.cumulocity.microservice.subscription.repository.impl.LegacyMicroserviceRepository
-
- All Implemented Interfaces:
MicroserviceRepository
public class LegacyMicroserviceRepository extends Object implements MicroserviceRepository
works OK with platform API older than 8.18
-
-
Constructor Summary
Constructors Constructor Description LegacyMicroserviceRepository(CredentialsSwitchingPlatform platform, ApplicationApiRepresentation api)
Deprecated.LegacyMicroserviceRepository(String applicationName, String applicationKey, CredentialsSwitchingPlatform platform, ApplicationApiRepresentation api)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.cumulocity.rest.representation.application.ApplicationRepresentation
getCurrentApplication()
Iterable<com.cumulocity.rest.representation.application.ApplicationUserRepresentation>
getSubscriptions()
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 Detail
-
LegacyMicroserviceRepository
public LegacyMicroserviceRepository(String applicationName, String applicationKey, CredentialsSwitchingPlatform platform, ApplicationApiRepresentation api)
-
LegacyMicroserviceRepository
@Deprecated public LegacyMicroserviceRepository(CredentialsSwitchingPlatform platform, ApplicationApiRepresentation api)
Deprecated.
-
-
Method Detail
-
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
-
-