This repository has been archived by the owner on May 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added stubbed replacement implementations of Shindig SPIs (Supports R…
…AVE-13) git-svn-id: https://svn.apache.org/repos/asf/incubator/rave/trunk@1160655 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
7 changed files
with
281 additions
and
6 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
...-shindig/src/main/java/org/apache/rave/opensocial/service/impl/DefaultAppDataService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you 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.apache.rave.opensocial.service.impl; | ||
|
||
import org.apache.shindig.auth.SecurityToken; | ||
import org.apache.shindig.protocol.DataCollection; | ||
import org.apache.shindig.protocol.ProtocolException; | ||
import org.apache.shindig.social.opensocial.spi.AppDataService; | ||
import org.apache.shindig.social.opensocial.spi.GroupId; | ||
import org.apache.shindig.social.opensocial.spi.UserId; | ||
import org.springframework.stereotype.Service; | ||
|
||
import javax.servlet.http.HttpServletResponse; | ||
import java.util.Map; | ||
import java.util.Set; | ||
import java.util.concurrent.Future; | ||
|
||
/** | ||
* | ||
*/ | ||
@Service | ||
public class DefaultAppDataService implements AppDataService{ | ||
|
||
@Override | ||
public Future<DataCollection> getPersonData(Set<UserId> userIds, GroupId groupId, String appId, Set<String> fields, SecurityToken token) throws ProtocolException { | ||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
|
||
@Override | ||
public Future<Void> deletePersonData(UserId userId, GroupId groupId, String appId, Set<String> fields, SecurityToken token) throws ProtocolException { | ||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
|
||
@Override | ||
public Future<Void> updatePersonData(UserId userId, GroupId groupId, String appId, Set<String> fields, Map<String, String> values, SecurityToken token) throws ProtocolException { | ||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
rave-shindig/src/main/java/org/apache/rave/opensocial/service/impl/DefaultGroupService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you 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.apache.rave.opensocial.service.impl; | ||
|
||
import org.apache.shindig.auth.SecurityToken; | ||
import org.apache.shindig.protocol.ProtocolException; | ||
import org.apache.shindig.protocol.RestfulCollection; | ||
import org.apache.shindig.social.opensocial.model.Group; | ||
import org.apache.shindig.social.opensocial.spi.CollectionOptions; | ||
import org.apache.shindig.social.opensocial.spi.GroupService; | ||
import org.apache.shindig.social.opensocial.spi.UserId; | ||
import org.springframework.stereotype.Service; | ||
|
||
import javax.servlet.http.HttpServletResponse; | ||
import java.util.Set; | ||
import java.util.concurrent.Future; | ||
|
||
@Service | ||
public class DefaultGroupService implements GroupService{ | ||
@Override | ||
public Future<RestfulCollection<Group>> getGroups(UserId userId, CollectionOptions options, Set<String> fields, SecurityToken token) { | ||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
} |
101 changes: 101 additions & 0 deletions
101
...dig/src/main/java/org/apache/rave/opensocial/service/impl/MultiFormatActivityService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you 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.apache.rave.opensocial.service.impl; | ||
|
||
import org.apache.shindig.auth.SecurityToken; | ||
import org.apache.shindig.protocol.ProtocolException; | ||
import org.apache.shindig.protocol.RestfulCollection; | ||
import org.apache.shindig.social.opensocial.model.Activity; | ||
import org.apache.shindig.social.opensocial.model.ActivityEntry; | ||
import org.apache.shindig.social.opensocial.spi.*; | ||
import org.springframework.stereotype.Service; | ||
|
||
import javax.servlet.http.HttpServletResponse; | ||
import java.util.Set; | ||
import java.util.concurrent.Future; | ||
|
||
@Service | ||
public class MultiFormatActivityService implements ActivityStreamService, ActivityService { | ||
@Override | ||
public Future<RestfulCollection<ActivityEntry>> getActivityEntries(Set<UserId> userIds, GroupId groupId, String appId, Set<String> fields, CollectionOptions options, SecurityToken token) throws ProtocolException { | ||
|
||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
|
||
@Override | ||
public Future<RestfulCollection<ActivityEntry>> getActivityEntries(UserId userId, GroupId groupId, String appId, Set<String> fields, CollectionOptions options, Set<String> activityIds, SecurityToken token) throws ProtocolException { | ||
|
||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
|
||
@Override | ||
public Future<ActivityEntry> getActivityEntry(UserId userId, GroupId groupId, String appId, Set<String> fields, String activityId, SecurityToken token) throws ProtocolException { | ||
|
||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
|
||
@Override | ||
public Future<Void> deleteActivityEntries(UserId userId, GroupId groupId, String appId, Set<String> activityIds, SecurityToken token) throws ProtocolException { | ||
|
||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
|
||
@Override | ||
public Future<ActivityEntry> updateActivityEntry(UserId userId, GroupId groupId, String appId, Set<String> fields, ActivityEntry activity, String activityId, SecurityToken token) throws ProtocolException { | ||
|
||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
|
||
@Override | ||
public Future<ActivityEntry> createActivityEntry(UserId userId, GroupId groupId, String appId, Set<String> fields, ActivityEntry activity, SecurityToken token) throws ProtocolException { | ||
|
||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
|
||
@Override | ||
public Future<RestfulCollection<Activity>> getActivities(Set<UserId> userIds, GroupId groupId, String appId, Set<String> fields, CollectionOptions options, SecurityToken token) throws ProtocolException { | ||
|
||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
|
||
@Override | ||
public Future<RestfulCollection<Activity>> getActivities(UserId userId, GroupId groupId, String appId, Set<String> fields, CollectionOptions options, Set<String> activityIds, SecurityToken token) throws ProtocolException { | ||
|
||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
|
||
@Override | ||
public Future<Activity> getActivity(UserId userId, GroupId groupId, String appId, Set<String> fields, String activityId, SecurityToken token) throws ProtocolException { | ||
|
||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
|
||
@Override | ||
public Future<Void> deleteActivities(UserId userId, GroupId groupId, String appId, Set<String> activityIds, SecurityToken token) throws ProtocolException { | ||
|
||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
|
||
@Override | ||
public Future<Void> createActivity(UserId userId, GroupId groupId, String appId, Set<String> fields, Activity activity, SecurityToken token) throws ProtocolException { | ||
|
||
throw new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED, "Not Implemented"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
rave-shindig/src/test/java/org/apache/rave/opensocial/service/AppDataServiceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you 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.apache.rave.opensocial.service; | ||
|
||
/** | ||
*/ | ||
public class AppDataServiceTest { | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
rave-shindig/src/test/java/org/apache/rave/opensocial/service/GroupServiceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you 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.apache.rave.opensocial.service; | ||
|
||
/** | ||
*/ | ||
public class GroupServiceTest { | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
...ndig/src/test/java/org/apache/rave/opensocial/service/MultiFormatActivityServiceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you 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.apache.rave.opensocial.service; | ||
|
||
/** | ||
*/ | ||
public class MultiFormatActivityServiceTest { | ||
|
||
} |