public override void CheckoutResource(EngineRequest request, ResourceId resource) { CheckInitialization(); Logger.Storage.Debug("Checking out the resource '" + resource.ToString() + "'"); EngineMethods.CheckoutResource act = new EngineMethods.CheckoutResource(request, resource); act.Execute(); }
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; }
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 VersionId(string resourceAndVersion) { long vnum; string[] str = resourceAndVersion.Split('-'); if (str.Length != 2) throw new ArgumentException("Invalid argument."); ResourceId = new ResourceId(str[0]); if(!long.TryParse(str[1], out vnum)) throw new ArgumentException("Version number could not be parsed."); VersionNumber = vnum; }
public VersionId(ResourceId resourceId) : this(resourceId, 0) { }
public VersionId(string resourceId, long versionNumber) { ResourceId = new ResourceId(resourceId); VersionNumber = versionNumber; }
public VersionId(ResourceId resourceId, long versionNumber) { ResourceId = resourceId; VersionNumber = versionNumber; }
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 override void RollbackResource(EngineRequest request, ResourceId resource, int rollbackDepth) { CheckInitialization(); Logger.Storage.Debug("Rolling back resource '" + resource.Id.ToString("N") + "' a depth of " + rollbackDepth.ToString() + "..."); EngineMethods.RollbackResource act = new EngineMethods.RollbackResource(request, resource, rollbackDepth); act.Execute(); }
public override void GetResourceReadOnly(EngineRequest request, ResourceId resource) { CheckInitialization(); Logger.Storage.Debug("Getting a read-only version of the resource '" + resource.ToString() + "'..."); EngineMethods.GetResourceReadOnly act = new EngineMethods.GetResourceReadOnly(request, resource); act.Execute(); }