You are here

getVisibility

public SiteVisibility getVisibility() returns the visibility of the site.

Parameters

None

Returns

Returns a SiteVisibility object representing the visibility of the site.

Example


    SiteService ss = session.getServiceRegistry()
    		.getSiteService();		
    
    Site site = ss.getSite("testsite");
    
    Log.d(TAG, "getDescription: " + site.getDescription());
    Log.d(TAG, "getShortName: " + site.getShortName());
    Log.d(TAG, "getTitle: " + site.getTitle());
    Log.d(TAG, "getVisibility: " + site.getVisibility().value());

    

Would result in output such as the following:


    getDescription: This is a very cool site!
    getShortName: testsite
    getTitle: TestSite
    getVisibility: MODERATED