Package org.alfresco.repo.site
Class SiteInfoImpl
- java.lang.Object
-
- org.alfresco.repo.site.SiteInfoImpl
-
- All Implemented Interfaces:
PermissionCheckValue,SiteInfo
public class SiteInfoImpl extends Object implements SiteInfo
Site Information Class- Author:
- Roy Wetherall
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Override equals for this ref typeDategetCreatedDate()Get the site created dateMap<QName,Serializable>getCustomProperties()Get the custom property valuesSerializablegetCustomProperty(QName name)Get the value of a custom propertyStringgetDescription()Get the descriptionbooleangetIsPublic()Indicates whether the site is public.DategetLastModifiedDate()Get the site last modified dateNodeRefgetNodeRef()Get the site node referenceStringgetShortName()Get the short nameStringgetSitePreset()Get the site presetStringgetTitle()Get the titleSiteVisibilitygetVisibility()Get the sites visibilityinthashCode()voidsetCreatedDate(Date createdDate)Set the site created datevoidsetDescription(String description)Set the descriptionvoidsetIsPublic(boolean isPublic)Sets whether this site is public or not.voidsetLastModifiedDate(Date lastModifiedDate)Set the site last modified datevoidsetTitle(String title)Set the titlevoidsetVisibility(SiteVisibility visibility)Set the sites visibilityStringtoString()
-
-
-
Method Detail
-
getNodeRef
public NodeRef getNodeRef()
Description copied from interface:SiteInfoGet the site node reference- Specified by:
getNodeRefin interfacePermissionCheckValue- Specified by:
getNodeRefin interfaceSiteInfo- Returns:
- NodeRef site node reference, null if not set
- See Also:
SiteInfo.getNodeRef()
-
getSitePreset
public String getSitePreset()
Description copied from interface:SiteInfoGet the site preset- Specified by:
getSitePresetin interfaceSiteInfo- Returns:
- String site preset
- See Also:
SiteInfo.getSitePreset()
-
getShortName
public String getShortName()
Description copied from interface:SiteInfoGet the short name- Specified by:
getShortNamein interfaceSiteInfo- Returns:
- String short name
- See Also:
SiteInfo.getShortName()
-
getTitle
public String getTitle()
Description copied from interface:SiteInfoGet the title- Specified by:
getTitlein interfaceSiteInfo- Returns:
- String site title
- See Also:
SiteInfo.getTitle()
-
setTitle
public void setTitle(String title)
Description copied from interface:SiteInfoSet the title- Specified by:
setTitlein interfaceSiteInfo- Parameters:
title- site title- See Also:
SiteInfo.setTitle(java.lang.String)
-
getDescription
public String getDescription()
Description copied from interface:SiteInfoGet the description- Specified by:
getDescriptionin interfaceSiteInfo- Returns:
- String site description
- See Also:
SiteInfo.getDescription()
-
setDescription
public void setDescription(String description)
Description copied from interface:SiteInfoSet the description- Specified by:
setDescriptionin interfaceSiteInfo- Parameters:
description- site description- See Also:
SiteInfo.setDescription(java.lang.String)
-
setIsPublic
public void setIsPublic(boolean isPublic)
Description copied from interface:SiteInfoSets whether this site is public or not. If true the visibility is set to "public", if false the visibility is set to "private"- Specified by:
setIsPublicin interfaceSiteInfo- Parameters:
isPublic- true public, false private- See Also:
SiteInfo.setIsPublic(boolean)
-
getIsPublic
public boolean getIsPublic()
Description copied from interface:SiteInfoIndicates whether the site is public.- Specified by:
getIsPublicin interfaceSiteInfo- Returns:
- boolean true if public, false either private or moderated
- See Also:
SiteInfo.getIsPublic()
-
getVisibility
public SiteVisibility getVisibility()
Description copied from interface:SiteInfoGet the sites visibility- Specified by:
getVisibilityin interfaceSiteInfo- Returns:
- SiteVisibility site visibility
- See Also:
SiteInfo.getVisibility()
-
setVisibility
public void setVisibility(SiteVisibility visibility)
Description copied from interface:SiteInfoSet the sites visibility- Specified by:
setVisibilityin interfaceSiteInfo- Parameters:
visibility- site visibility- See Also:
SiteInfo.setVisibility(org.alfresco.service.cmr.site.SiteVisibility)
-
getCustomProperties
public Map<QName,Serializable> getCustomProperties()
Description copied from interface:SiteInfoGet the custom property values- Specified by:
getCustomPropertiesin interfaceSiteInfo- Returns:
- map of custom property names and values
- See Also:
SiteInfo.getCustomProperties()
-
getCustomProperty
public Serializable getCustomProperty(QName name)
Description copied from interface:SiteInfoGet the value of a custom property- Specified by:
getCustomPropertyin interfaceSiteInfo- Parameters:
name- name of custom property- Returns:
- Serializable value of the property, null if not set or doesn't exist
- See Also:
SiteInfo.getCustomProperty(org.alfresco.service.namespace.QName)
-
getCreatedDate
public Date getCreatedDate()
Description copied from interface:SiteInfoGet the site created date- Specified by:
getCreatedDatein interfaceSiteInfo- Returns:
Datesite created date- See Also:
SiteInfo.getCreatedDate()
-
setCreatedDate
public void setCreatedDate(Date createdDate)
Description copied from interface:SiteInfoSet the site created date- Specified by:
setCreatedDatein interfaceSiteInfo- Parameters:
createdDate- site created date- See Also:
SiteInfo.setCreatedDate(java.util.Date)
-
getLastModifiedDate
public Date getLastModifiedDate()
Description copied from interface:SiteInfoGet the site last modified date- Specified by:
getLastModifiedDatein interfaceSiteInfo- Returns:
Datesite last modified date- See Also:
SiteInfo.getLastModifiedDate()
-
setLastModifiedDate
public void setLastModifiedDate(Date lastModifiedDate)
Description copied from interface:SiteInfoSet the site last modified date- Specified by:
setLastModifiedDatein interfaceSiteInfo- Parameters:
lastModifiedDate- site last modified date- See Also:
SiteInfo.setLastModifiedDate(java.util.Date)
-
equals
public boolean equals(Object obj)
Override equals for this ref type- Overrides:
equalsin classObject- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
-