Examples of IUserLayoutStore


Examples of org.jasig.portal.layout.IUserLayoutStore

                LOG.debug("domRequest: " + (domRequests++));
            }
            Document userLayoutDocument = this.layoutCachingService.getCachedLayout(owner, profile);
            if ( null == userLayoutDocument )
            {
                IUserLayoutStore layoutStore = getLayoutStore();
               
                if (LOG.isDebugEnabled())
                {
                    LOG.debug("Load from store for " +
                        owner.getAttribute(IPerson.USERNAME));
                }
                userLayoutDocument = layoutStore.getUserLayout(this.owner,this.profile);

                // DistributedLayoutManager shall gracefully remove channels
                // that the user isn't authorized to render from folders of type
                // 'header' and 'footer'.
                IAuthorizationService authServ = AuthorizationImpl.singleton();
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutStore

    public synchronized void loadUserLayout() throws PortalException {
        this.loadUserLayout(false);
    }

    public synchronized void loadUserLayout(boolean reload) throws PortalException {
        IUserLayoutStore layoutStore = getLayoutStore();

        if(layoutStore==null) {
            throw new PortalException("Store implementation has not been "
                    + "set for "
                    + owner.getAttribute(IPerson.USERNAME) + ".");
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutStore

       
        if(uld==null) {
            throw new PortalException("UserLayout has not been initialized for "
                    + owner.getAttribute(IPerson.USERNAME) + ".");
        }
        IUserLayoutStore layoutStore = getLayoutStore();

        if(layoutStore==null) {
            throw new PortalException("Store implementation has not been set for "
                + owner.getAttribute(IPerson.USERNAME) + ".");
        }
        try {
            layoutStore.setUserLayout(this.owner,this.profile,uld,channelsAdded);
        } catch (Exception e) {
            throw new PortalException("Exception encountered while " +
                    "saving layout for userId=" + this.owner.getID() +
                    ", profileId=" + this.profile.getProfileId(),e);
        }
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutStore

        boolean isChannel=false;
        IUserLayoutNodeDescription parent=this.getNode(parentId);
        if( canAddNode( node, parent, nextSiblingId ) )
        {
            // assign new Id
            IUserLayoutStore layoutStore = getLayoutStore();

            if(layoutStore==null) {
                throw new PortalException("Store implementation has not been set for "
                    + owner.getAttribute(IPerson.USERNAME) + ".");
            }
            try {
                    if(node instanceof IUserLayoutChannelDescription) {
                        isChannel=true;
                        node.setId(layoutStore.generateNewChannelSubscribeId(owner));
                    } else {
                        node.setId(layoutStore.generateNewFolderId(owner));

                    final IFolderLabelPolicy labelPolicy = ContextHolder.getLabelPolicy();
                    if (labelPolicy != null)
                    {
                        labelPolicy.addNodeLabel(node.getId(),
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutStore

    public void convertLayout(int uid, int simpleProfileId) {
      
        final int NEW_LAYOUT_ID =1/* id to use when creating new layout */
        UserProfile simpleProfile = null;
        UserProfile ALProfile = null;
        IUserLayoutStore uls = null;
        int structSsId = 0, themeSsId = 0;
        int ALProfileId = 0;
        Connection con = null;
        Statement qstmt = null;
        ResultSet rs = null;

        IPerson user = PersonFactory.createPerson();
        user.setID(uid);

        try {
            // read in the simple layout
            uls = new RDBMUserLayoutStore();
            simpleProfile = uls.getUserProfileById(user,simpleProfileId);
            Document ul = uls.getUserLayout(user,simpleProfile);
            // wow - that was easy.   Now need to get rid of initial letters in IDs.
            stripNodes(ul.getChildNodes().item(0));
     
            // create a profile for the new layout
     
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutStore

     */
    private static RDBMDistributedLayoutStore getDLS()
    {
        if ( dls == null )
        {
            IUserLayoutStore uls = null;
            uls = UserLayoutStoreFactory.getUserLayoutStoreImpl();
            dls = (RDBMDistributedLayoutStore) uls;
        }
        return dls;
    }
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutStore

                Constants.LCL_MOVE_ALLOWED);
       
        String ID = plfNode.getAttribute( Constants.ATT_ID );
        plfNode.setIdAttribute(Constants.ATT_ID, true);

        IUserLayoutStore uls = null;
        uls = UserLayoutStoreFactory.getUserLayoutStoreImpl();
       
        if ( plfNode.getAttribute( Constants.ATT_PLF_ID ).equals( "" ) )
        {
            String plfID = null;
               
            try
            {
                if ( ! plfNode.getAttribute( Constants.ATT_CHANNEL_ID )
                     .equals( "" ) ) // dealing with a channel
                    plfID = uls.generateNewChannelSubscribeId( person );
                else
                    plfID = uls.generateNewFolderId( person );
            }
            catch (Exception e)
            {
                throw new PortalException( "Exception encountered while " +
                                           "generating new user layout node " +
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutStore

     */
    private static RDBMDistributedLayoutStore getDLS()
    {
        if ( dls == null )
        {
            IUserLayoutStore uls = null;
            uls = UserLayoutStoreFactory.getUserLayoutStoreImpl();
            dls = (RDBMDistributedLayoutStore) uls;
        }
        return dls;
    }
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutStore

        return this.store;
    }


    public synchronized void loadUserLayout() throws PortalException {
        IUserLayoutStore layoutStore = getLayoutStore();

        if(layoutStore==null) {
            throw new PortalException("Store implementation has not been "
                    + "set for "
                    + owner.getAttribute(IPerson.USERNAME) + ".");
        } else {
            Document uli= null;
            try {
                uli=layoutStore.getUserLayout(this.owner,this.profile);
            } catch (Exception e) {
                throw new PortalException("Exception encountered while " +
                        "reading a layout for userId=" + this.owner.getID() +
                        ", profileId=" + this.profile.getProfileId() ,e);
            }
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutStore

       
        if(uld==null) {
            throw new PortalException("UserLayout has not been initialized for "
                    + owner.getAttribute(IPerson.USERNAME) + ".");
        } else {
            IUserLayoutStore layoutStore = getLayoutStore();

            if(layoutStore==null) {
                throw new PortalException("Store implementation has not been set for "
                    + owner.getAttribute(IPerson.USERNAME) + ".");
            } else {
                try {
                    layoutStore.setUserLayout(this.owner,this.profile,uld,channelsAdded);
                } catch (Exception e) {
                    throw new PortalException("Exception encountered while " +
                            "saving layout for userId=" + this.owner.getID() +
                            ", profileId=" + this.profile.getProfileId(),e);
                }
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.