Examples of newPrincipal()


Examples of org.jasig.portal.services.AuthorizationService.newPrincipal()

        if (user == null) {
            return null;
        }
       
        final AuthorizationService authService = AuthorizationService.instance();
        return authService.newPrincipal(user);
    }

    /**
   * A folder is a column if its parent is a tab element
   *
 
View Full Code Here

Examples of org.jasig.portal.services.AuthorizationService.newPrincipal()

            if (IPortletRenderer.CONFIG.equals(portletMode)) {
                final IPerson person = this.personManager.getPerson(httpServletRequest);
               
                final EntityIdentifier ei = person.getEntityIdentifier();
                final AuthorizationService authorizationService = AuthorizationService.instance();
                final IAuthorizationPrincipal ap = authorizationService.newPrincipal(ei.getKey(), ei.getType());
               
                final IPortletEntity portletEntity = portletWindow.getPortletEntity();
                final IPortletDefinition portletDefinition = portletEntity.getPortletDefinition();
               
                if (!ap.canConfigure(portletDefinition.getPortletDefinitionId().getStringId())) {
View Full Code Here

Examples of org.jasig.portal.services.AuthorizationService.newPrincipal()

        if (user == null) {
            return null;
        }
       
        final AuthorizationService authService = AuthorizationService.instance();
        return authService.newPrincipal(user);
    }

}
View Full Code Here

Examples of org.jasig.portal.services.AuthorizationService.newPrincipal()

       */
     
        IUserInstance userInstance = userInstanceManager.getUserInstance(request);
        IPerson person = userInstance.getPerson();
        AuthorizationService authService = AuthorizationService.instance();
        IAuthorizationPrincipal principal = authService.newPrincipal(person.getUserName(), IPerson.class);
     
        /**
         * Build a collection of owner IDs for the fragments to which the
         * authenticated user is subscribed
         */
 
View Full Code Here

Examples of org.jasig.portal.services.AuthorizationService.newPrincipal()

        final AggregatedGroupMapping group = aggregatedGroupLookupDao.getGroupMapping(everyone.getKey());
        final List<PortletLayoutAggregation> aggregations = portletLayoutDao.getAggregationsForAllPortlets(begin, end, AGGREGATION_INTERVAL, group);
       
        final EntityIdentifier ei = user.getEntityIdentifier();
        final AuthorizationService authService = AuthorizationService.instance();
        final IAuthorizationPrincipal ap = authService.newPrincipal(ei.getKey(), ei.getType());
       
        final Map<String, PortletUsage> resultBuilder = new HashMap<String, PortletUsage>();
       
        for (final PortletLayoutAggregation aggregation : aggregations) {
            final AggregatedPortletMapping portlet = aggregation.getPortletMapping();
View Full Code Here

Examples of org.jasig.portal.services.AuthorizationService.newPrincipal()

            entityType = EntityEnum.getEntityEnum(entity.getEntityType()).getClazz();
        }

        // construct an authorization principal for this JsonEntityBean
        AuthorizationService authService = AuthorizationService.instance();
        IAuthorizationPrincipal p = authService.newPrincipal(entity.getId(), entityType);
        return p;
    }

    /**
     * <p>Convenience method that looks up the name of the given group member.
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.