Release 2.x‎ > ‎Install - Reference‎ > ‎Config Ref Guide‎ > ‎Definitions‎ > ‎

Definition

Definition is an abstract object. It can be used to model (represent) many actual objects (Person, Role, Group, Computer, etc.)

Syntax

<Definition id="Person">
   <Properties>
      <Property name="definition.classname"   value="org.openptk.definition.BasicSubject"/>
      <Property name="definition.description" value="A generic employee,customer,consultant"/>
      <Property name="definition.password"    value="password"/>
      <Property name="definition.role"        value="Roles"/>
   </Properties>
   <Attributes>
      <Attribute id="...">
      ...
   </Attributes>
</Definition>

Arguments

NameRequiredDescriptionExample
idYesA unique identifier for the Definitionid="Person"

Properties

NameRequiredDescriptionExample
definition.classnameYesThe fully qualified name of a Class that implements the Subject interfaceorg.openptk.definition.BasicSubject
definition.password  MaybeThe name of the Attribute that stores the "password" ... used to authenticate the Subject

This Property is required if the Subject represents an actual End-User that will need to authenticate to the OpenPTK infrastructure.
 password