-
Notifications
You must be signed in to change notification settings - Fork 2
/
IMetadataDefinition.cs
75 lines (65 loc) · 2.91 KB
/
IMetadataDefinition.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
using System;
using GalleryServerPro.Business.Metadata;
namespace GalleryServerPro.Business.Interfaces
{
/// <summary>
/// Represents the definition of a type of metadata that is associated with media objects. Note that this is not an actual
/// piece of metadata, but rather defines the behavior of metadata stored in <see cref="IGalleryObjectMetadataItem" />.
/// </summary>
public interface IMetadataDefinition : IComparable<IMetadataDefinition>
{
/// <summary>
/// Gets or sets the name of the metadata item.
/// </summary>
/// <value>The metadata item.</value>
MetadataItemName MetadataItem { get; set; }
/// <summary>
/// Gets the string representation of the <see cref="MetadataItem" /> property.
/// </summary>
/// <value>A string.</value>
string Name { get; }
/// <summary>
/// Gets or sets the user-friendly name to apply to this metadata item.
/// </summary>
/// <value>A string.</value>
string DisplayName { get; set; }
/// <summary>
/// Gets or sets a value indicating whether metadata items of this type are visible for albums.
/// </summary>
/// <value><c>true</c> if metadata items of this type are visible for albums; otherwise, <c>false</c>.</value>
bool IsVisibleForAlbum { get; set; }
/// <summary>
/// Gets or sets a value indicating whether metadata items of this type are visible for gallery objects.
/// </summary>
/// <value><c>true</c> if metadata items of this type are visible for gallery objects; otherwise, <c>false</c>.</value>
bool IsVisibleForGalleryObject { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this metadata item can be edited by the user. The user
/// must also have permission to edit the album or media object.
/// </summary>
/// <value><c>true</c> if this metadata item can be edited by the user; otherwise, <c>false</c>.</value>
bool IsEditable { get; set; }
/// <summary>
/// Gets or sets the template to use when adding a metadata item for a new album or media object.
/// Values of the <see cref="MetadataItemName" /> can be used as replacement parameters.
/// Example: "{IsoSpeed} - {LensAperture}"
/// </summary>
/// <value>A string.</value>
string DefaultValue { get; set; }
/// <summary>
/// Gets or sets the order this metadata item is to be displayed in relation to other metadata items.
/// </summary>
/// <value>The order this metadata item is to be displayed in relation to other metadata items.</value>
int Sequence { get; set; }
/// <summary>
/// Gets or sets the gallery ID this metadata definition is associated with.
/// </summary>
/// <value>The gallery ID this metadata definition is associated with.</value>
//int GalleryId { get; set; }
/// <summary>
/// Gets the data type of the metadata item. Returns either <see cref="DateTime" /> or <see cref="System.String" />.
/// </summary>
/// <value>The type of the metadata item.</value>
Type DataType { get; }
}
}