Examples of EntityFactory


Examples of org.apache.jetspeed.security.mapping.EntityFactory

    public void removePrincipal(JetspeedPrincipal principal) throws SecurityException
    {
        if (!SynchronizationStateAccess.isSynchronizing() && !ldapEntityManager.isReadOnly())
        {
            EntityFactory entityFactory = ldapEntityManager.getEntityFactory(principal.getType().getName());
            if (entityFactory.isRemoveAllowed())
            {
                ldapEntityManager.removeEntity(entityFactory.createEntity(principal));
            }
        }
        delegateJpsm.removePrincipal(principal);
    }
View Full Code Here

Examples of org.apache.jetspeed.security.mapping.EntityFactory

    public void updatePrincipal(JetspeedPrincipal principal) throws SecurityException
    {
        if (!SynchronizationStateAccess.isSynchronizing() && !ldapEntityManager.isReadOnly())
        {
            EntityFactory entityFactory = ldapEntityManager.getEntityFactory(principal.getType().getName());
            if (entityFactory.isUpdateAllowed())
            {
                ldapEntityManager.updateEntity(entityFactory.createEntity(principal));
            }
        }
        delegateJpsm.updatePrincipal(principal);
    }
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.EntityFactory

        return match;
    }

    private void setupFactories(final Method method, Class beanTypeClass) {
        // entity factory
        factories.put(beanTypeClass, new EntityFactory() {
            @Override
            public Object create() {
                try {
                    AutoBeanStub stub = (AutoBeanStub)method.invoke(factory, null);
                    return stub.as();
View Full Code Here

Examples of rakama.worldtools.data.entity.EntityFactory

        chunk = new ManagedChunk(xPos.data, zPos.data, heightmap.data, biome.data, manager);
        // TODO: create ManagedSection to catch Section changes?
        // TODO: alternatively, hide sections from interface
        chunk.loadSections(sections);

        EntityFactory factory = manager.getEntityFactory();
       
        Tag tagEntities = level.get("Entities");  
        if(tagEntities != null)
        {
            ListTag<CompoundTag> list = (ListTag<CompoundTag>)tagEntities;           
            for(int i=0; i<list.size(); i++)
                chunk.entities.add(factory.createEntity(list.get(i)));
        }
       
        Tag tagTileEntities = level.get("TileEntities");
        if(tagEntities != null)
        {
            ListTag<CompoundTag> list = (ListTag<CompoundTag>)tagTileEntities;           
            for(int i=0; i<list.size(); i++)
                chunk.tileEntities.add(factory.createTileEntity(list.get(i)));
        }
       
        chunk.tag = tag;
        return chunk;
    }
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.