You are here

getDefaultListingContext

public ListingContext getDefaultListingContext() returns the default listing context.

Parameters

None

Returns

Returns a ListingContext instance representing the default listing context.

Example


...

    try {

      RepositorySession session = RepositorySession.connect(url, username, password);

      if (session) {
 
			   ListingContext lc = session.getDefaultListingContext()); 		
				 ...
					
		  } else {

		     Log.d(TAG, "No Session available!");

		  }
		} catch (AlfrescoSessionException e) {
				Log.e(TAG, "Failed to connect: " + e.toString());
		}