Package org.alfresco.repo.site
Class SiteInfoImpl
- java.lang.Object
-
- org.alfresco.repo.site.SiteInfoImpl
-
- All Implemented Interfaces:
PermissionCheckValue,SiteInfo
public class SiteInfoImpl extends java.lang.Object implements SiteInfo
Site Information Class- Author:
- Roy Wetherall
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Override equals for this ref typejava.util.DategetCreatedDate()Get the site created datejava.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable>getCustomProperties()Get the custom property valuesjava.io.SerializablegetCustomProperty(org.alfresco.service.namespace.QName name)Get the value of a custom propertyjava.lang.StringgetDescription()Get the descriptionbooleangetIsPublic()Indicates whether the site is public.java.util.DategetLastModifiedDate()Get the site last modified dateorg.alfresco.service.cmr.repository.NodeRefgetNodeRef()Get the site node referencejava.lang.StringgetShortName()Get the short namejava.lang.StringgetSitePreset()Get the site presetjava.lang.StringgetTitle()Get the titleSiteVisibilitygetVisibility()Get the sites visibilityinthashCode()voidsetCreatedDate(java.util.Date createdDate)Set the site created datevoidsetDescription(java.lang.String description)Set the descriptionvoidsetIsPublic(boolean isPublic)Sets whether this site is public or not.voidsetLastModifiedDate(java.util.Date lastModifiedDate)Set the site last modified datevoidsetTitle(java.lang.String title)Set the titlevoidsetVisibility(SiteVisibility visibility)Set the sites visibilityjava.lang.StringtoString()
-
-
-
Method Detail
-
getNodeRef
public org.alfresco.service.cmr.repository.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 java.lang.String getSitePreset()
Description copied from interface:SiteInfoGet the site preset- Specified by:
getSitePresetin interfaceSiteInfo- Returns:
- String site preset
- See Also:
SiteInfo.getSitePreset()
-
getShortName
public java.lang.String getShortName()
Description copied from interface:SiteInfoGet the short name- Specified by:
getShortNamein interfaceSiteInfo- Returns:
- String short name
- See Also:
SiteInfo.getShortName()
-
getTitle
public java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.util.Map<org.alfresco.service.namespace.QName,java.io.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 java.io.Serializable getCustomProperty(org.alfresco.service.namespace.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 java.util.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(java.util.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 java.util.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(java.util.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(java.lang.Object obj)
Override equals for this ref type- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-