diff options
Diffstat (limited to 'common/domain/applicationdomaintype.cpp')
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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 | |||
184 | mResourceInstanceIdentifier = other.mResourceInstanceIdentifier; | 184 | mResourceInstanceIdentifier = other.mResourceInstanceIdentifier; |
185 | mIdentifier = other.mIdentifier; | 185 | mIdentifier = other.mIdentifier; |
186 | mRevision = other.mRevision; | 186 | mRevision = other.mRevision; |
187 | mAggreatedIds = other.mAggreatedIds; | ||
187 | return *this; | 188 | return *this; |
188 | } | 189 | } |
189 | 190 | ||
@@ -262,6 +263,21 @@ QByteArray ApplicationDomainType::identifier() const | |||
262 | return mIdentifier; | 263 | return mIdentifier; |
263 | } | 264 | } |
264 | 265 | ||
266 | bool ApplicationDomainType::isAggregate() const | ||
267 | { | ||
268 | return !mAggreatedIds.isEmpty(); | ||
269 | } | ||
270 | |||
271 | QVector<QByteArray> ApplicationDomainType::aggregatedIds() const | ||
272 | { | ||
273 | return mAggreatedIds; | ||
274 | } | ||
275 | |||
276 | QVector<QByteArray> &ApplicationDomainType::aggregatedIds() | ||
277 | { | ||
278 | return mAggreatedIds; | ||
279 | } | ||
280 | |||
265 | SinkResource::SinkResource(const QByteArray &identifier) | 281 | SinkResource::SinkResource(const QByteArray &identifier) |
266 | : ApplicationDomainType("", identifier, 0, QSharedPointer<BufferAdaptor>(new MemoryBufferAdaptor())) | 282 | : ApplicationDomainType("", identifier, 0, QSharedPointer<BufferAdaptor>(new MemoryBufferAdaptor())) |
267 | { | 283 | { |