Beispiel #1
0
 public Resource(ResourceId resourceId, string revision, string checkedOutTo, DateTime? checkedOutAt, 
     List<VersionId> versionIds, VersionId currentVersionId, Metadata metadata, 
     List<Security.UsageRight> usageRights)
     : this(resourceId, revision, versionIds, currentVersionId, metadata, usageRights)
 {
     CheckedOutTo = checkedOutTo;
     CheckedOutAt = checkedOutAt;
 }
Beispiel #2
0
 public Resource(ResourceId resourceId, string revision, List<VersionId> versionIds, 
     VersionId currentVersionId, Metadata metadata, List<Security.UsageRight> usageRights)
 {
     ResourceId = resourceId;
     Revision = revision;
     VersionIds = versionIds;
     CurrentVersionId = currentVersionId;
     Metadata = metadata;
     UsageRights = usageRights;
 }
 public ResourceResult(ResourceId resourceId, string revision, List<VersionId> versionIds,
     VersionId currentVersionId, Metadata metadata, List<Security.UsageRight> usageRights)
     : base(resourceId, revision, versionIds, currentVersionId, metadata, usageRights)
 {
 }
 public VersionResult(VersionId versionId, string revision, Metadata metadata, Content content)
     : base(versionId, revision, metadata, content)
 {
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Version"/> class.
 /// </summary>
 /// <param name="versionId">The <see cref="VersionId"/>.</param>
 /// <param name="revision">The revision.</param>
 /// <param name="metadata">The <see cref="Metadata"/>.</param>
 /// <param name="content">The content.</param>
 /// <remarks>
 /// Enables actions: all
 /// </remarks>
 public Version(VersionId versionId, string revision, Metadata metadata, Content content)
 {
     VersionId = versionId;
     Revision = revision;
     Metadata = metadata;
     if (Metadata == null) Metadata = new Data.Metadata();
     Content = content;
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Version"/> class.
 /// </summary>
 /// <param name="versionId">The <see cref="VersionId"/>.</param>
 /// <param name="revision">The revision.</param>
 /// <param name="metadata">The <see cref="Metadata"/>.</param>
 /// <remarks>Enables actions: <see cref="ActionsType.Delete"/>,
 ///     <see cref="ActionsType.HeadCurrentRevision"/>,
 ///     <see cref="ActionsType.HeadSpecificRevision"/>,
 ///     <see cref="ActionsType.GetCurrentRevision"/>,
 ///     <see cref="ActionsType.GetSpecificRevision"/>,
 ///     <see cref="ActionsType.CreateWithoutPropertiesOrContent"/>,
 ///     <see cref="ActionsType.CreateWithPropertiesWithoutContent"/>,
 ///     <see cref="ActionsType.UpdateWithoutPropertiesOrContent"/>,
 ///     <see cref="ActionsType.UpdateWithPropertiesWithoutContent"/>.
 /// </remarks>
 public Version(VersionId versionId, string revision, Metadata metadata)
     : this(versionId, revision, metadata, null)
 {
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Version"/> class.
 /// </summary>
 /// <param name="versionId">The <see cref="VersionId"/>.</param>
 /// <param name="metadata">The <see cref="Metadata"/>.</param>
 /// <param name="content">The <see cref="Content"/>.</param>
 /// <remarks>Enables actions: <see cref="ActionsType.HeadCurrentRevision"/>, 
 ///     <see cref="ActionsType.GetCurrentRevision"/>,
 ///     <see cref="ActionsType.CreateWithoutPropertiesOrContent"/>,
 ///     <see cref="ActionsType.CreateWithPropertiesWithoutContent"/>,
 ///     <see cref="ActionsType.CreateWithoutPropertiesWithContent"/>,
 ///     <see cref="ActionsType.CreateWithPropertiesAndContent"/>.
 /// </remarks>
 public Version(VersionId versionId, Metadata metadata, Content content)
     : this(versionId, null, metadata, content)
 {
 }
Beispiel #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Version"/> class.
 /// </summary>
 /// <param name="versionId">The <see cref="VersionId"/>.</param>
 /// <param name="metadata">The <see cref="Metadata"/>.</param>
 /// <remarks>Enables actions: <see cref="ActionsType.HeadCurrentRevision"/>, 
 ///     <see cref="ActionsType.GetCurrentRevision"/>,
 ///     <see cref="ActionsType.CreateWithoutPropertiesOrContent"/>,
 ///     <see cref="ActionsType.CreateWithPropertiesWithoutContent"/>.
 /// </remarks>
 public Version(VersionId versionId, Metadata metadata)
     : this(versionId, null, metadata, null)
 {
 }