Examples of ObjectIdentity


Examples of com.mobixess.jodb.core.io.IOBase.ObjectIdentity

            TransactionHandle tHandle = _transactionObjects.get(element);
            if(!tHandle.isNewObject()){
                PersistentObjectHandle handle = tHandle.getHandle();
                int activeObjectHash = tHandle.getIdentityHash();
                byte version = (byte) tHandle.getCyclicalVersionCounter();
                ObjectIdentity objectIdentity = base.checkObjectChanged(handle.getObjectEntryOffset(), activeObjectHash, version);
                if(objectIdentity!=null){
                    if(_transactionResolver!=null && !transactionResolver.resolve(element, sessionContainer,null)){
                        iter.remove();
                        continue;
                    }
View Full Code Here

Examples of javax.jdo.identity.ObjectIdentity

            }
            if("b".equals(distinguisher)) {
                return new ByteIdentity(objectTypeClassFor(oid), keyStr);
            }
            if("u".equals(distinguisher)) {
                return new ObjectIdentity(objectTypeClassFor(oid), UUID.fromString(keyStr));
            }
        }
       

        if(dnPrefixes.contains(distinguisher)) {
View Full Code Here

Examples of javax.jdo.identity.ObjectIdentity

    c.setName("Child 1");
    p.addChild(c);
    beginTxn();
    oldPM.makePersistent(p);
    commitTxn();
    ObjectIdentity pId = (ObjectIdentity)oldPM.getObjectId(p);
    ObjectIdentity cId = (ObjectIdentity)oldPM.getObjectId(c);
    Key pIdKey = (Key)pId.getKey();
    Key cIdKey = (Key)cId.getKey();
    oldPM.close();

    // Migrate the data
    Migrator migrator = new Migrator(((JDOPersistenceManagerFactory)oldPMF).getNucleusContext());
    try {
View Full Code Here

Examples of org.acegisecurity.acls.objectidentity.ObjectIdentity

            return Tag.SKIP_BODY;
        }

        Sid[] sids = sidRetrievalStrategy.getSids(SecurityContextHolder.getContext().getAuthentication());
        ObjectIdentity oid = objectIdentityRetrievalStrategy.getObjectIdentity(resolvedDomainObject);

        // Obtain aclEntrys applying to the current Authentication object
        try {
            Acl acl = aclService.readAclById(oid, sids);
View Full Code Here

Examples of org.acegisecurity.acls.objectidentity.ObjectIdentity

        // If we already have an ACL for this ID, just create the ACE
        AclImpl acl = (AclImpl) acls.get(id);

        if (acl == null) {
            // Make an AclImpl and pop it into the Map
            ObjectIdentity objectIdentity = new ObjectIdentityImpl(rs.getString("CLASS"),
                    new Long(rs.getLong("OBJECT_ID_IDENTITY")));

            Acl parentAcl = null;
            long parentAclId = rs.getLong("PARENT_OBJECT");
View Full Code Here

Examples of org.acegisecurity.acls.objectidentity.ObjectIdentity

                    return AccessDecisionVoter.ACCESS_ABSTAIN;
                }

                // Obtain the OID applicable to the domain object
                ObjectIdentity objectIdentity = objectIdentityRetrievalStrategy.getObjectIdentity(domainObject);

                // Obtain the SIDs applicable to the principal
                Sid[] sids = sidRetrievalStrategy.getSids(authentication);

                Acl acl;
View Full Code Here

Examples of org.acegisecurity.acls.objectidentity.ObjectIdentity

        return processDomainObjectClass;
    }

    protected boolean hasPermission(Authentication authentication, Object domainObject) {
        // Obtain the OID applicable to the domain object
        ObjectIdentity objectIdentity = objectIdentityRetrievalStrategy.getObjectIdentity(domainObject);

        // Obtain the SIDs applicable to the principal
        Sid[] sids = sidRetrievalStrategy.getSids(authentication);

        Acl acl = null;
View Full Code Here

Examples of org.springframework.security.acls.model.ObjectIdentity

        }

        final List<Sid> sids =
                sidRetrievalStrategy.getSids(SecurityContextHolder.getContext().getAuthentication());
       
        final ObjectIdentity oid =
                objectIdentityRetrievalStrategy.getObjectIdentity(domainObject);

        try {
           
            final Acl acl = aclService.readAclById(oid, sids);
View Full Code Here

Examples of org.springframework.security.acls.model.ObjectIdentity

    @Test
    @SuppressWarnings("unchecked")
    public void hasPermissionReturnsTrueIfAclGrantsPermission() throws Exception {
        AclService service = mock(AclService.class);
        AclPermissionEvaluator pe = new AclPermissionEvaluator(service);
        ObjectIdentity oid = mock(ObjectIdentity.class);
        ObjectIdentityRetrievalStrategy oidStrategy = mock(ObjectIdentityRetrievalStrategy.class);
        when(oidStrategy.getObjectIdentity(anyObject())).thenReturn(oid);
        pe.setObjectIdentityRetrievalStrategy(oidStrategy);
        pe.setSidRetrievalStrategy(mock(SidRetrievalStrategy.class));
        Acl acl = mock(Acl.class);
View Full Code Here

Examples of org.springframework.security.acls.model.ObjectIdentity

    public boolean hasPermission(Authentication authentication, Object domainObject, Object permission) {
        if (domainObject == null) {
            return false;
        }

        ObjectIdentity objectIdentity = objectIdentityRetrievalStrategy.getObjectIdentity(domainObject);

        return checkPermission(authentication, objectIdentity, permission);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.