IMeta Interface



Summary: Shared files and Search results can both have meta-data associated with them. Use these methods with those interfaces to give your client meta-data support. The types of meta-data are completely customizable and is based off of the schemas that are loaded. Download Example Schema Files


Schemas:
  LoadSchemaDir
  GetMetaIDs
  GetMetaName
  GetMetaExtensions


Attributes:
  GetAttributeIDs
  GetAttributeName
  GetAttributeReadOnly
  GetAttributeType
  GetAttributeEnums


Back to Interface Reference



LoadSchemaDir
  Params: String DirPath
  Return: None
  Remarks: Loads schemas from a directory, *.xsd schema files and *.xml descriptor files (for file type association)


GetMetaIDs
  Params: None
  Return: Long Array
  Remarks: Returns array of loaded Meta types


GetMetaName
  Params: Long MetaID
  Return: String
  Remarks: Returns name of meta type, (video, audio, book, etc..)


GetMetaExtensions
  Params: Long MetaID
  Return: String Array
  Remarks: Returns file extensions associated with the meta type




GetAttributeIDs
  Params: Long MetaID
  Return: Long Array
  Remarks: Returns array of attributes that are associated with the meta type


GetAttributeName
  Params: Long MetaID, Long AttributeID
  Return: String
  Remarks: Returns name of attribute


GetAttributeReadOnly
  Params: Long MetaID, Long AttributeID
  Return: Bool
  Remarks: If attribute is marked read only


GetAttributeType
  Params: Long MetaID, Long AttributeID
  Return: String
  Remarks: Returns variable type of attribute (pass all attributes as strings through, converted internally)


GetAttributeEnums
  Params: Long MetaID, Long AttributeID
  Return: String Array
  Remarks: Returns an array of enum values that the attribute is able to have