Subversion Repositories SmartDukaan

Rev

View as "text/plain" | Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.service.authentication;

import java.util.Map;
import java.util.Set;

import org.springframework.stereotype.Service;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.dao.enumuration.dtr.Method;

@Service
public interface RoleService {
        public void createApi(String name, String uri, Method method) throws ProfitMandiBusinessException;
        public void editApi(int apiId, String name, String uri, Method method) throws ProfitMandiBusinessException;
        public void deleteApi(int apiId) throws ProfitMandiBusinessException;
        public void createRole(String name) throws ProfitMandiBusinessException;
        public void createDuplicateRole(int roleId, String name) throws ProfitMandiBusinessException;
        public void deleteRole(int roleId) throws ProfitMandiBusinessException;
        public void renameRole(int roleId, String name) throws ProfitMandiBusinessException;
        public void addRemoveRoles(String emailIdOrMobileNumber, Set<Integer> roleIds) throws ProfitMandiBusinessException;
        public void addRemoveApis(int roleId, Set<Integer> apiIds) throws ProfitMandiBusinessException;
        public Map<String, Object> getApisByRoleId(int roleId);
}