Permalink
Browse files

Added License to new files and comment to new API classes

  • Loading branch information...
1 parent e9dabd3 commit dde31efe8d8de37d64a4db9d1b45f59f3e3f2815 @antoinesd committed Feb 24, 2011
Showing with 248 additions and 59 deletions.
  1. +17 −3 api/src/main/java/org/jboss/seam/social/linkedin/LinkedIn.java
  2. +18 −3 api/src/main/java/org/jboss/seam/social/linkedin/LinkedInHandler.java
  3. +21 −0 api/src/main/java/org/jboss/seam/social/linkedin/package-info.java
  4. +20 −5 api/src/main/java/org/jboss/seam/social/oauth/HttpResponse.java
  5. +7 −10 api/src/main/java/org/jboss/seam/social/oauth/Setted.java
  6. +0 −1 api/src/main/java/org/jboss/seam/social/twitter/TwitterHandler.java
  7. +23 −5 api/src/main/java/org/jboss/seam/social/twitter/domain/Credential.java
  8. +25 −7 api/src/main/java/org/jboss/seam/social/twitter/domain/SearchResult.java
  9. +23 −7 api/src/main/java/org/jboss/seam/social/twitter/domain/Tweet.java
  10. +0 −1 examples/web-client/src/main/java/org/jboss/seam/social/example/twitterweb/SocialClient.java
  11. +16 −5 impl/src/main/java/org/jboss/seam/social/linkedin/LinkedInHanlderBean.java
  12. +15 −2 impl/src/main/java/org/jboss/seam/social/linkedin/LinkedInProducer.java
  13. +17 −0 impl/src/main/java/org/jboss/seam/social/linkedin/package-info.java
  14. +15 −2 impl/src/main/java/org/jboss/seam/social/oauth/HttpResponseScribe.java
  15. +15 −2 impl/src/main/java/org/jboss/seam/social/oauth/JsonMapper.java
  16. +0 −1 impl/src/main/java/org/jboss/seam/social/oauth/OAuthServiceHandlerScribe.java
  17. +16 −4 impl/src/main/java/org/jboss/seam/social/oauth/SettedHandlerProducer.java
  18. +0 −1 impl/src/main/java/org/jboss/seam/social/twitter/TwitterHandlerBean.java
  19. 0 impl/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension
