nl.surfnet.coin.shindig.spi
Class OpenSocialValidator

java.lang.Object
  extended by nl.surfnet.coin.shindig.spi.OpenSocialValidator

@Component(value="openSocialId")
public class OpenSocialValidator
extends Object

Responsible for validating Id's for OpenSocial queries.


Constructor Summary
OpenSocialValidator()
           
 
Method Summary
 void invariant(GroupId groupId)
          We only support GroupId.Type.groupId
 void invariant(Set<UserId> userIds)
          Check if the userIds are valid
 void invariant(Set<UserId> userIds, boolean requiresSingleUser)
          Check if the userIds are valid
 void invariant(Set<UserId> userIds, GroupId groupId)
          Check if there are userIds to identify
 void invariant(Set<UserId> userIds, GroupId groupId, String appId)
          Check if there are userIds to identify
 void invariant(UserId userId)
          Check if the userId is valid
 void invariant(UserId userId, GroupId groupId)
          Check if there are userIds to identify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenSocialValidator

public OpenSocialValidator()
Method Detail

invariant

public void invariant(Set<UserId> userIds,
                      GroupId groupId)
Check if there are userIds to identify

Parameters:
userIds - all userIds
groupId - the groupId

invariant

public void invariant(Set<UserId> userIds,
                      GroupId groupId,
                      String appId)
Check if there are userIds to identify

Parameters:
userIds - all userIds
groupId - the groupId
appId - the application Id

invariant

public void invariant(UserId userId,
                      GroupId groupId)
Check if there are userIds to identify

Parameters:
userId - the userId
groupId - the groupId

invariant

public void invariant(GroupId groupId)
We only support GroupId.Type.groupId

Parameters:
groupId - the groupId

invariant

public void invariant(UserId userId)
Check if the userId is valid

Parameters:
userId - the userId

invariant

public void invariant(Set<UserId> userIds)
Check if the userIds are valid

Parameters:
userIds - the userIds

invariant

public void invariant(Set<UserId> userIds,
                      boolean requiresSingleUser)
Check if the userIds are valid

Parameters:
userIds - the userIds


Copyright © 2007-2012. All Rights Reserved.