Class CurrentMicroserviceRepository
- java.lang.Object
-
- com.cumulocity.microservice.subscription.repository.impl.CurrentMicroserviceRepository
-
- All Implemented Interfaces:
MicroserviceRepository
public class CurrentMicroserviceRepository extends Object implements MicroserviceRepository
works with platform API >= 8.18
-
-
Constructor Summary
Constructors Constructor Description CurrentMicroserviceRepository(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 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 Detail
-
CurrentMicroserviceRepository
public CurrentMicroserviceRepository(CredentialsSwitchingPlatform platform, ApplicationApiRepresentation api)
-
-
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 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
-
-