You are here

getIdentifier

public String getIdentifier() returns the identifier of the site.

Parameters

None

Returns

Returns a string representing the identifier of the site. This returns the site short name. This method was added for consistency with other objects.

Example


    SiteService ss = session.getServiceRegistry()
    		.getSiteService();		
    
    Site site = ss.getSite("test-site");
    
    Log.d(TAG, "getIdentifier: " + site.getIdentifier());

    

Would result in output such as the following:


    getIdentifier: test-site
        
      
Note: This method was added in version 1.1.