mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
remove unnecessary imports, fixes line issues
This commit is contained in:
parent
32e5456f21
commit
d842fc4085
@ -51,8 +51,7 @@ public interface GroupManagementProviderService {
|
||||
* @param defaultPermissions of the default role
|
||||
* @throws GroupManagementException
|
||||
*/
|
||||
void createGroupWithRoles(DeviceGroupRoleWrapper groups, String defaultRole,
|
||||
String[] defaultPermissions )throws GroupManagementException, GroupAlreadyExistException, RoleDoesNotExistException;
|
||||
void createGroupWithRoles(DeviceGroupRoleWrapper groups, String defaultRole, String[] defaultPermissions) throws GroupManagementException, GroupAlreadyExistException, RoleDoesNotExistException;
|
||||
|
||||
/**
|
||||
* Update existing device group.
|
||||
|
||||
@ -147,9 +147,7 @@ public class GroupManagementProviderServiceImpl implements GroupManagementProvid
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void createGroupWithRoles(DeviceGroupRoleWrapper groups, String defaultRole, String[] defaultPermissions)
|
||||
throws GroupManagementException, GroupAlreadyExistException {
|
||||
public void createGroupWithRoles(DeviceGroupRoleWrapper groups, String defaultRole, String[] defaultPermissions) throws GroupManagementException, GroupAlreadyExistException {
|
||||
if (groups == null) {
|
||||
String msg = "Received incomplete data for createGroup";
|
||||
log.error(msg);
|
||||
@ -168,9 +166,7 @@ public class GroupManagementProviderServiceImpl implements GroupManagementProvid
|
||||
} else {
|
||||
DeviceGroup immediateParentGroup = groupDAO.getGroup(groups.getParentGroupId(), tenantId);
|
||||
if (immediateParentGroup == null) {
|
||||
String msg = "Parent group with group ID '" + groups.getParentGroupId()
|
||||
+ "' does not exist. Hence creating of group '" + groups.getName()
|
||||
+ "' was not success";
|
||||
String msg = "Parent group with group ID '" + groups.getParentGroupId() + "' does not exist. Hence creating of group '" + groups.getName() + "' was not success";
|
||||
log.error(msg);
|
||||
throw new GroupManagementException(msg);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user