Class SiteImpl
- java.lang.Object
-
- org.apache.sling.cms.core.internal.models.SiteImpl
-
- All Implemented Interfaces:
Site
@Model(adaptables=org.apache.sling.api.resource.Resource.class, adapters=org.apache.sling.cms.Site.class) public class SiteImpl extends Object implements Site
A model for representing a site.
-
-
Constructor Summary
Constructors Constructor Description SiteImpl(org.apache.sling.api.resource.Resource resource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDescription()
Locale
getLocale()
String
getLocaleString()
String
getPath()
org.apache.sling.api.resource.Resource
getResource()
static Site
getSite(org.apache.sling.api.resource.Resource resource)
String
getTitle()
String
getUrl()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
PN_CONFIG
public static final String PN_CONFIG
- See Also:
- Constant Field Values
-
PN_URL
public static final String PN_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSite
public static Site getSite(org.apache.sling.api.resource.Resource resource)
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceSite
-
getLocaleString
public String getLocaleString()
- Specified by:
getLocaleString
in interfaceSite
-
getResource
public org.apache.sling.api.resource.Resource getResource()
- Specified by:
getResource
in interfaceSite
-
-