| 23781 |
ashik.ali |
1 |
package com.spice.profitmandi.service.authentication;
|
|
|
2 |
|
|
|
3 |
import java.util.Map;
|
|
|
4 |
import java.util.Set;
|
|
|
5 |
|
|
|
6 |
import org.springframework.stereotype.Service;
|
|
|
7 |
|
|
|
8 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
|
|
9 |
import com.spice.profitmandi.dao.enumuration.dtr.Method;
|
|
|
10 |
|
|
|
11 |
@Service
|
|
|
12 |
public interface RoleService {
|
|
|
13 |
public void createApi(String name, String uri, Method method) throws ProfitMandiBusinessException;
|
|
|
14 |
public void editApi(int apiId, String name, String uri, Method method) throws ProfitMandiBusinessException;
|
|
|
15 |
public void deleteApi(int apiId) throws ProfitMandiBusinessException;
|
|
|
16 |
public void createRole(String name) throws ProfitMandiBusinessException;
|
|
|
17 |
public void createDuplicateRole(int roleId, String name) throws ProfitMandiBusinessException;
|
|
|
18 |
public void deleteRole(int roleId) throws ProfitMandiBusinessException;
|
|
|
19 |
public void renameRole(int roleId, String name) throws ProfitMandiBusinessException;
|
|
|
20 |
public void addRemoveRoles(String emailIdOrMobileNumber, Set<Integer> roleIds) throws ProfitMandiBusinessException;
|
|
|
21 |
public void addRemoveApis(int roleId, Set<Integer> apiIds) throws ProfitMandiBusinessException;
|
|
|
22 |
public Map<String, Object> getApisByRoleId(int roleId);
|
|
|
23 |
}
|