summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-07-15 17:12:37 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-07-15 17:12:37 +0200
commitcc1911d53b481548c082ced3081d8b587a0ddd74 (patch)
tree7685d6e347e89e9ea8f49b7a3c17660aab13247f /common
parent718028e6dfb8f6a3c1e5d48d8306484e28ae332c (diff)
downloadsink-cc1911d53b481548c082ced3081d8b587a0ddd74.tar.gz
sink-cc1911d53b481548c082ced3081d8b587a0ddd74.zip
Support for creating accounts via sinksh
Diffstat (limited to 'common')
-rw-r--r--common/domain/applicationdomaintype.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h
index d969cc8..0742cfc 100644
--- a/common/domain/applicationdomaintype.h
+++ b/common/domain/applicationdomaintype.h
@@ -134,6 +134,17 @@ public:
134 return object; 134 return object;
135 } 135 }
136 136
137 template <class DomainType>
138 static DomainType createEntity(const QByteArray &resourceInstanceIdentifier, const QByteArray &identifier)
139 {
140 if (identifier.isEmpty()) {
141 return createEntity<DomainType>(resourceInstanceIdentifier);
142 }
143 DomainType object(resourceInstanceIdentifier);
144 object.mIdentifier = identifier;
145 return object;
146 }
147
137 virtual ~ApplicationDomainType(); 148 virtual ~ApplicationDomainType();
138 149
139 bool hasProperty(const QByteArray &key) const; 150 bool hasProperty(const QByteArray &key) const;