Documentation
MODULE
usage
<MODULE ID="number">
<INFO>
<ID>number</ID>
<CREATORID>contactID</CREATORID>
<OWNERID>contactID</OWNERID>
<GROUPID>groupID</GROUPID>
<MODIFIERID>contactID</MODIFIERID>
<CREATIONDATE>YYYY-MM-DD hh:mm:ss</CREATIONDATE><!-- automatically filled by Sushee -->
<MODIFICATIONDATE>YYYY-MM-DD hh:mm:ss</MODIFICATIONDATE><!-- automatically filled by Sushee -->
<DENOMINATION>text</DENOMINATION>
<TABLENAME>text</TABLENAME>
<EXTENDS>module denomination</EXTENDS><!-- will use the same table as the module extended -->
<ADVANCEDSECURITY>0/1</ADVANCEDSECURITY>
</INFO>
<DEPENDENCIES>
<DEPENDENCY type="fields">
<FIELD ID="number"/>
</DEPENDENCY>
<DEPENDENCY type="processors">
<PROCESSOR ID="number"/>
</DEPENDENCY>
<DEPENDENCY type="officity:moduleNamespaces">
<NAMESPACE ID="number"/>
</DEPENDENCY>
<DEPENDENCY type="officity:moduleApps">
<APP ID="number"/>
</DEPENDENCY>
</DEPENDENCIES>
</MODULE>
Describes an object type in Sushee. Can be used to create new object types, if the native objects (CONTACT, MEDIA) don't meet your needs.
You will need to create a namespace first in order to create new object types. All your new objects will be prefixed with this namespace.
Once a new object type is created, you can add fields to this object type using the FIELD object.
exemples
Create the namespace that identifies you are the editor and creator of the object :
<CREATE>
<NAMESPACE>
<NAMESPACE>bma</NAMESPACE>
<URL>http://bma.com</URL>
</INFO>
</CREATE>
Create the new type of object :
<CREATE>
<MODULE>
<INFO>
<DENOMINATION>bma:project</DENOMINATION>
</INFO>
<DEPENDENCY type="officity:moduleNamespaces">
<NAMESPACE ID="4"/>
</DEPENDENCY>
</MODULE>
</CREATE>
Create new fields in this new object :
<CREATE>
<FIELD>
<INFO>
<DENOMINATION>Code</DENOMINATION>
<TYPE>text</TYPE>
<MODULE>bma:project</MODULE>
</INFO>
</FIELD>
</CREATE>
<CREATE>
<FIELD>
<INFO>
<DENOMINATION>EventStart</DENOMINATION>
<TYPE>date</TYPE>
<MODULE>bma:project</MODULE>
</INFO>
</FIELD>
</CREATE>
Create another object that extends a native object :
<CREATE>
<MODULE>
<INFO>
<DENOMINATION>bma:employee</DENOMINATION>
<EXTENDS>contact</EXTENDS>
</INFO>
</MODULE>
</CREATE>
<CREATE>
<FIELD>
<INFO>
<DENOMINATION>Function</DENOMINATION>
<TYPE>text</TYPE>
<MODULE>bma:employee</MODULE>
</INFO>
</FIELD>
</CREATE>
Allow to link both objects together :
<CREATE>
<DEPENDENCYENTITY>
<DEPENDENCYTYPE type="start" from="bma:project" to="bma:employee">
<TYPE>bma:worksOn</TYPE>
<DENOMINATION>
<LABEL languageID="eng">works on</LABEL>
</DENOMINATION>
</DEPENDENCYTYPE>
</DEPENDENCYENTITY>
</CREATE>
Use the new objects :
<CREATE>
<BMA:PROJECT>
<INFO>
<CODE>A344</CODE>
<EVENTSTART>2011-03-16</EVENTSTART>
</INFO>
<DEPENDENCIES>
<DEPENDENCY type="bma:worksOn">
<BMA:EMPLOYEE>
<INFO>
<FIRSTNAME>Javier</FIRSTNAME>
<LASTNAME>Rojas</LASTNAME>
<BMA:EMPLOYEE_FUNCTION>Project Manager</BMA:EMPLOYEE_FUNCTION>
</INFO>
</BMA:EMPLOYEE>
</DEPENDENCY>
</DEPENDENCIES>
</BMA:PROJECT>
</CREATE>