spcp7.imagegallery.abstractionlayer.persistence.model.impl
Class ContentFolderModelImpl

java.lang.Object
  extended by spcp7.imagegallery.abstractionlayer.persistence.model.impl.ContentFolderModelImpl
All Implemented Interfaces:
java.io.Serializable, ContentFolderModelFace
Direct Known Subclasses:
GalleryFolderModelImplOLD

public class ContentFolderModelImpl
extends java.lang.Object
implements ContentFolderModelFace, java.io.Serializable

Author:
Phillip Merensky
See Also:
Serialized Form

Constructor Summary
ContentFolderModelImpl()
           
 
Method Summary
 java.lang.Boolean getActivated()
          This boolean indicates if the content folder is activated and thus will or will not be shown in the list of content folders.
 java.lang.String getContentProviderTypeID()
          The typeId of the content provider of this content folder.
 java.lang.Long getId()
          The id of this content provider
 java.lang.String getName()
           
 java.lang.String getPreviewImageUrl()
           
 java.util.Map<java.lang.String,PropertyModelFace> getProperties()
          A key value map of all properties of this content providers.
 void setActivated(java.lang.Boolean activated)
           
 void setContentProviderTypeID(java.lang.String contentProviderTypeId)
          This method set the content provider of this content folder to a new value.
 void setId(java.lang.Long id)
           
 void setName(java.lang.String name)
           
 void setPreviewImageUrl(java.lang.String previewImageUrl)
           
 void setProperties(java.util.Map<java.lang.String,PropertyModelFace> properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentFolderModelImpl

public ContentFolderModelImpl()
Method Detail

getContentProviderTypeID

public java.lang.String getContentProviderTypeID()
Description copied from interface: ContentFolderModelFace
The typeId of the content provider of this content folder.

Specified by:
getContentProviderTypeID in interface ContentFolderModelFace
Returns:
String the content provider type id

getId

public java.lang.Long getId()
Description copied from interface: ContentFolderModelFace
The id of this content provider

Specified by:
getId in interface ContentFolderModelFace
Returns:
Long

getName

public java.lang.String getName()
Specified by:
getName in interface ContentFolderModelFace
Returns:
String the name of this content folder

setContentProviderTypeID

public void setContentProviderTypeID(java.lang.String contentProviderTypeId)
Description copied from interface: ContentFolderModelFace
This method set the content provider of this content folder to a new value. It must also register the default properties of the new content provider and deregister the properties of the old one.

Specified by:
setContentProviderTypeID in interface ContentFolderModelFace
Parameters:
contentProviderTypeId - the typeID of the new content provider

setId

public void setId(java.lang.Long id)
Specified by:
setId in interface ContentFolderModelFace
Parameters:
id - the id

setName

public void setName(java.lang.String name)
Specified by:
setName in interface ContentFolderModelFace
Parameters:
name - the name to set

getPreviewImageUrl

public java.lang.String getPreviewImageUrl()

setPreviewImageUrl

public void setPreviewImageUrl(java.lang.String previewImageUrl)

setProperties

public void setProperties(java.util.Map<java.lang.String,PropertyModelFace> properties)
Specified by:
setProperties in interface ContentFolderModelFace
Parameters:
properties - the new properties of this content folder
See Also:
ContentFolderModelFace.getProperties()

getProperties

public java.util.Map<java.lang.String,PropertyModelFace> getProperties()
Description copied from interface: ContentFolderModelFace
A key value map of all properties of this content providers. In this map also defaultProperties of the implementation of the ContentProviderRegistryFace will be saved.

Specified by:
getProperties in interface ContentFolderModelFace
Returns:
Map a map with all properties. The keys of the map are PropertyModelFace.getSchluessel().

getActivated

public java.lang.Boolean getActivated()
Description copied from interface: ContentFolderModelFace
This boolean indicates if the content folder is activated and thus will or will not be shown in the list of content folders.
Please remember that this method returns a Boolean value and not the primitive type boolean and that conversions are needed eventually.

Specified by:
getActivated in interface ContentFolderModelFace
Returns:
True if this folder is activated, false otherwise.

setActivated

public void setActivated(java.lang.Boolean activated)
Specified by:
setActivated in interface ContentFolderModelFace
Parameters:
activated - True if this folder should be activated, false otherwise.
See Also:
ContentFolderModelFace.getActivated()


Copyright © 2008. All Rights Reserved.