Package org.jasig.portal.groups

Examples of org.jasig.portal.groups.IEntity


   * @see org.jasig.portal.portlet.registry.IPortletCategoryRegistry#getParentCategories(org.jasig.portal.portlet.om.IPortletDefinition)
   */
  @Override
    public Set<PortletCategory> getParentCategories(IPortletDefinition child) {
        String childKey = child.getPortletDefinitionId().getStringId();
        IEntity childEntity = GroupService.getEntity(childKey, IPortletDefinition.class);
        Set<PortletCategory> parents = new HashSet<PortletCategory>();

        @SuppressWarnings("unchecked")
        Iterator<IGroupMember> iter = childEntity.getContainingGroups();
        while (iter.hasNext()) {
            IGroupMember gm = iter.next();
            if (gm.isGroup()) {
                String categoryId = gm.getKey();
                parents.add(getPortletCategory(categoryId));
View Full Code Here


            return defaultMessage;
        }
    }

    protected IAuthorizationPrincipal getUserPrincipal(final String userName) {
        final IEntity user = GroupService.getEntity(userName, IPerson.class);
        if (user == null) {
            return null;
        }
       
        final AuthorizationService authService = AuthorizationService.instance();
View Full Code Here

        return rslt;

    }

    protected IAuthorizationPrincipal getUserPrincipal(final String userName) {
        final IEntity user = GroupService.getEntity(userName, IPerson.class);
        if (user == null) {
            return null;
        }
       
        final AuthorizationService authService = AuthorizationService.instance();
View Full Code Here

           
            return false;
        }
       
        final String portletId = portletDefinition.getPortletDefinitionId().getStringId();
        final IEntity entity = GroupService.getEntity(portletId, IPortletDefinition.class);
        if (entity == null) {
            if (this.logger.isDebugEnabled()) {
                this.logger.debug("No portlet found for id '" + portletId + "'");
            }
           
View Full Code Here

            }
           
            return false;
        }
       
        final IEntity entity = GroupService.getEntity(userName, IPerson.class);
        if (entity == null) {
            if (this.logger.isDebugEnabled()) {
                this.logger.debug("No user found for key '" + userName + "'");
            }
           
View Full Code Here

            this.logger.warn(results.length + " groups were found for '" + groupName + "'. The first result will be used.");
        }
           
        final IGroupMember group = GroupService.getGroupMember(results[0]);
       
        final IEntity entity = GroupService.getEntity(userName, IPerson.class);
        if (entity == null) {
            if (this.logger.isDebugEnabled()) {
                this.logger.debug("No user found for key '" + userName + "'");
            }
           
View Full Code Here

TOP

Related Classes of org.jasig.portal.groups.IEntity

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.