From d2d8a85aa6c56195368f7ec563a98afb6861acd9 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 21 Feb 2018 15:47:50 +0100 Subject: Remember aggregated ids --- common/domain/applicationdomaintype.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'common/domain/applicationdomaintype.cpp') diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index 8bb74e3..c315e33 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp @@ -184,6 +184,7 @@ ApplicationDomainType& ApplicationDomainType::operator=(const ApplicationDomainT mResourceInstanceIdentifier = other.mResourceInstanceIdentifier; mIdentifier = other.mIdentifier; mRevision = other.mRevision; + mAggreatedIds = other.mAggreatedIds; return *this; } @@ -262,6 +263,21 @@ QByteArray ApplicationDomainType::identifier() const return mIdentifier; } +bool ApplicationDomainType::isAggregate() const +{ + return !mAggreatedIds.isEmpty(); +} + +QVector ApplicationDomainType::aggregatedIds() const +{ + return mAggreatedIds; +} + +QVector &ApplicationDomainType::aggregatedIds() +{ + return mAggreatedIds; +} + SinkResource::SinkResource(const QByteArray &identifier) : ApplicationDomainType("", identifier, 0, QSharedPointer(new MemoryBufferAdaptor())) { -- cgit v1.2.3