org.exoplatform.social.webui
Class RelationshipListAccess

java.lang.Object
  extended by org.exoplatform.social.webui.RelationshipListAccess
All Implemented Interfaces:
org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.relationship.model.Relationship>

public class RelationshipListAccess
extends Object
implements org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.relationship.model.Relationship>


Constructor Summary
RelationshipListAccess(List<org.exoplatform.social.core.relationship.model.Relationship> list)
          Initializes the access list.
 
Method Summary
 int getSize()
          Gets the number of element in accessing list.
 org.exoplatform.social.core.relationship.model.Relationship[] load(int index, int length)
          Implements load method of ListAccess interfaces for load all initial variables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipListAccess

public RelationshipListAccess(List<org.exoplatform.social.core.relationship.model.Relationship> list)
Initializes the access list.

Parameters:
list - List is used for initialize.
Method Detail

load

public org.exoplatform.social.core.relationship.model.Relationship[] load(int index,
                                                                          int length)
                                                                   throws Exception,
                                                                          IllegalArgumentException
Implements load method of ListAccess interfaces for load all initial variables.

Specified by:
load in interface org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.relationship.model.Relationship>
Returns:
result Array of relationship using in access list.
Throws:
Exception
IllegalArgumentException

getSize

public int getSize()
            throws Exception
Gets the number of element in accessing list.

Specified by:
getSize in interface org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.relationship.model.Relationship>
Returns:
size Number of element in list.
Throws:
Exception


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.