Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Creative commons Attribution-NonCommercial license. http://creativecommons.org/licenses/by-nc/2.5/au/deed.en_GB NO WARRANTY IS GIVEN OR IMPLIED, USE AT YOUR OWN RISK.
 
 package base.security;
 
public interface ResourceLookup {
Return the name of a resource associated with this resource UID.

Parameters:
uid Unique identifier of a resource in string format
Returns:
KeyValue pair containing the uid and name of the requested resource, or null
	KeyValue lookup(String uidthrows IOException;

The total number of resources of this type. This may be used to determine if these resources may fit in a dropdown list, or if a search interface may be required.
	long count() throws IOException;

List the UID and name of all resources of this type.
count()
should be called first to ensure that this will not return too many objects.
List the UID and name of each resource matching the provided search terms.

Parameters:
keywords Filter the resources based on these keywords.
Returns:
KeyValue pairs containing the uid and name of all resources matching the keywords
	List<KeyValuesearch(String keywordsthrows IOException;
New to GrepCode? Check out our FAQ X