Jump to: navigation, search

Difference between revisions of "HowTo:Assign a Classification to a MetaClass"


 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
There are two ways to provide a [[MetaClass]] with a [[Data-_and_Object_Model#MetaClass_.26_Classification|Classification]]:
+
[[Entity_Data_Model#MetaClass_.26_Classification|Classifications]], either [[:Category:Classifications|built-in]] or own created, can be assigned to a MetaClass enriching its features and behavior. For example, it is possible to define objects eg. as [[DOCUMENT|documents]], [[SYSCLS_GEO|Points of Interest]], [[SYSCLS_TASK|Tasks]], etc.
  
# Navigate to the [[Namespace]] '''System.Classification''' in the ''[[Class Browser]]''<br/>[[File:UI_Classification_01.PNG|220 px|border|alt=Classification|Classification]]
+
# Navigate to a classification object in the {{CB}} (here: built-in only)<br/>[[File:UI_Classification_01.PNG|220 px|border|alt=Classification|Classification]]
#* Set a '''Classification''' on the '''MetaClass''' of the object using the ''[[Class Details#Classification|Class Details]]'' control using the dragging and dropping functionality<br/>[[File:UI Classification_02.PNG|220px|border|alt=Classification|Classification]]
+
# Assign a classification to a MetaClass either by
#* Set a '''Classification''' on the '''MetaClass''' of the object using the ''[[Relation_Editor#Drag_.26_Drop|Relation Editor]]'' control using the dragging and dropping functionality<br/>[[File:UI Classification_03.PNG|220px|border|alt=Classification|Classification]]
+
#* using the ''[[Class Details#Classification|Classification View]]'' of the {{Class_Details}} control and drag and drop the classification object onto the MetaClass<br/>[[File:UI Classification_02.PNG|220px|border|alt=Classification|Classification]]
 +
#* using the ''[[Relation_Editor#Drag_.26_Drop|Relation Editor]]'' control to relate a classification to the MetaClass via the [[SYSREL_CLASSIFICATION]] relation<br/>[[File:CLASSIFICATION_01.PNG|450px|border|alt=Relation Editor|Relation Editor]]
 +
# Ensure, that the [[MetaClass]] implements all the [[MetaProperty|MetaProperties]] which are defined by the Classification. Use e.g. the [[Class Details]] Control to [[HowTo:Add_a_MetaProperty_to_a_MetaClass|add the needed properties]].<!--
 +
-->{{Hint| If a classification presupposes MetaProperties you will have to implement all of them to conform the definiton!}}
 +
# Use the [[Object Explorer]] to check whether the Classification is fully implemented: The related classification must be shown under ''AllClassificationInterfaces'' and once all properties are available, you must see your classification under ''AllImplementedClassificationInterfaces''.<br/>[[File:CLASSIFICATION_02.PNG|700px|border|alt=Object Explorer|Object Explorer]]<!--
 +
-->{{Hint|You will find the implemented Classification and all the classification it derives from in the ''AllImplementedClassificationInterfaces'' section.}}
 +
# Once you classified the object(s) you need to ensure that the data is transfered to the clients (e.g. mobile clients) via the [[Web Service]]. Therefore you need to create a [[ContextScope]] for your MetaClass and add all the defined properties to it via the Relation Editor.
 +
# Add the Context Scope to the Application / Context. <br/>[[File:UI_HowTo_Prepare_a_Document_for_Redlining_04.png|500 px|border|alt=Create context scopes|Create context scopes]]
 +
#* As an alternative to defining the classification on the MetaClass, you can relate the classification directly to the Context Scope by adding it to the [[SYSREL_SCOPE_CLASSIFICATION]] within the ACM.<!--
 +
-->{{Attention|Use this way only if it is not possible to define the classificatoin on the MetaClass (e.g. Queries)}}
 +
# Use the ACM Manager to verify the final definitions. You must find the ID of the implemented classification in the list of ''Classifications''. <br/>[[File:CLASSIFICATION_03.PNG|700px|border|alt=Class Details|ACM Manager]]
  
{{Hint| Don't forget to add the [[MetaProperty]]'s if a '''Classification''' need some!}}
+
==See also==
 +
* [[HowTo:Add_a_MetaProperty_to_a_MetaClass|Add a MetaProperty to a MetaClass]]
 +
* [[ACM Manager]]
 +
* [[Object Explorer]]
 +
* [[Relation Editor]]
  
[[Category:How-To]] [[Category:UBIK Client]]
+
[[Category:Classifying|Assign a Classification to a MetaClass]]
 +
[[Category:How-To|Assign a Classification to a MetaClass]]

Latest revision as of 10:51, 21 July 2015

Classifications, either built-in or own created, can be assigned to a MetaClass enriching its features and behavior. For example, it is possible to define objects eg. as documents, Points of Interest, Tasks, etc.

  1. Navigate to a classification object in the Class Browser (here: built-in only)
    Classification
  2. Assign a classification to a MetaClass either by
  3. Ensure, that the MetaClass implements all the MetaProperties which are defined by the Classification. Use e.g. the Class Details Control to add the needed properties.
    IC Hint square.png If a classification presupposes MetaProperties you will have to implement all of them to conform the definiton!
  4. Use the Object Explorer to check whether the Classification is fully implemented: The related classification must be shown under AllClassificationInterfaces and once all properties are available, you must see your classification under AllImplementedClassificationInterfaces.
    Object Explorer
    IC Hint square.pngYou will find the implemented Classification and all the classification it derives from in the AllImplementedClassificationInterfaces section.
  5. Once you classified the object(s) you need to ensure that the data is transfered to the clients (e.g. mobile clients) via the Web Service. Therefore you need to create a ContextScope for your MetaClass and add all the defined properties to it via the Relation Editor.
  6. Add the Context Scope to the Application / Context.
    Create context scopes
    • As an alternative to defining the classification on the MetaClass, you can relate the classification directly to the Context Scope by adding it to the SYSREL SCOPE CLASSIFICATION within the ACM.
      IC Attention.pngUse this way only if it is not possible to define the classificatoin on the MetaClass (e.g. Queries)
  7. Use the ACM Manager to verify the final definitions. You must find the ID of the implemented classification in the list of Classifications.
    Class Details

See also