Package org.jasig.portal

Examples of org.jasig.portal.EntityIdentifier


    @LazyCollection(LazyCollectionOption.FALSE)
    private Set<IPersonAttributesGroupTestGroupDefinition> testGroups = new HashSet<IPersonAttributesGroupTestGroupDefinition>(0);

    @Override
    public EntityIdentifier getEntityIdentifier() {
        return new EntityIdentifier(String.valueOf(this.internalPersonAttributesGroupDefinitionId), PersonAttributesGroupDefinitionImpl.class);
    }
View Full Code Here


    @JoinColumn(name = "PAGS_TEST_GROUP_ID", nullable = false)
    private IPersonAttributesGroupTestGroupDefinition testGroup;

    @Override
    public EntityIdentifier getEntityIdentifier() {
        return new EntityIdentifier(String.valueOf(this.internalPersonAttributesGroupTestDefinitionId), PersonAttributesGroupTestDefinitionImpl.class);
    }
View Full Code Here

    @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER, mappedBy="testGroup", targetEntity=PersonAttributesGroupTestDefinitionImpl.class, orphanRemoval=true)
    private Set<IPersonAttributesGroupTestDefinition> tests = new HashSet<IPersonAttributesGroupTestDefinition>(0);

    @Override
    public EntityIdentifier getEntityIdentifier() {
        return new EntityIdentifier(String.valueOf(this.internalPersonAttributesGroupTestGroupDefinitionId), PersonAttributesGroupTestGroupDefinitionImpl.class);
    }
View Full Code Here

                ResultSet rs = ps.executeQuery();
                try {
                    //System.out.println(ps.toString());
                    while (rs.next()){
                        //System.out.println("result");
                        ar.add(new EntityIdentifier(rs.getString(1), org.jasig.portal.EntityTypes.GROUP_ENTITY_TYPE));
                    }
                } finally {
                    close(rs);
                }
            } finally {
View Full Code Here

    protected List<IPortalDataType> getAllowedTypes(PortletRequest request, String activityName, Iterable<IPortalDataType> dataTypes) {

      // get the authorization principal representing the current user
        final HttpServletRequest httpServletRequest = this.portalRequestUtils.getPortletHttpRequest(request);
    final IPerson person = personManager.getPerson(httpServletRequest);
    final EntityIdentifier ei = person.getEntityIdentifier();
      final IAuthorizationPrincipal ap = AuthorizationService.instance().newPrincipal(ei.getKey(), ei.getType());

      // filter the list of configured import/export types by user permission
      final List<IPortalDataType> results = new ArrayList<IPortalDataType>();
      for (IPortalDataType type : dataTypes) {
        final String typeId = type.getTypeId();
View Full Code Here

    if (portletDefinition == null) {
        return null;
      }
       
        final IPerson person = userInstance.getPerson();
    final EntityIdentifier ei = person.getEntityIdentifier();
      final IAuthorizationPrincipal ap = AuthorizationService.instance().newPrincipal(ei.getKey(), ei.getType());
      if (ap.canRender(portletDefinition.getPortletDefinitionId().getStringId())) {
        return portletDefinition;
      }
     
      return null;
View Full Code Here

       * logic below takes any channels that have not already been identified
       * as belonging to a category and adds them to the top-level of the
       * registry, assuming the current user has manage permissions.
       */
     
    EntityIdentifier ei = user.getEntityIdentifier();
      IAuthorizationPrincipal ap = AuthorizationService.instance().newPrincipal(ei.getKey(), ei.getType());

      if (type.equals(TYPE_MANAGE)) {
          for (IPortletDefinition channel : allChannels) {
              if (ap.canManage(channel.getPortletDefinitionId().getStringId())) {
                  channels.add(getChannel(channel, request, locale));
View Full Code Here

    ChannelCategoryBean categoryBean = new ChannelCategoryBean(category);
        categoryBean.setName(messageSource.getMessage(category.getName(), new Object[] {}, locale));
   
    // add the direct child channels for this category
    Set<IPortletDefinition> portlets = portletCategoryRegistry.getChildPortlets(category);   
    EntityIdentifier ei = user.getEntityIdentifier();
      IAuthorizationPrincipal ap = AuthorizationService.instance().newPrincipal(ei.getKey(), ei.getType());
    boolean isManage = type.equals(TYPE_MANAGE);
   
    for(IPortletDefinition channelDef : portlets) {
     
      if ((isManage && ap.canManage(channelDef.getPortletDefinitionId()
View Full Code Here

        if (ilfRoot.getAttribute(Constants.ATT_ID) != null)
            ilfRoot.setIdAttribute(Constants.ATT_ID, true);

        // build the auth principal for determining if pushed channels can be
        // used by this user
        EntityIdentifier ei = person.getEntityIdentifier();
        AuthorizationService authS = AuthorizationService.instance();
        IAuthorizationPrincipal ap = authS.newPrincipal(ei.getKey(),
                ei.getType());

        // now merge fragments one at a time into ILF document
       
        for (final Document document : sequence) {
            mergeFragment( document, result, ap );
View Full Code Here

      {
          if (groupKey == null || p == null)
              return false;
         
          IEntityGroup group = getGroup(groupKey);
          EntityIdentifier ei = p.getEntityIdentifier();
         
          try
          {
              IGroupMember groupMember = GroupService.getGroupMember(ei);
              boolean isMember =false;
View Full Code Here

TOP

Related Classes of org.jasig.portal.EntityIdentifier

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.