projects
/
gpl
/
argeo-suite.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce entity:relatedTo mixin.
[gpl/argeo-suite.git]
/
org.argeo.entity.api
/
src
/
org
/
argeo
/
entity
/
entity.cnd
diff --git
a/org.argeo.entity.api/src/org/argeo/entity/entity.cnd
b/org.argeo.entity.api/src/org/argeo/entity/entity.cnd
index 12d1ba69a2fa25b70bc347f7f3212dc30d1fe7f8..0b3127b305115cf16c82412b1f1b23df15825bdb 100644
(file)
--- a/
org.argeo.entity.api/src/org/argeo/entity/entity.cnd
+++ b/
org.argeo.entity.api/src/org/argeo/entity/entity.cnd
@@
-2,28
+2,35
@@
<xsd = "http://www.w3.org/2001/XMLSchema">
<h = "http://www.w3.org/1999/xhtml">
// see https://www.w3.org/2003/01/geo/
<xsd = "http://www.w3.org/2001/XMLSchema">
<h = "http://www.w3.org/1999/xhtml">
// see https://www.w3.org/2003/01/geo/
-//<geo = "http://www.w3.org/2003/01/geo/wgs84_pos#">
+<geo = "http://www.w3.org/2003/01/geo/wgs84_pos#">
+<svg = "http://www.w3.org/2000/svg">
-<ld
if = "http://www.argeo.org/ns/ldif
">
+<ld
ap = "http://www.argeo.org/ns/ldap
">
<entity = 'http://www.argeo.org/ns/entity'>
[entity:entity] > mix:created, mix:referenceable
mixin
<entity = 'http://www.argeo.org/ns/entity'>
[entity:entity] > mix:created, mix:referenceable
mixin
-//- entity:uid (String) m // an implementation dependent UID for each entity
-//- entity:type (String) // the type of this entity
+
+[entity:local] > entity:entity
+mixin
+- entity:type (String) m
+
+[entity:relatedTo]
+mixin
++ entity:relatedTo (nt:address) *
//
// ENTITY DEFINITION
//
//
// ENTITY DEFINITION
//
-[entity:definition] > entity:composite, mix:created, mix:lastModified, mix:referenceable
+
//
[entity:definition] > entity:composite, mix:created, mix:lastModified, mix:referenceable
//- entity:type (String) multiple
//[entity:part]
//[entity:reference]
//- entity:type (String) multiple
//[entity:part]
//[entity:reference]
-[entity:composite]
-orderable
+
//
[entity:composite]
+
//
orderable
//+ * (entity:part)
//+ * (entity:reference)
//+ * (entity:composite)
//+ * (entity:part)
//+ * (entity:reference)
//+ * (entity:composite)
@@
-56,9
+63,34
@@
mixin
[entity:formSet] > mix:title
mixin
[entity:formSet] > mix:title
mixin
+//
+// GRAPHICS
+//
+[entity:box]
+mixin
+- svg:width (DOUBLE)
+- svg:height (DOUBLE)
+- svg:length (DOUBLE)
+- svg:unit (STRING)
+- svg:dur (DOUBLE)
+
// LDAP-LIKE ENTITIES
// A real person
[entity:person] > entity:entity
mixin
// LDAP-LIKE ENTITIES
// A real person
[entity:person] > entity:entity
mixin
-- ldif:sn (String)
-- ldif:givenName (String)
+- ldap:sn (String)
+- ldap:givenName (String)
+- ldap:mail (String) *
+
+[entity:user] > entity:person
+mixin
+- ldap:distinguishedName (String)
+- ldap:uid (String)
+
+// GEOGRAPHY
+[entity:geopoint]
+mixin
+- geo:long (DOUBLE)
+- geo:lat (DOUBLE)
+- geo:alt (DOUBLE)
+