예제 #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;
 }
예제 #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;
 }
예제 #3
0
 public ResourceResult(ResourceId resourceId, string revision, List<VersionId> versionIds,
     VersionId currentVersionId, Metadata metadata, List<Security.UsageRight> usageRights)
     : base(resourceId, revision, versionIds, currentVersionId, metadata, usageRights)
 {
 }
예제 #4
0
 public VersionResult(VersionId versionId, string revision, Metadata metadata, Content content)
     : base(versionId, revision, metadata, content)
 {
 }
예제 #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;
 }
예제 #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)
 {
 }
예제 #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)
 {
 }
예제 #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)
 {
 }