public IDeleteItemsByIdRequest DeepCopyDeleteItemRequest()
        {
            ISessionConfig   sessionConfig   = null;
            IScopeParameters scopeParameters = null;
            string           database        = null;
            string           itemId          = null;

            if (null != this.SessionConfig)
            {
                sessionConfig = this.SessionConfig.SessionConfigShallowCopy();
            }

            if (null != this.ScopeParameters)
            {
                scopeParameters = this.ScopeParameters.ShallowCopyScopeParametersInterface();
            }

            if (null != this.Database)
            {
                database = this.Database;
            }

            if (null != this.ItemId)
            {
                itemId = this.ItemId;
            }

            return(new DeleteItemByIdParameters(sessionConfig, scopeParameters, database, itemId));
        }
    public string ScopeToRestArgumentStatement(IScopeParameters scopeParameters)
    {
      if (null == scopeParameters)
      {
        return string.Empty;
      }

      string scopeString = string.Empty;

      foreach (ScopeType singleScopeEntry in scopeParameters.OrderedScopeSequence)
      {
        string urlParameterForScope = this.ScopeTypeToString(singleScopeEntry);
        scopeString += this.restGrammar.ItemFieldSeparator + urlParameterForScope;
      }

      if (string.IsNullOrEmpty(scopeString))
      {
        return string.Empty;
      }

      scopeString = scopeString.Substring(1);

      string result = this.webApiGrammar.ScopeParameterName + this.restGrammar.KeyValuePairSeparator + scopeString;

      return result;
    }
        public string ScopeToRestArgumentStatement(IScopeParameters scopeParameters)
        {
            if (null == scopeParameters)
            {
                return(string.Empty);
            }

            string scopeString = string.Empty;

            foreach (ScopeType singleScopeEntry in scopeParameters.OrderedScopeSequence)
            {
                string urlParameterForScope = this.ScopeTypeToString(singleScopeEntry);
                scopeString += this.restGrammar.ItemFieldSeparator + urlParameterForScope;
            }

            if (string.IsNullOrEmpty(scopeString))
            {
                return(string.Empty);
            }

            scopeString = scopeString.Substring(1);

            string result = this.webApiGrammar.ScopeParameterName + this.restGrammar.KeyValuePairSeparator + scopeString;

            return(result);
        }
        public IDeleteItemsByQueryRequest DeepCopyDeleteItemRequest()
        {
            ISessionConfig   sessionConfig   = null;
            IScopeParameters scopeParameters = null;
            string           database        = null;
            string           query           = null;

            if (null != this.SessionConfig)
            {
                sessionConfig = this.SessionConfig.SessionConfigShallowCopy();
            }

            if (null != this.ScopeParameters)
            {
                scopeParameters = this.ScopeParameters.ShallowCopyScopeParametersInterface();
            }

            if (null != this.Database)
            {
                database = this.Database;
            }

            if (null != this.SitecoreQuery)
            {
                query = this.SitecoreQuery;
            }

            return(new DeleteItemByQueryParameters(sessionConfig, scopeParameters, database, query));
        }
 public DeleteItemByIdParameters(ISessionConfig sessionConfig, IScopeParameters scopeParameters,
                                 string database, string itemId)
 {
     this.SessionConfig   = sessionConfig;
     this.ScopeParameters = scopeParameters;
     this.Database        = database;
     this.ItemId          = itemId;
 }
 public DeleteItemByPathParameters(ISessionConfig sessionConfig, IScopeParameters scopeParameters,
   string database, string itemPath)
 {
   this.SessionConfig = sessionConfig;
   this.ScopeParameters = scopeParameters;
   this.Database = database;
   this.ItemPath = itemPath;
 }
 public DeleteItemByQueryParameters(ISessionConfig sessionConfig, IScopeParameters scopeParameters,
   string database, string sitecoreQuery)
 {
   this.SessionConfig = sessionConfig;
   this.ScopeParameters = scopeParameters;
   this.Database = database;
   this.SitecoreQuery = sitecoreQuery;
 }
 public DeleteItemByPathParameters(ISessionConfig sessionConfig, IScopeParameters scopeParameters,
                                   string database, string itemPath)
 {
     this.SessionConfig   = sessionConfig;
     this.ScopeParameters = scopeParameters;
     this.Database        = database;
     this.ItemPath        = itemPath;
 }
 public DeleteItemByQueryParameters(ISessionConfig sessionConfig, IScopeParameters scopeParameters,
                                    string database, string sitecoreQuery)
 {
     this.SessionConfig   = sessionConfig;
     this.ScopeParameters = scopeParameters;
     this.Database        = database;
     this.SitecoreQuery   = sitecoreQuery;
 }
 public DeleteItemByIdParameters(ISessionConfig sessionConfig, IScopeParameters scopeParameters,
   string database, string itemId)
 {
   this.SessionConfig = sessionConfig;
   this.ScopeParameters = scopeParameters;
   this.Database = database;
   this.ItemId = itemId;
 }
    public ScopeParameters(IScopeParameters other = null)
    {
      if (null == other)
      {
        return;
      }

      this.accumulatedScope = new List<ScopeType>(other.OrderedScopeSequence);
    }
Ejemplo n.º 12
0
        public ScopeParameters(IScopeParameters other = null)
        {
            if (null == other)
            {
                return;
            }

            this.accumulatedScope = new List <ScopeType>(other.OrderedScopeSequence);
        }
Ejemplo n.º 13
0
 public QueryParameters(
     PayloadType?payload,
     IScopeParameters scopeParameters,
     IEnumerable <string> fields)
 {
     this.Payload         = payload;
     this.ScopeParameters = scopeParameters;
     this.Fields          = fields;
 }
 public QueryParameters(
   PayloadType? payload,
   IScopeParameters scopeParameters,
   IEnumerable<string> fields)
 {
   this.Payload = payload;
   this.ScopeParameters = scopeParameters;
   this.Fields = fields;
 }
Ejemplo n.º 15
0
        public virtual IQueryParameters DeepCopy()
        {
            string[] fields = null;
            if (null != this.Fields)
            {
                fields = this.Fields.ToArray();
            }

            IScopeParameters scopeParameters = null;

            if (null != this.ScopeParameters)
            {
                scopeParameters = this.ScopeParameters.ShallowCopyScopeParametersInterface();
            }
            return(new QueryParameters(this.Payload, scopeParameters, fields));
        }