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

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


     * @param id the primary key for the new l f role
     * @return the new l f role
     */
    @Override
    public LFRole create(long id) {
        LFRole lfRole = new LFRoleImpl();

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

        return lfRole;
    }
View Full Code Here


    protected LFRole toUnwrappedModel(LFRole lfRole) {
        if (lfRole instanceof LFRoleImpl) {
            return lfRole;
        }

        LFRoleImpl lfRoleImpl = new LFRoleImpl();

        lfRoleImpl.setNew(lfRole.isNew());
        lfRoleImpl.setPrimaryKey(lfRole.getPrimaryKey());

        lfRoleImpl.setId(lfRole.getId());
        lfRoleImpl.setLiferayRoleID(lfRole.getLiferayRoleID());
        lfRoleImpl.setPermission(lfRole.getPermission());
        lfRoleImpl.setIsDefault(lfRole.getIsDefault());

        return lfRoleImpl;
    }
View Full Code Here

TOP

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

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.