Skip to content
Snippets Groups Projects
Commit bf9a797f authored by cramakri's avatar cramakri
Browse files

Added rootLevel to the persistent entity

SVN: 27272
parent 32bd3e03
No related merge requests found
......@@ -54,6 +54,8 @@
@property (nonatomic, retain) NSString * propertiesJson;
@property (readonly) NSArray * properties;
@property (nonatomic, retain) NSNumber * rootLevel;
///! The image contained at the imageUrl or nil if there is no image. Could be a UIImage or CIImage depending on the platform.
@property (nonatomic, strong) id image;
......
......@@ -36,6 +36,7 @@
@dynamic imageUrl;
@dynamic childrenPermIdsJson;
@dynamic propertiesJson;
@dynamic rootLevel;
@synthesize image;
......@@ -101,6 +102,7 @@
if (rawEntity.identifier) self.identifier = rawEntity.identifier;
if (rawEntity.imageUrl) self.imageUrl = rawEntity.imageUrl;
if (rawEntity.properties) self.propertiesJson = rawEntity.properties;
if (rawEntity.rootLevel) self.rootLevel = [NSNumber numberWithBool: [rawEntity.rootLevel length] > 0];
}
@end
......@@ -10,12 +10,13 @@
<attribute name="properties" optional="YES" transient="YES" syncable="YES"/>
<attribute name="propertiesJson" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="refcon" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="rootLevel" optional="YES" attributeType="Boolean" syncable="YES"/>
<attribute name="summary" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="summaryHeader" optional="YES" attributeType="String" syncable="YES"/>
</entity>
<fetchRequest name="EntitiesByPermIds" entity="CISDOBIpadEntity" predicateString="permId IN $PERM_IDS" fetchBatchSize="20"/>
<fetchRequest name="EntityAndChildren" entity="CISDOBIpadEntity" predicateString="SELF == $ENTITY OR permId IN $CHILDREN" fetchBatchSize="20"/>
<elements>
<element name="CISDOBIpadEntity" positionX="0" positionY="0" width="0" height="0"/>
<element name="CISDOBIpadEntity" positionX="0" positionY="0" width="128" height="225"/>
</elements>
</model>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment