spcp7.imagegallery.abstractionlayer.face.persistence
Interface ContentFolderModelFace

All Known Implementing Classes:
ContentFolderModelImpl, GalleryFolderModelImplOLD

public interface ContentFolderModelFace

An implementation of this interface handles a content folder. All properties of a content folder must also be persisted.

Author:
Phillip Merensky

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.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 setProperties(java.util.Map<java.lang.String,PropertyModelFace> properties)
           
 

Method Detail

getId

java.lang.Long getId()
The id of this content provider

Returns:
Long

setId

void setId(java.lang.Long id)
Parameters:
id - the id

getContentProviderTypeID

java.lang.String getContentProviderTypeID()
The typeId of the content provider of this content folder.

Returns:
String the content provider type id

setContentProviderTypeID

void setContentProviderTypeID(java.lang.String contentProviderTypeId)
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.

Parameters:
contentProviderTypeId - the typeID of the new content provider

getName

java.lang.String getName()
Returns:
String the name of this content folder

setName

void setName(java.lang.String name)
Parameters:
name - the name to set

getProperties

java.util.Map<java.lang.String,PropertyModelFace> getProperties()
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.

Returns:
Map a map with all properties. The keys of the map are PropertyModelFace.getSchluessel().

setProperties

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

getActivated

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.
Please remember that this method returns a Boolean value and not the primitive type boolean and that conversions are needed eventually.

Returns:
True if this folder is activated, false otherwise.

setActivated

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


Copyright © 2008. All Rights Reserved.