Commit 75477eff authored by Matija Obreza's avatar Matija Obreza
Browse files

Fixed Class<?..> in ACL service

parent f673366f
......@@ -19,7 +19,6 @@ package org.genesys2.server.service;
import java.util.List;
import org.genesys2.server.model.AclAwareModel;
import org.genesys2.server.model.genesys.Metadata;
import org.genesys2.server.security.AuthUserDetails;
import org.springframework.security.acls.model.Permission;
......@@ -34,6 +33,6 @@ public interface AclAssignerService {
* @param authUser
* @return
*/
List<Long> listIdentitiesForSid(Class<Metadata> clazz, AuthUserDetails authUser, Permission permission);
List<Long> listIdentitiesForSid(Class<? extends AclAwareModel> clazz, AuthUserDetails authUser, Permission permission);
}
......@@ -24,7 +24,6 @@ import org.genesys2.server.model.acl.AclClass;
import org.genesys2.server.model.acl.AclEntry;
import org.genesys2.server.model.acl.AclObjectIdentity;
import org.genesys2.server.model.acl.AclSid;
import org.genesys2.server.model.genesys.Metadata;
import org.genesys2.server.persistence.acl.AclClassPersistence;
import org.genesys2.server.persistence.acl.AclEntryPersistence;
import org.genesys2.server.persistence.acl.AclObjectIdentityPersistence;
......@@ -144,7 +143,7 @@ public class AclAssignerServiceImpl implements AclAssignerService {
@Override
@Transactional(readOnly = true)
public List<Long> listIdentitiesForSid(Class<Metadata> clazz, AuthUserDetails authUser, Permission permission) {
public List<Long> listIdentitiesForSid(Class<? extends AclAwareModel> clazz, AuthUserDetails authUser, Permission permission) {
return aclEntryPersistence.findObjectIdentitiesBySidAndAclClassAndMask(authUser.getUsername(), clazz.getName(), permission.getMask());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment