Class AssetIterator
- java.lang.Object
-
- edu.indiana.lib.osid.base.repository.AssetIterator
-
- edu.indiana.lib.osid.base.repository.http.AssetIterator
-
- All Implemented Interfaces:
Serializable,org.osid.repository.AssetIterator
public class AssetIterator extends AssetIterator
- Version:
- Author:
- Massachusetts Institute of Techbology, Sakai Software Development Team
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssetIterator(String database, QueryBase queryBase, SearchResultBase searchResult, org.osid.shared.Properties searchProperties, org.osid.shared.Id repositoryId, SessionContext sessionContext)ConstructorprotectedAssetIterator(Vector vector)Unused constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNextAsset()Is another Asset available?protected voidinitialize(org.osid.shared.Properties searchProperties)Initializeorg.osid.repository.AssetnextAsset()Fetch the next available search result (from the "Asset queue")
-
-
-
Constructor Detail
-
AssetIterator
protected AssetIterator(Vector vector)
Unused constructor
-
AssetIterator
protected AssetIterator(String database, QueryBase queryBase, SearchResultBase searchResult, org.osid.shared.Properties searchProperties, org.osid.shared.Id repositoryId, SessionContext sessionContext) throws org.osid.repository.RepositoryException
Constructor- Parameters:
database- The database (or target) for this searchsearchProperties- Property list (search characteristics, provided by our caller)repositoryId- Unique Repository IDsessionContext- Context data for the current user/caller- Throws:
org.osid.repository.RepositoryException
-
-
Method Detail
-
initialize
protected void initialize(org.osid.shared.Properties searchProperties) throws org.osid.shared.SharedExceptionInitialize- Parameters:
searchProperties- Property list (search characteristics, provided by our caller)- Throws:
org.osid.shared.SharedException
-
hasNextAsset
public boolean hasNextAsset() throws org.osid.repository.RepositoryExceptionIs another Asset available? If so, set the search status as "complete".- Specified by:
hasNextAssetin interfaceorg.osid.repository.AssetIterator- Overrides:
hasNextAssetin classAssetIterator- Returns:
- true if an Asset is available, false if not
- Throws:
org.osid.repository.RepositoryException
-
nextAsset
public org.osid.repository.Asset nextAsset() throws org.osid.repository.RepositoryExceptionFetch the next available search result (from the "Asset queue")- Specified by:
nextAssetin interfaceorg.osid.repository.AssetIterator- Overrides:
nextAssetin classAssetIterator- Returns:
- The next search result (as an Asset)
- Throws:
org.osid.repository.RepositoryException
-
-