Class Controller

    • Constructor Detail

      • Controller

        public Controller()
    • Method Detail

      • post

        protected org.springframework.http.ResponseEntity<Map<String,​Object>> post​(Map<String,​Object> entity,
                                                                                         javax.servlet.http.HttpServletRequest request,
                                                                                         javax.servlet.http.HttpServletResponse response,
                                                                                         Schema schema,
                                                                                         String attributes,
                                                                                         String excludedAttributes)
      • put

        protected org.springframework.http.ResponseEntity<Map<String,​Object>> put​(String id,
                                                                                        Map<String,​Object> entity,
                                                                                        javax.servlet.http.HttpServletRequest request,
                                                                                        javax.servlet.http.HttpServletResponse response,
                                                                                        Schema schema,
                                                                                        String attributes,
                                                                                        String excludedAttributes)
      • patch

        protected org.springframework.http.ResponseEntity<Map<String,​Object>> patch​(String id,
                                                                                          Map<String,​Object> patchRequest,
                                                                                          javax.servlet.http.HttpServletRequest request,
                                                                                          javax.servlet.http.HttpServletResponse response,
                                                                                          Schema schema,
                                                                                          String attributes,
                                                                                          String excludedAttributes)
      • get

        protected org.springframework.http.ResponseEntity<Map<String,​Object>> get​(String id,
                                                                                        javax.servlet.http.HttpServletRequest request,
                                                                                        javax.servlet.http.HttpServletResponse response,
                                                                                        Schema schema,
                                                                                        String attributes,
                                                                                        String excludedAttributes)
      • search

        protected org.springframework.http.ResponseEntity<Map<String,​Object>> search​(Integer startIndex,
                                                                                           Integer count,
                                                                                           Schema schema,
                                                                                           String filter,
                                                                                           String sortBy,
                                                                                           String sortOrder,
                                                                                           String attributes,
                                                                                           String excludedAttributes)
        Search entities
        Parameters:
        startIndex - the start index
        count - the count
        schema - the schema
        filter - the filter
        sortBy - sortby
        sortOrder - the order
        attributes - the attributes
        excludedAttributes - the excluded attributes
        Returns:
        a response entity
      • delete

        protected org.springframework.http.ResponseEntity<?> delete​(String id,
                                                                    Schema schema)
      • createVersion

        protected String createVersion​(Date date)
      • showError

        protected org.springframework.http.ResponseEntity<Map<String,​Object>> showError​(int status,
                                                                                              String detail)
      • getListFromString

        protected List<String> getListFromString​(String attributes)
      • invalidSchemaForResource

        protected org.springframework.http.ResponseEntity<Map<String,​Object>> invalidSchemaForResource​(List<String> schemas,
                                                                                                             String resourceType)
      • invalidSchemaForResource

        protected org.springframework.http.ResponseEntity<Map<String,​Object>> invalidSchemaForResource​(String resourceType,
                                                                                                             String requiredSchema)