@@ -1,5 +1,18 @@
-/**
- *
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
package org.jboss.seam.social.linkedin;
@@ -20,7 +33,8 @@
@Retention(RUNTIME)
@Documented
/**
- * @author antoine
+ * A CDI qualifier annotation to qualify bean being released to LinkedIn configuration
+ * @author Antoine Sabot-Durand
*
*/
public @interface LinkedIn
@@ -1,12 +1,27 @@
-/**
- *
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
package org.jboss.seam.social.linkedin;
import org.jboss.seam.social.oauth.OAuthServiceHandler;
/**
- * @author antoine
+ * A specialization of {@link OAuthServiceHandler} to add LinkedIn specific methods
+ *
+ * @author Antoine Sabot-Durand
*
*/
public interface LinkedInHandler extends OAuthServiceHandler
@@ -0,0 +1,21 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.jboss.seam.social.linkedin;
+
+/**
+* This package contains API elements to manage interactions with LinkedIn thru CDI Beans
+*/
@@ -1,13 +1,28 @@
-/**
- *
- */
-package org.jboss.seam.social.oauth;
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */package org.jboss.seam.social.oauth;
import java.io.InputStream;
import java.util.Map;
/**
- * @author antoine
+ *
+ * Implementation of this interface represent an Http Response
+ *
+ * @author Antoine Sabot-Durand
*
*/
public interface HttpResponse
@@ -16,22 +16,19 @@
*/
package org.jboss.seam.social.oauth;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import javax.enterprise.util.Nonbinding;
-import javax.inject.Inject;
import javax.inject.Qualifier;
-import org.jboss.seam.social.twitter.TwitterHandler;
-
-import static java.lang.annotation.ElementType.FIELD;
-import static java.lang.annotation.ElementType.METHOD;
-import static java.lang.annotation.ElementType.PARAMETER;
-import static java.lang.annotation.ElementType.TYPE;
-import static java.lang.annotation.RetentionPolicy.RUNTIME;
-
/**
* A CDI Qualifier annotation to qualify and set OAuthServiceHandler directly in the code
* It can be used like this :
@@ -41,7 +38,7 @@
* TwitterHandler service;
*</pre>
*
- * It's one of the alternates solution intitialize an OAuth service configuration
+ * It's one of the alternates solution initialize an OAuth service configuration
*
* @author Antoine Sabot-Durand
*
@@ -18,7 +18,6 @@
import org.jboss.seam.social.oauth.OAuthServiceHandler;
import org.jboss.seam.social.twitter.domain.Credential;
-import org.jboss.seam.social.twitter.domain.SearchResult;
import org.jboss.seam.social.twitter.domain.Tweet;
@@ -1,10 +1,28 @@
-/**
- *
- */
-package org.jboss.seam.social.twitter.domain;
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */package org.jboss.seam.social.twitter.domain;
+
+import org.jboss.seam.social.twitter.TwitterHandler;
/**
- * @author antoine
+ *
+ * Implementation of this interface contains information about Twitter Credential of the current user
+ * It is returned by {@link TwitterHandler#verifyCrendentials()}
+ *
+ * @author Antoine Sabot-Durand
*
*/
public interface Credential
@@ -1,14 +1,32 @@
-/**
- *
- */
-package org.jboss.seam.social.twitter.domain;
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */package org.jboss.seam.social.twitter.domain;
import java.util.List;
+import org.jboss.seam.social.twitter.TwitterHandler;
+
/**
- * @author antoine
- *
- */
+*
+* Implementation of this interface contains a Twitter search result
+* It is returned by {@link TwitterHandler#search()}
+*
+* @author Antoine Sabot-Durand
+*
+*/
public interface SearchResult
{
@@ -1,10 +1,26 @@
-/**
- *
- */
-package org.jboss.seam.social.twitter.domain;
-
-/**
- * @author antoine
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */package org.jboss.seam.social.twitter.domain;
+
+
+ /**
+ *
+ * Implementation of this interface contains a Tweet
+ *
+ * @author Antoine Sabot-Durand
*
*/
public interface Tweet
@@ -23,7 +23,6 @@
import javax.inject.Named;
import org.jboss.seam.social.oauth.Setted;
-import org.jboss.seam.social.twitter.Twitter;
import org.jboss.seam.social.twitter.TwitterHandler;
import org.jboss.seam.social.twitter.domain.Credential;
@@ -1,5 +1,18 @@
-/**
- *
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
package org.jboss.seam.social.linkedin;
@@ -8,16 +21,14 @@
import org.jboss.seam.social.oauth.OAuthServiceHandlerScribe;
import org.jboss.seam.social.oauth.OAuthServiceSettings;
-import org.jboss.seam.social.twitter.Twitter;
import org.scribe.builder.api.Api;
import org.scribe.builder.api.LinkedInApi;
-import org.scribe.builder.api.TwitterApi;
/**
* @author antoine
*
*/
-//@Typed(LinkedInHanlderBean.class)
+@Typed(LinkedInHandler.class)
public class LinkedInHanlderBean extends OAuthServiceHandlerScribe implements LinkedInHandler
{
@@ -1,5 +1,18 @@
-/**
- *
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
package org.jboss.seam.social.linkedin;
@@ -0,0 +1,17 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.jboss.seam.social.linkedin;
@@ -1,5 +1,18 @@
-/**
- *
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
package org.jboss.seam.social.oauth;
Oops, something went wrong.

0 comments on commit dde31ef

Please sign in to comment.