Package org.apache.manifoldcf.agents.interfaces

Examples of org.apache.manifoldcf.agents.interfaces.RepositoryDocument.addField()


                        rd.setBinary(inputStream, tempFile.length());
                        rd.setFileName(file.getName());
                        String contentType = mapExtensionToMimeType(file.getName());
                        if (contentType != null)
                          rd.setMimeType(contentType);
                        rd.addField("lastModified", new Date(file.lastModified()).toString());
                        int index = 0;
                        index = setDocumentSecurity(rd,version,index);
                        index = setPathMetadata(rd,version,index);
                        StringBuilder ingestURI = new StringBuilder();
                        index = unpack(ingestURI,version,index,'+');
View Full Code Here


                    rd.setBinary(inputStream, fileLength(file));
                    rd.setFileName(file.getName());
                    String contentType = mapExtensionToMimeType(file.getName());
                    if (contentType != null)
                      rd.setMimeType(contentType);
                    rd.addField("lastModified", new Date(file.lastModified()).toString());
                    int index = 0;
                    index = setDocumentSecurity(rd,version,index);
                    index = setPathMetadata(rd,version,index);
                    StringBuilder ingestURI = new StringBuilder();
                    index = unpack(ingestURI,version,index,'+');
View Full Code Here

              case STRING:
              case ID:
              case URI:
              case HTML:
                String stringValue = (String) propertyValue;
                rd.addField(propertyId, stringValue);
                break;

              case BOOLEAN:
                Boolean booleanValue = (Boolean) propertyValue;
                rd.addField(propertyId, booleanValue.toString());
View Full Code Here

                rd.addField(propertyId, stringValue);
                break;

              case BOOLEAN:
                Boolean booleanValue = (Boolean) propertyValue;
                rd.addField(propertyId, booleanValue.toString());
                break;

              case INTEGER:
                BigInteger integerValue = (BigInteger) propertyValue;
                rd.addField(propertyId, integerValue.toString());
View Full Code Here

                rd.addField(propertyId, booleanValue.toString());
                break;

              case INTEGER:
                BigInteger integerValue = (BigInteger) propertyValue;
                rd.addField(propertyId, integerValue.toString());
                break;

              case DECIMAL:
                BigDecimal decimalValue = (BigDecimal) propertyValue;
                rd.addField(propertyId, decimalValue.toString());
View Full Code Here

                rd.addField(propertyId, integerValue.toString());
                break;

              case DECIMAL:
                BigDecimal decimalValue = (BigDecimal) propertyValue;
                rd.addField(propertyId, decimalValue.toString());
                break;

              case DATETIME:
                GregorianCalendar dateValue = (GregorianCalendar) propertyValue;
                rd.addField(propertyId,
View Full Code Here

                rd.addField(propertyId, decimalValue.toString());
                break;

              case DATETIME:
                GregorianCalendar dateValue = (GregorianCalendar) propertyValue;
                rd.addField(propertyId,
                    ISO8601_DATE_FORMATTER.format(dateValue.getTime()));
                break;

              default:
                break;
View Full Code Here

              case URI:
              case HTML:
                if(property.isMultiValued()){
                  List<String> htmlPropertyValues = (List<String>) property.getValues();
                  for (String htmlPropertyValue : htmlPropertyValues) {
                    rd.addField(propertyId, htmlPropertyValue);
                  }
                } else {
                  String stringValue = (String) property.getValue();
                  if(StringUtils.isNotEmpty(stringValue)){
                    rd.addField(propertyId, stringValue);
View Full Code Here

                    rd.addField(propertyId, htmlPropertyValue);
                  }
                } else {
                  String stringValue = (String) property.getValue();
                  if(StringUtils.isNotEmpty(stringValue)){
                    rd.addField(propertyId, stringValue);
                  }
                }
                break;
    
              case BOOLEAN:
View Full Code Here

    
              case BOOLEAN:
                if(property.isMultiValued()){
                  List<Boolean> booleanPropertyValues = (List<Boolean>) property.getValues();
                  for (Boolean booleanPropertyValue : booleanPropertyValues) {
                    rd.addField(propertyId, booleanPropertyValue.toString());
                  }
                } else {
                  Boolean booleanValue = (Boolean) property.getValue();
                  if(booleanValue!=null){
                    rd.addField(propertyId, booleanValue.toString());
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.