mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Backing out stuff that should have gone on its own branch.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6890 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -15,11 +15,11 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
* As a special exception to the terms and conditions of version 2.0 of
|
||||
* the GPL, you may redistribute this Program in connection with Free/Libre
|
||||
* and Open Source Software ("FLOSS") applications as described in Alfresco's
|
||||
* FLOSS exception. You should have recieved a copy of the text describing
|
||||
* the FLOSS exception, and it is also available here:
|
||||
* As a special exception to the terms and conditions of version 2.0 of
|
||||
* the GPL, you may redistribute this Program in connection with Free/Libre
|
||||
* and Open Source Software ("FLOSS") applications as described in Alfresco's
|
||||
* FLOSS exception. You should have recieved a copy of the text describing
|
||||
* the FLOSS exception, and it is also available here:
|
||||
* http://www.alfresco.com/legal/licensing"
|
||||
*/
|
||||
package org.alfresco.repo.security.authority;
|
||||
@@ -51,7 +51,6 @@ import org.alfresco.service.cmr.security.AuthorityType;
|
||||
import org.alfresco.service.namespace.NamespacePrefixResolver;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.service.namespace.RegexQNamePattern;
|
||||
import org.alfresco.service.simple.permission.AuthorityCapabilityRegistry;
|
||||
import org.alfresco.util.ISO9075;
|
||||
|
||||
public class AuthorityDAOImpl implements AuthorityDAO
|
||||
@@ -71,8 +70,6 @@ public class AuthorityDAOImpl implements AuthorityDAO
|
||||
private DictionaryService dictionaryService;
|
||||
|
||||
private SimpleCache<String, HashSet<String>> userToAuthorityCache;
|
||||
|
||||
private AuthorityCapabilityRegistry authorityCapabilityRegistry;
|
||||
|
||||
public AuthorityDAOImpl()
|
||||
{
|
||||
@@ -106,11 +103,6 @@ public class AuthorityDAOImpl implements AuthorityDAO
|
||||
this.userToAuthorityCache = userToAuthorityCache;
|
||||
}
|
||||
|
||||
public void setAuthorityCapabilityRegistry(AuthorityCapabilityRegistry registry)
|
||||
{
|
||||
this.authorityCapabilityRegistry = registry;
|
||||
}
|
||||
|
||||
public boolean authorityExists(String name)
|
||||
{
|
||||
NodeRef ref = getAuthorityOrNull(name);
|
||||
@@ -150,7 +142,6 @@ public class AuthorityDAOImpl implements AuthorityDAO
|
||||
throw new AlfrescoRuntimeException("Authorities of the type "
|
||||
+ AuthorityType.getAuthorityType(childName) + " may not be added to other authorities");
|
||||
}
|
||||
authorityCapabilityRegistry.addAuthority(childName, parentName);
|
||||
}
|
||||
|
||||
public void createAuthority(String parentName, String name)
|
||||
@@ -173,7 +164,6 @@ public class AuthorityDAOImpl implements AuthorityDAO
|
||||
nodeService.createNode(authorityContainerRef, ContentModel.ASSOC_CHILDREN, QName.createQName("usr", name,
|
||||
namespacePrefixResolver), ContentModel.TYPE_AUTHORITY_CONTAINER, props);
|
||||
}
|
||||
authorityCapabilityRegistry.addAuthority(name, parentName);
|
||||
}
|
||||
|
||||
public void deleteAuthority(String name)
|
||||
@@ -185,7 +175,6 @@ public class AuthorityDAOImpl implements AuthorityDAO
|
||||
}
|
||||
nodeService.deleteNode(nodeRef);
|
||||
userToAuthorityCache.clear();
|
||||
authorityCapabilityRegistry.removeAuthority(name);
|
||||
}
|
||||
|
||||
public Set<String> getAllRootAuthorities(AuthorityType type)
|
||||
@@ -256,7 +245,6 @@ public class AuthorityDAOImpl implements AuthorityDAO
|
||||
nodeService.removeChild(parentRef, childRef);
|
||||
userToAuthorityCache.clear();
|
||||
}
|
||||
authorityCapabilityRegistry.removeAuthorityChild(parentName, childName);
|
||||
}
|
||||
|
||||
public Set<String> getContainingAuthorities(AuthorityType type, String name, boolean immediate)
|
||||
|
Reference in New Issue
Block a user