Package org.jasig.portal

Examples of org.jasig.portal.EntityIdentifier


    Hashtable pushFragmentRoots = null;
    String pushFragmentIds = null;

  try {

       EntityIdentifier personIdentifier = person.getEntityIdentifier();
       IGroupMember groupPerson = GroupService.getGroupMember(personIdentifier);


        con = RDBMServices.getConnection();
        RDBMServices.setAutoCommit(con,false);
View Full Code Here


         if ( rs.next() )
           permitted = true;
         rs.close()
          
         if ( !permitted ) { 
           EntityIdentifier personIdentifier = person.getEntityIdentifier();
           IGroupMember groupPerson = GroupService.getGroupMember(personIdentifier);
           query = "SELECT GROUP_KEY FROM UP_GROUP_FRAGMENT WHERE FRAGMENT_ID="+fragmentId;
           rs = stmt.executeQuery(query);
           while ( rs.next() ) {   
            IEntityGroup group = GroupService.findGroup(rs.getString(1));
View Full Code Here

    ResultSet rs = stmt.executeQuery(query1);
    Set groupKeys = new HashSet();

    while ( rs.next() ) {
     if ( groupPerson == null ) {
      EntityIdentifier personIdentifier = person.getEntityIdentifier();
      groupPerson = GroupService.getGroupMember(personIdentifier);
     }
      String nodeId = rs.getInt(2)+"";
      String groupKey = rs.getString(3);
      if ( !correctIds.contains(nodeId) ) {
View Full Code Here

     ResultSet rs = stmt.executeQuery(query1);
     Set groupKeys = new HashSet();

     while ( rs.next() ) {
      if ( groupPerson == null ) {
       EntityIdentifier personIdentifier = person.getEntityIdentifier();
       groupPerson = GroupService.getGroupMember(personIdentifier);
      }
       int fragmentId = rs.getInt(1);
       String groupKey = rs.getString(2);
       String fragStrId = Integer.toString(fragmentId);
View Full Code Here

              //System.out.println("result");
              uis.clearParameters();
              uis.setString(1,rs.getString(1));
              urs = uis.executeQuery();
              if(urs.next()){
                ar.add(new EntityIdentifier(urs.getString(1),personDef));
              }
            }

            ups.clearParameters();
            ups.setString(1,query);
            uprs = ups.executeQuery();
            while (uprs.next()){
                ar.add(new EntityIdentifier(uprs.getString(1),personDef));
            }
        } catch (SQLException e) {
            throw new GroupsException("RDBMChannelDefSearcher.searchForEntities(): " + ps,e);
        } finally {
            if (rs!=null) RDBMServices.closeResultSet(rs);
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),chanDef));
                }
              } finally {
                close(rs)
                }
            } finally {
View Full Code Here

        if (groupForRole == null) {
            return false;
        }

        //Load the group information about the current user
        final EntityIdentifier personEntityId = this.person.getEntityIdentifier();
        final IGroupMember personGroupMember = GroupService.getGroupMember(personEntityId);

        //Find the role link for the role
        final SecurityRoleRefDD securityRoleRef = getSecurityRoleRef(role);
        if (securityRoleRef == null) {
View Full Code Here

    int i;
    switch (method){
      case IS:
        for (i=0; i<g.length;i++){
          if(g[i].name.equalsIgnoreCase(query)){
            ids.add(new EntityIdentifier(g[i].key,group));
          }
        }
        break;
      case STARTS_WITH:
        for (i=0; i<g.length;i++){
          if(g[i].name.toUpperCase().startsWith(query.toUpperCase())){
            ids.add(new EntityIdentifier(g[i].key,group));
          }
        }
        break;
      case ENDS_WITH:
        for (i=0; i<g.length;i++){
          if(g[i].name.toUpperCase().endsWith(query.toUpperCase())){
            ids.add(new EntityIdentifier(g[i].key,group));
          }
        }
        break;
      case CONTAINS:
        for (i=0; i<g.length;i++){
          if(g[i].name.toUpperCase().indexOf(query.toUpperCase()) > -1){
            ids.add(new EntityIdentifier(g[i].key,group));
          }
        }
        break;
    }
    return (EntityIdentifier[]) ids.toArray(new EntityIdentifier[0]);
View Full Code Here

    }
    ArrayList keys = new ArrayList();
    processLdapResults(userlist,keys);
    String[] k = (String[]) keys.toArray(new String[0]);
    for (int i=0; i<k.length; i++){
      ids.add(new EntityIdentifier(k[i],iperson));
    }
    return (EntityIdentifier[]) ids.toArray(new EntityIdentifier[0]);
  }
View Full Code Here

        // Decide whether to render a friendly or detailed screen
        this.ssTitle = "friendly";
        try {
            final AuthorizationService authService = AuthorizationService.instance();
            final IPerson person = userPreferencesManager.getPerson();
            final EntityIdentifier ei = person.getEntityIdentifier();
            final IAuthorizationPrincipal ap = authService.newPrincipal(ei.getKey(), ei.getType());
           
            if (ap.hasPermission(SupportedPermissions.OWNER, SupportedPermissions.VIEW_ACTIVITY, SupportedPermissions.DETAILS_TARGET)) {
                this.ssTitle = "detailed";
            }
        }
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.