Package com.arcusys.learn.persistence.liferay.model.impl

Examples of com.arcusys.learn.persistence.liferay.model.impl.LFResourceImpl


     * @param id the primary key for the new l f resource
     * @return the new l f resource
     */
    @Override
    public LFResource create(long id) {
        LFResource lfResource = new LFResourceImpl();

        lfResource.setNew(true);
        lfResource.setPrimaryKey(id);

        return lfResource;
    }
View Full Code Here


    protected LFResource toUnwrappedModel(LFResource lfResource) {
        if (lfResource instanceof LFResourceImpl) {
            return lfResource;
        }

        LFResourceImpl lfResourceImpl = new LFResourceImpl();

        lfResourceImpl.setNew(lfResource.isNew());
        lfResourceImpl.setPrimaryKey(lfResource.getPrimaryKey());

        lfResourceImpl.setId(lfResource.getId());
        lfResourceImpl.setPackageID(lfResource.getPackageID());
        lfResourceImpl.setScormType(lfResource.getScormType());
        lfResourceImpl.setResourceID(lfResource.getResourceID());
        lfResourceImpl.setHref(lfResource.getHref());
        lfResourceImpl.setBase(lfResource.getBase());

        return lfResourceImpl;
    }
View Full Code Here

TOP

Related Classes of com.arcusys.learn.persistence.liferay.model.impl.LFResourceImpl

Copyright © 2018 www.massapicom. 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.