You are here

refreshNode

public SkyVaultNode refreshNode(AlfrescoNode node) returns the latest and complete metadata for the specified node.
Attention: This method was added in SDK version 1.2.

Parameters

Node node
An SkyVaultNode object. The node to refresh.

Returns

The refreshed node.

Exception

Throws an SkyVaultServiceException if the operation cannot be completed.

Example

        
  // get favorite documents
  for (Document document : documentFolderService
  		.getFavoriteDocuments()) {
  	if (!document.hasAllProperties()) {
  		// if hasAllProperties() returns false then refresh
  		// Node
  		document = (Document) documentFolderService.refreshNode(document);
  	}
  	Log.d(TAG, "title: " + document.getTitle());
  	Log.d(TAG, "description: " + document.getDescription());
  	Log.d(TAG, "name: " + document.getName());
  	Log.d(TAG, "isDocument: " + document.isDocument());
  }