mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Breaking up some long lines to facilitate debugging.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2318 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -85,7 +85,9 @@ public class PermissionDataPatch extends AbstractPatch
|
|||||||
ref.setName(name);
|
ref.setName(name);
|
||||||
|
|
||||||
// it acts as its own key
|
// it acts as its own key
|
||||||
PermissionReference found = (PermissionReference) getHibernateTemplate().get(PermissionReferenceImpl.class, ref);
|
PermissionReference found = (PermissionReference) getHibernateTemplate().get(
|
||||||
|
PermissionReferenceImpl.class,
|
||||||
|
ref);
|
||||||
|
|
||||||
if (found == null)
|
if (found == null)
|
||||||
{
|
{
|
||||||
|
@@ -56,8 +56,9 @@ import org.springframework.beans.factory.InitializingBean;
|
|||||||
*/
|
*/
|
||||||
public class PermissionServiceImpl implements PermissionServiceSPI, InitializingBean
|
public class PermissionServiceImpl implements PermissionServiceSPI, InitializingBean
|
||||||
{
|
{
|
||||||
static SimplePermissionReference OLD_ALL_PERMISSIONS_REFERENCE = new SimplePermissionReference(QName.createQName(
|
static SimplePermissionReference OLD_ALL_PERMISSIONS_REFERENCE = new SimplePermissionReference(
|
||||||
NamespaceService.SECURITY_MODEL_1_0_URI, PermissionService.ALL_PERMISSIONS), PermissionService.ALL_PERMISSIONS);
|
QName.createQName(NamespaceService.SECURITY_MODEL_1_0_URI, PermissionService.ALL_PERMISSIONS),
|
||||||
|
PermissionService.ALL_PERMISSIONS);
|
||||||
|
|
||||||
private static Log log = LogFactory.getLog(PermissionServiceImpl.class);
|
private static Log log = LogFactory.getLog(PermissionServiceImpl.class);
|
||||||
|
|
||||||
@@ -381,7 +382,11 @@ public class PermissionServiceImpl implements PermissionServiceSPI, Initializing
|
|||||||
QName typeQname = nodeService.getType(nodeRef);
|
QName typeQname = nodeService.getType(nodeRef);
|
||||||
Set<QName> aspectQNames = nodeService.getAspects(nodeRef);
|
Set<QName> aspectQNames = nodeService.getAspects(nodeRef);
|
||||||
|
|
||||||
NodeTest nt = new NodeTest(perm.equals(OLD_ALL_PERMISSIONS_REFERENCE) ? getAllPermissionReference() : perm, typeQname, aspectQNames);
|
if (perm.equals(OLD_ALL_PERMISSIONS_REFERENCE))
|
||||||
|
{
|
||||||
|
perm = getAllPermissionReference();
|
||||||
|
}
|
||||||
|
NodeTest nt = new NodeTest(perm, typeQname, aspectQNames);
|
||||||
boolean result = nt.evaluate(authorisations, nodeRef);
|
boolean result = nt.evaluate(authorisations, nodeRef);
|
||||||
if (log.isDebugEnabled())
|
if (log.isDebugEnabled())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user