public class SiteImpl extends Object implements Site
Constructor and Description |
---|
SiteImpl()
Default constructor.
|
SiteImpl(Site site,
boolean isPendingMember,
boolean isMember,
boolean isFavorite)
Constructor of SiteImpl.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDescription()
Returns the description of the site.
|
String |
getGUID()
Returns a globally unique identifier for the site.
|
String |
getIdentifier()
Returns the unique identifier of the site.
|
String |
getShortName()
Returns the short name of the site.
|
String |
getTitle()
Returns the unique identifier of the site.
|
SiteVisibility |
getVisibility()
Returns the visibility of the site i.e.
|
boolean |
isFavorite() |
boolean |
isMember() |
boolean |
isPendingMember() |
static SiteImpl |
parseCompatJson(Map<String,Object> json) |
static SiteImpl |
parseJson(Map<String,Object> json)
Parse Json Response from Alfresco REST API to create a Site.
|
static SiteImpl |
parsePublicAPIJson(Map<String,Object> json)
Parse Json Response from Alfresco Public API to create a Site.
|
public SiteImpl()
public SiteImpl(Site site, boolean isPendingMember, boolean isMember, boolean isFavorite)
site
- : site to update.isPendingMember
- : value of pending member.isMember
- : if user is member ofisFavorite
- : if user has favorite the sitepublic static SiteImpl parseJson(Map<String,Object> json)
json
- : json response that contains data from the repositorypublic static SiteImpl parsePublicAPIJson(Map<String,Object> json)
json
- : json response that contains data from the repositorypublic String getDescription()
getDescription
in interface Site
public String getShortName()
getShortName
in interface Site
public SiteVisibility getVisibility()
getVisibility
in interface Site
public String getTitle()
public String getIdentifier()
getIdentifier
in interface Site
public String getGUID()
public boolean isMember()
public boolean isPendingMember()
isPendingMember
in interface Site
public boolean isFavorite()
isFavorite
in interface Site
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.