Package org.jasig.portal

Examples of org.jasig.portal.EntityTypes$EntityType


   * {@inheritDoc}
   */
  @Override
  public void processRow(ResultSet resultSet) throws SQLException {
        long memberId;
        EntityType memberType;
        String memberRole;
        RelationMember relationMember;
       
    memberId = resultSet.getLong("member_id");
    memberType = memberTypeParser.parse(resultSet.getString("member_type"));
View Full Code Here


    // Entities may have been made read-only at some point in the pipeline.
    // We want a writeable instance so that we can update the tags.
    EntityContainer writeableEntityContainer = entityContainer.getWriteableInstance();
    Entity entity = entityContainer.getEntity();
    Collection<Tag> entityTags = entity.getTags();
    EntityType entityType = entity.getType();

    // Store the tags in a map keyed by tag key.
    Map<String, String> tagMap = new HashMap<String, String>();
    for (Tag tag : entity.getTags()) {
      tagMap.put(tag.getKey(), tag.getValue());
View Full Code Here

            List<RelationMember> nodes = new ArrayList<RelationMember>();
            for (int j = 0; j < i.getMemidsCount(); j++) {
                long mid = lastMid + i.getMemids(j);
                lastMid = mid;
                String role = getStringById(i.getRolesSid(j));
                EntityType etype = null;

                if (i.getTypes(j) == Osmformat.Relation.MemberType.NODE) {
                    etype = EntityType.Node;
                } else if (i.getTypes(j) == Osmformat.Relation.MemberType.WAY) {
                    etype = EntityType.Way;
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void begin(Attributes attributes) {
    long id;
    EntityType type;
    String role;
   
    id = Long.parseLong(attributes.getValue(ATTRIBUTE_NAME_ID));
    type = memberTypeParser.parse(attributes.getValue(ATTRIBUTE_NAME_TYPE));
    role = attributes.getValue(ATTRIBUTE_NAME_ROLE);
View Full Code Here

      new LongLongIndexElement(relationId, objectOffset)
    );
   
    // Write the relation id to indexes keyed by each of the relation members.
    for (RelationMember member : relation.getMembers()) {
      EntityType memberType;
     
      memberType = member.getMemberType();
     
      if (memberType.equals(EntityType.Node)) {
        nodeRelationIndexWriter.write(new LongLongIndexElement(member.getMemberId(), relationId));
      } else if (memberType.equals(EntityType.Way)) {
        wayRelationIndexWriter.write(new LongLongIndexElement(member.getMemberId(), relationId));
      } else if (memberType.equals(EntityType.Relation)) {
        relationRelationIndexWriter.write(new LongLongIndexElement(member.getMemberId(), relationId));
      } else {
        throw new OsmosisRuntimeException("Member type " + memberType + " is not recognised.");
      }
    }
View Full Code Here

        filteredRelation = filteredRelationContainer.getEntity();
       
        // Remove members for entities that are unavailable.
        for (Iterator<RelationMember> i = filteredRelation.getMembers().iterator(); i.hasNext();) {
          RelationMember member = i.next();
          EntityType memberType;
          long memberId;
         
          memberType = member.getMemberType();
          memberId = member.getMemberId();
         
View Full Code Here

TOP

Related Classes of org.jasig.portal.EntityTypes$EntityType

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.