@Service public class ExternalElementsRepository extends java.lang.Object implements ExternalElementsRepositoryInterface
Modifier and Type | Field and Description |
---|---|
private BusApprovedElementInterface |
busApprovedElementRepository |
private JacksonMapper |
mapper |
Constructor and Description |
---|
ExternalElementsRepository() |
Modifier and Type | Method and Description |
---|---|
PointerBus |
fromNotificationToPointerBus(NotificationPointerBus notification) |
Assumption |
getAssumptionByIdAndVersion(java.lang.String id,
java.lang.String version)
this is the simple method to grab an assumption, version value could be null (last version is received)
|
java.util.ArrayList<Assumption> |
getAssumptionsByIdList(java.util.List<java.lang.String> list)
this method is a loop of version and id getter.
|
java.util.ArrayList<Assumption> |
getAssumptionsByPointerBusList(java.util.List<PointerBus> list)
this method is a loop of version and id getter.If there's an error, function returns empty List
|
java.util.ArrayList<Assumption> |
getAssumptionsByTags(java.util.List<java.lang.String> tags) |
ContextFactor |
getContextFactorByIdAndVersion(java.lang.String id,
java.lang.String version)
* this is the simple method to grab a context factor, version value could be null (last version is received)
|
java.util.ArrayList<ContextFactor> |
getContextFactorsByIdList(java.util.List<java.lang.String> list)
this method is a loop of version and id getter.If there's an error, function returns empty List
|
java.util.ArrayList<ContextFactor> |
getContextFactorsByPointerBusList(java.util.List<PointerBus> list)
this method is a loop of version and id getter.If there's an error, function returns empty List
|
java.util.ArrayList<ContextFactor> |
getContextFactorsByTags(java.util.List<java.lang.String> tags) |
InstanceProject |
getInstanceProjectByIdAndVersion(java.lang.String id,
java.lang.String version)
* this is the simple method to grab an instance project, version value could be null (last version is received)
|
OrganizationalGoal |
getOrganizationalGoalByIdAndVersion(java.lang.String id,
java.lang.String version)
* this is the simple method to grab an organizational goal, version value could be null (last version is received)
|
NotificationPointerBus |
pointerOfIncomingNotificationObject(java.lang.String data) |
@Autowired private BusApprovedElementInterface busApprovedElementRepository
@Autowired private JacksonMapper mapper
public Assumption getAssumptionByIdAndVersion(@Nonnull java.lang.String id, java.lang.String version) throws BusException, java.io.IOException, BadInputException
getAssumptionByIdAndVersion
in interface ExternalElementsRepositoryInterface
id
- version
- BusException
java.io.IOException
BadInputException
public ContextFactor getContextFactorByIdAndVersion(@Nonnull java.lang.String id, java.lang.String version) throws java.io.IOException, BusException, BadInputException
getContextFactorByIdAndVersion
in interface ExternalElementsRepositoryInterface
id
- version
- java.io.IOException
BusException
BadInputException
public OrganizationalGoal getOrganizationalGoalByIdAndVersion(@Nonnull java.lang.String id, java.lang.String version) throws java.io.IOException, BusException, BadInputException
getOrganizationalGoalByIdAndVersion
in interface ExternalElementsRepositoryInterface
id
- version
- java.io.IOException
BusException
BadInputException
public InstanceProject getInstanceProjectByIdAndVersion(@Nonnull java.lang.String id, java.lang.String version) throws java.io.IOException, BusException, BadInputException
getInstanceProjectByIdAndVersion
in interface ExternalElementsRepositoryInterface
id
- version
- java.io.IOException
BusException
BadInputException
public java.util.ArrayList<Assumption> getAssumptionsByIdList(@Nonnull java.util.List<java.lang.String> list) throws java.io.IOException, BusException, BadInputException
getAssumptionsByIdList
in interface ExternalElementsRepositoryInterface
list
- java.io.IOException
BusException
BadInputException
public java.util.ArrayList<ContextFactor> getContextFactorsByIdList(@Nonnull java.util.List<java.lang.String> list) throws java.io.IOException, BusException, BadInputException
getContextFactorsByIdList
in interface ExternalElementsRepositoryInterface
list
- java.io.IOException
BusException
BadInputException
public java.util.ArrayList<Assumption> getAssumptionsByPointerBusList(@Nonnull java.util.List<PointerBus> list) throws java.io.IOException, BusException, BadInputException
getAssumptionsByPointerBusList
in interface ExternalElementsRepositoryInterface
list
- java.io.IOException
BusException
BadInputException
public java.util.ArrayList<ContextFactor> getContextFactorsByPointerBusList(@Nonnull java.util.List<PointerBus> list) throws java.io.IOException, BusException, BadInputException
getContextFactorsByPointerBusList
in interface ExternalElementsRepositoryInterface
list
- java.io.IOException
BusException
BadInputException
public NotificationPointerBus pointerOfIncomingNotificationObject(java.lang.String data) throws java.io.IOException
pointerOfIncomingNotificationObject
in interface ExternalElementsRepositoryInterface
java.io.IOException
public PointerBus fromNotificationToPointerBus(NotificationPointerBus notification)
fromNotificationToPointerBus
in interface ExternalElementsRepositoryInterface
public java.util.ArrayList<Assumption> getAssumptionsByTags(@Nonnull java.util.List<java.lang.String> tags) throws java.lang.Exception
getAssumptionsByTags
in interface ExternalElementsRepositoryInterface
java.lang.Exception
public java.util.ArrayList<ContextFactor> getContextFactorsByTags(@Nonnull java.util.List<java.lang.String> tags) throws java.lang.Exception
getContextFactorsByTags
in interface ExternalElementsRepositoryInterface
java.lang.Exception