Commits

Joeri Sykora committed ef2a5ed

update sample to DaliCore 1.0.0

  • Participants
  • Parent commits 5fa3985

Comments (0)

Files changed (8)

oauthconsumer/pom.xml

 
 	<groupId>com.mycompany</groupId>
 	<artifactId>oauthconsumer</artifactId>
-	<version>1.0-SNAPSHOT</version>
+	<version>1.0</version>
 	<packaging>war</packaging>
 
 	<name>oauthconsumer</name>
 	<dependencies>
 		<dependency>
 			<groupId>com.lodgon.dalicore</groupId>
-			<artifactId>dalicore-externalnetwork</artifactId>
-			<version>0.9.11-SNAPSHOT</version>
+			<artifactId>dalicore-social</artifactId>
+			<version>1.0.0</version>
 		</dependency>
 		<dependency>
 			<groupId>com.sun.jersey</groupId>
 			<artifactId>jersey-server</artifactId>
-			<version>1.8</version>
+			<version>1.11.1</version>
 			<scope>provided</scope>
 		</dependency>
 		<dependency>
 			<groupId>com.sun.jersey.contribs.jersey-oauth</groupId>
 			<artifactId>oauth-signature</artifactId>
-			<version>1.8</version>
+			<version>1.11.1</version>
 		</dependency>
 		<dependency>
 			<groupId>javax</groupId>

oauthconsumer/src/main/java/com/mycompany/oauthconsumer/HomeHandler.java

 package com.mycompany.oauthconsumer;
 
-import com.lodgon.dali.core.externalnetwork.DaliCoreExternalNetwork;
-import com.lodgon.dali.core.externalnetwork.entity.ExternalToken;
+import com.lodgon.dali.core.social.DaliCoreExternalNetwork;
+import com.lodgon.dali.core.social.entity.ExternalToken;
 import com.sun.jersey.api.view.Viewable;
 import java.net.URI;
 import java.net.URISyntaxException;

oauthconsumer/src/main/resources/META-INF/services/com.sun.jersey.oauth.signature.OAuthSignatureMethod

+com.sun.jersey.oauth.signature.HMAC_SHA1
+com.sun.jersey.oauth.signature.PLAINTEXT
+com.sun.jersey.oauth.signature.RSA_SHA1

oauthconsumer/src/main/resources/META-INF/services/com.sun.jersey.spi.inject.InjectableProvider

+com.sun.jersey.oauth.server.OAuthProviderInjectionProvider

oauthprovider/pom.xml

 
     <groupId>com.mycompany</groupId>
     <artifactId>oauthprovider</artifactId>
-    <version>1.0-SNAPSHOT</version>
+    <version>1.0</version>
     <packaging>war</packaging>
 
     <name>oauthprovider</name>
         <dependency>
             <groupId>com.lodgon.dalicore</groupId>
             <artifactId>dalicore-ejb</artifactId>
-            <version>0.9.11-SNAPSHOT</version>
+            <version>1.0.0</version>
         </dependency>
         <dependency>
             <groupId>com.lodgon.dalicore</groupId>
             <artifactId>dalicore-oauth</artifactId>
-            <version>0.9.11-SNAPSHOT</version>
+            <version>1.0.0</version>
         </dependency>
         <dependency>
             <groupId>com.sun.jersey</groupId>
             <artifactId>jersey-server</artifactId>
-            <version>1.8</version>
+            <version>1.11.1</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>com.sun.jersey.contribs.jersey-oauth</groupId>
             <artifactId>oauth-signature</artifactId>
-            <version>1.8</version>
+            <version>1.11.1</version>
         </dependency>
         <dependency>
             <groupId>javax</groupId>

oauthprovider/src/main/java/com/mycompany/oauthprovider/ServiceConsumerHandler.java

 
 import com.lodgon.dali.core.oauth.ejb.OAuthBean;
 import com.lodgon.dali.core.oauth.entity.DaliServiceConsumer;
-import com.lodgon.extras.util.StringUtil;
+import com.lodgon.dali.core.oauth.util.StringUtil;
 import javax.annotation.ManagedBean;
 import javax.inject.Inject;
 import javax.ws.rs.GET;

oauthprovider/src/main/resources/META-INF/services/com.sun.jersey.oauth.signature.OAuthSignatureMethod

+com.sun.jersey.oauth.signature.HMAC_SHA1
+com.sun.jersey.oauth.signature.PLAINTEXT
+com.sun.jersey.oauth.signature.RSA_SHA1

oauthprovider/src/main/resources/META-INF/services/com.sun.jersey.spi.inject.InjectableProvider

+com.sun.jersey.oauth.server.OAuthProviderInjectionProvider