예제 #1
0
        public void RemoveUserFromRole(int userId, int groupId)
        {
            try
            {
                m_client.Delete($"role/{groupId}/user/{userId}");
            }
            catch (HttpRequestException e)
            {
                if (m_logger.IsErrorEnabled())
                {
                    m_logger.LogError("{0} failed with {1}", m_client.GetCurrentMethod(), e);
                }

                throw;
            }
        }
        public void DeleteExternalRepository(int externalRepositoryId)
        {
            try
            {
                m_client.Delete($"bibliography/repository/{externalRepositoryId}");
            }
            catch (HttpRequestException e)
            {
                if (m_logger.IsErrorEnabled())
                {
                    m_logger.LogError("{0} failed with {1}", m_client.GetCurrentMethod(), e);
                }

                throw;
            }
        }
예제 #3
0
        public void RemoveProject(long projectId)
        {
            try
            {
                m_client.Delete($"project/{projectId}");
            }
            catch (HttpRequestException e)
            {
                if (m_logger.IsErrorEnabled())
                {
                    m_logger.LogError("{0} failed with {1}", m_client.GetCurrentMethod(), e);
                }

                throw;
            }
        }
예제 #4
0
        public void DeleteFavoriteLabel(long favoriteLabelId)
        {
            try
            {
                m_client.Delete($"favorite/label/{favoriteLabelId}");
            }
            catch (HttpRequestException e)
            {
                if (m_logger.IsErrorEnabled())
                {
                    m_logger.LogError("{0} failed with {1}", m_client.GetCurrentMethod(), e);
                }

                throw;
            }
        }
예제 #5
0
        public void DeleteCategory(int categoryId)
        {
            try
            {
                m_client.Delete($"category/{categoryId}");
            }
            catch (HttpRequestException e)
            {
                if (m_logger.IsErrorEnabled())
                {
                    m_logger.LogError("{0} failed with {1}", m_client.GetCurrentMethod(), e);
                }

                throw;
            }
        }
        public void DeleteFilteringExpressionSet(int filteringExpressionSetId)
        {
            try
            {
                m_client.Delete($"bibliography/filtering-expression-set/{filteringExpressionSetId}");
            }
            catch (HttpRequestException e)
            {
                if (m_logger.IsErrorEnabled())
                {
                    m_logger.LogError("{0} failed with {1}", m_client.GetCurrentMethod(), e);
                }

                throw;
            }
        }
예제 #7
0
        public void DeleteFeedback(long feedbackId)
        {
            try
            {
                m_client.Delete($"feedback/{feedbackId}");
            }
            catch (HttpRequestException e)
            {
                if (m_logger.IsErrorEnabled())
                {
                    m_logger.LogError("{0} failed with {1}", m_client.GetCurrentMethod(), e);
                }

                throw;
            }
        }