org.alfresco.repo.site
Class SiteInfoImpl

java.lang.Object
  extended by org.alfresco.repo.site.SiteInfoImpl
All Implemented Interfaces:
PermissionCheckValue, SiteInfo

public class SiteInfoImpl
extends java.lang.Object
implements SiteInfo

Site Information Class


Method Summary
 boolean equals(java.lang.Object obj)
          Override equals for this ref type
 java.util.Map getCustomProperties()
          Get the custom property values
 java.io.Serializable getCustomProperty(org.alfresco.service.namespace.QName name)
          Get the value of a custom property
 java.lang.String getDescription()
          Get the description
 boolean getIsPublic()
          Indicates whether the site is public.
 org.alfresco.service.cmr.repository.NodeRef getNodeRef()
          Get the site node reference
 java.lang.String getShortName()
          Get the short name
 java.lang.String getSitePreset()
          Get the site preset
 java.lang.String getTitle()
          Get the title
 SiteVisibility getVisibility()
          Get the sites visibility
 int hashCode()
           
 void setDescription(java.lang.String description)
          Set the description
 void setIsPublic(boolean isPublic)
          Sets whether this site is public or not.
 void setTitle(java.lang.String title)
          Set the title
 void setVisibility(SiteVisibility visibility)
          Set the sites visibility
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNodeRef

public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Description copied from interface: SiteInfo
Get the site node reference

Specified by:
getNodeRef in interface PermissionCheckValue
Specified by:
getNodeRef in interface SiteInfo
Returns:
NodeRef site node reference, null if not set
See Also:
org.alfresco.repo.site.SiteInfo#getNodeRef()

getSitePreset

public java.lang.String getSitePreset()
Description copied from interface: SiteInfo
Get the site preset

Specified by:
getSitePreset in interface SiteInfo
Returns:
String site preset
See Also:
org.alfresco.repo.site.SiteInfo#getSitePreset()

getShortName

public java.lang.String getShortName()
Description copied from interface: SiteInfo
Get the short name

Specified by:
getShortName in interface SiteInfo
Returns:
String short name
See Also:
org.alfresco.repo.site.SiteInfo#getShortName()

getTitle

public java.lang.String getTitle()
Description copied from interface: SiteInfo
Get the title

Specified by:
getTitle in interface SiteInfo
Returns:
String site title
See Also:
org.alfresco.repo.site.SiteInfo#getTitle()

setTitle

public void setTitle(java.lang.String title)
Description copied from interface: SiteInfo
Set the title

Specified by:
setTitle in interface SiteInfo
Parameters:
title - site title
See Also:
org.alfresco.repo.site.SiteInfo#setTitle(java.lang.String)

getDescription

public java.lang.String getDescription()
Description copied from interface: SiteInfo
Get the description

Specified by:
getDescription in interface SiteInfo
Returns:
String site description
See Also:
org.alfresco.repo.site.SiteInfo#getDescription()

setDescription

public void setDescription(java.lang.String description)
Description copied from interface: SiteInfo
Set the description

Specified by:
setDescription in interface SiteInfo
Parameters:
description - site description
See Also:
org.alfresco.repo.site.SiteInfo#setDescription(java.lang.String)

setIsPublic

public void setIsPublic(boolean isPublic)
Description copied from interface: SiteInfo
Sets 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:
setIsPublic in interface SiteInfo
Parameters:
isPublic - true public, false private
See Also:
org.alfresco.repo.site.SiteInfo#setIsPublic(boolean)

getIsPublic

public boolean getIsPublic()
Description copied from interface: SiteInfo
Indicates whether the site is public.

Specified by:
getIsPublic in interface SiteInfo
Returns:
boolean true if public, false either private or moderated
See Also:
org.alfresco.repo.site.SiteInfo#getIsPublic()

getVisibility

public SiteVisibility getVisibility()
Description copied from interface: SiteInfo
Get the sites visibility

Specified by:
getVisibility in interface SiteInfo
Returns:
SiteVisibility site visibility
See Also:
SiteInfo.getVisibility()

setVisibility

public void setVisibility(SiteVisibility visibility)
Description copied from interface: SiteInfo
Set the sites visibility

Specified by:
setVisibility in interface SiteInfo
Parameters:
visibility - site visibility
See Also:
SiteInfo.setVisibility(org.alfresco.service.cmr.site.SiteVisibility)

getCustomProperties

public java.util.Map getCustomProperties()
Description copied from interface: SiteInfo
Get the custom property values

Specified by:
getCustomProperties in interface SiteInfo
Returns:
Map map of custom property names and values
See Also:
org.alfresco.repo.site.SiteInfo#getCustomProperties()

getCustomProperty

public java.io.Serializable getCustomProperty(org.alfresco.service.namespace.QName name)
Description copied from interface: SiteInfo
Get the value of a custom property

Specified by:
getCustomProperty in interface SiteInfo
Parameters:
name - name of custom property
Returns:
Serializable value of the property, null if not set or doesn't exist
See Also:
org.alfresco.repo.site.SiteInfo#getCustomProperty(org.alfresco.service.namespace.QName)

equals

public boolean equals(java.lang.Object obj)
Override equals for this ref type

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.