org.opencms.ade.galleries.shared
Class CmsResourceTypeBean

java.lang.Object
  extended by org.opencms.ade.galleries.shared.CmsResourceTypeBean
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, I_CmsHasTitle, I_CmsHasType

public class CmsResourceTypeBean
extends java.lang.Object
implements I_CmsHasTitle, I_CmsHasType, com.google.gwt.user.client.rpc.IsSerializable

Bean representing resource type information.

Since:
8.0.0

Constructor Summary
CmsResourceTypeBean()
           
 
Method Summary
 java.lang.String getDescription()
          Returns the description.
 java.util.ArrayList<java.lang.String> getGalleryTypeNames()
          Returns the list with the gallery types names associated with this resource type.
 java.lang.String getIconResource()
          Returns the resource type icon.
 java.lang.String getPreviewProviderName()
          Returns the preview provider name.
 java.lang.String getTitle()
          Returns the title.
 java.lang.String getType()
          Returns the resource type name.
 int getTypeId()
          Returns the resource type id.
 boolean isCreatableType()
          Returns if the current user may create a new resource of this type.
 void setCreatableType(boolean creatableType)
          Sets flag to indicate if the current user may create a new resource of this type.
 void setDescription(java.lang.String description)
          Sets the description.
 void setGalleryTypeNames(java.util.ArrayList<java.lang.String> galleryNames)
          Sets the list with the gallery types names associated with this resource type.
 void setPreviewProviderName(java.lang.String previewProviderName)
          Sets the preview provider name.
 void setTitle(java.lang.String title)
          Sets the title.
 void setType(java.lang.String type)
          Sets the resource type name.
 void setTypeId(int typeId)
          Sets the resource type id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsResourceTypeBean

public CmsResourceTypeBean()
Method Detail

getDescription

public java.lang.String getDescription()
Returns the description.

Returns:
the description

getGalleryTypeNames

public java.util.ArrayList<java.lang.String> getGalleryTypeNames()
Returns the list with the gallery types names associated with this resource type.

Returns:
the gallery type names

getIconResource

public java.lang.String getIconResource()
Returns the resource type icon.

Returns:
the iconResource the icon for the resource type

getPreviewProviderName

public java.lang.String getPreviewProviderName()
Returns the preview provider name.

Returns:
the preview provider name

getTitle

public java.lang.String getTitle()
Returns the title.

Specified by:
getTitle in interface I_CmsHasTitle
Returns:
the title

getType

public java.lang.String getType()
Returns the resource type name.

Specified by:
getType in interface I_CmsHasType
Returns:
the resource type name

getTypeId

public int getTypeId()
Returns the resource type id.

Returns:
the resource type id

isCreatableType

public boolean isCreatableType()
Returns if the current user may create a new resource of this type.

Returns:
true if the current user may create a new resource of this type

setCreatableType

public void setCreatableType(boolean creatableType)
Sets flag to indicate if the current user may create a new resource of this type.

Parameters:
creatableType - true if the current user may create a new resource of this type

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Parameters:
description - the description to set

setGalleryTypeNames

public void setGalleryTypeNames(java.util.ArrayList<java.lang.String> galleryNames)
Sets the list with the gallery types names associated with this resource type.

Parameters:
galleryNames - the list with gallery type names to set

setPreviewProviderName

public void setPreviewProviderName(java.lang.String previewProviderName)
Sets the preview provider name.

Parameters:
previewProviderName - the preview provider name to set

setTitle

public void setTitle(java.lang.String title)
Sets the title.

Parameters:
title - the title to set

setType

public void setType(java.lang.String type)
Sets the resource type name.

Parameters:
type - the resource type name to set

setTypeId

public void setTypeId(int typeId)
Sets the resource type id.

Parameters:
typeId - the resource type id to set