Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.mcplusa.google</groupId>
<artifactId>mcplusa-google-feeder-java</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>

<name>mcplusa-google-feeder-java</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.8.0</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
</dependencies>
</project>
5 changes: 0 additions & 5 deletions src/com/mcplusa/google/feeder/FeederUtil.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package com.mcplusa.google.feeder;

import java.io.*;
Expand Down
5 changes: 0 additions & 5 deletions src/com/mcplusa/google/feeder/GSAContentItem.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package com.mcplusa.google.feeder;

import java.util.*;
Expand Down
7 changes: 1 addition & 6 deletions src/com/mcplusa/google/feeder/GSAFeed.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.mcplusa.google.feeder;

import java.io.IOException;
Expand Down Expand Up @@ -99,13 +95,12 @@ public void BuildHeader() throws SAXException, IOException {

public final String WriteXMLToFile(String gsa) {
logger.info("Starting WriteXmlToFile");
String filename = "asdf" + "something";
Date now = new Date();
SimpleDateFormat sd = new SimpleDateFormat("yyyy_mm_dd_hh_ss");

String timestamp = sd.format(now);

filename = this.dataSource + "_" + timestamp + ".xml";
String filename = this.dataSource + "_" + timestamp + ".xml";
try {
if (feederFolder.length() > 0) {
if (feederFolder.endsWith("\\")) {
Expand Down
5 changes: 0 additions & 5 deletions src/com/mcplusa/google/feeder/GSAMetaDataItem.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package com.mcplusa.google.feeder;

/**
Expand Down
25 changes: 1 addition & 24 deletions src/com/mcplusa/google/feeder/constants/ConnectorConstants.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package com.mcplusa.google.feeder.constants;

/**
Expand All @@ -12,41 +7,26 @@
public class ConnectorConstants {
// mime
public final static String MIME_TYPE = "mimetype";

public final static String MIME_TEXT = "text/plain";

// feeder
public final static String FEEDER_LAST_MODIFIED = "last-modified";

public final static String FEEDER_NAME = "name";

public final static String FEEDER_CONTENT = "content";

public final static String FEEDER_METADATA = "metadata";

public final static String FEEDER_META = "meta";

public final static String FEEDER_URL = "url";

public final static String FEEDER_HEADER = "header";

public final static String FEEDER_RECORD = "record";

public final static String FEEDER_GROUP = "group";

public final static String FEEDER_GSAFEED = "gsafeed";

public final static String FEEDER_TYPE = "feedtype";

public final static String FEEDER_DATA = "data";

public final static String FEEDER_DS = "datasource";

// feed types
public final static String FEEDER_TYPE_FULL = "full";

public final static String FEEDER_TYPE_INC = "incremental";

public final static String FEEDER_TYPE_URL = "metadata-and-url";

// authentication
Expand All @@ -68,10 +48,7 @@ public class ConnectorConstants {
public static String TAG_ID = "ID";
public static String TAG_MODIFIED = "Modified";
public static String TAG_URL = "ServerUrl";
//
public static String SP_NAMESPACE = "http://schemas.microsoft.com/sharepoint/soap/";
public static String SP_PREFIX = "SOAPSDK9";
public static String SiteDirectoryTag = "SiteDirectory";

// feeder
public final static String FEEDER_GATE = ":19900/xmlfeed";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package com.mcplusa.google.feeder.constants;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/com/mcplusa/google/feeder/constants/GSAFeedType.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package com.mcplusa.google.feeder.constants;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/com/mcplusa/google/feeder/constants/GSAMimeTypes.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package com.mcplusa.google.feeder.constants;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/com/mcplusa/google/feeder/uploader/GSAUploader.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package com.mcplusa.google.feeder.uploader;

import com.mcplusa.google.feeder.constants.*;
Expand Down
5 changes: 0 additions & 5 deletions src/com/mcplusa/google/feeder/util/Base64.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package com.mcplusa.google.feeder.util;

/**
Expand Down