package com.oguerreiro.resilient.web.rest.security;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.oguerreiro.resilient.repository.security.SecurityResourceRepository;
import com.oguerreiro.resilient.security.resillient.SecurityResource;
import com.oguerreiro.resilient.service.dto.security.SecurityResourceDTO;
import com.oguerreiro.resilient.service.security.SecurityResourceService;
import com.oguerreiro.resilient.web.rest.AbstractResilientResource;

/**
 * REST controller for managing {@link com.oguerreiro.resilient.security.SecurityResource}.
 */
@RestController
@RequestMapping("/api/security/resources")
public class SecurityResourceResource extends AbstractResilientResource<SecurityResource, SecurityResourceDTO, Long> {

  private static final String ENTITY_NAME = "SecurityResource";

  public SecurityResourceResource(SecurityResourceRepository securityResourceRepository,
      SecurityResourceService securityResourceService) {
    super(SecurityResource.class, securityResourceRepository, securityResourceService);
  }

  /* Abstract methods impl*/
  @Override
  protected String getEntityName() {
    return ENTITY_NAME;
  }

  /* DashboardResource endpoints */

}
