nl.gx.webmanager.cms.mediarepository
Interface MediaContentType


public interface MediaContentType

This interface represents a media content type and contains setters and getters for its properties.

Author:
ivol

Method Summary
 int getId()
          Returns the internal id of the content type
 java.lang.String getValue()
          Returns the value of the content type, which is a external string identifier
 boolean isActive()
          Returns if this content type is active.
 boolean isBundle()
          Returns if this content type is registered from a WCB
 boolean isElementHolder()
          Returns if this content type specifies that the media item may contain elements
 void setId(int id)
          Sets the internal id of the content type
 void setIsActive(boolean isActive)
          Specifies if this content type is active
 void setIsBundle(boolean isBundle)
          Specifies if this content type is registered from a WCB
 void setIsElementHolder(boolean hasElementHolder)
          Sets if this content type specifies that the media item may contain elements
 void setValue(java.lang.String value)
          Sets the value of the content type, which is a external string identifier
 

Method Detail

getId

int getId()
Returns the internal id of the content type

Returns:
the internal id of the content type

setId

void setId(int id)
Sets the internal id of the content type

Parameters:
id - the internal id of the content type

getValue

java.lang.String getValue()
Returns the value of the content type, which is a external string identifier

Returns:
the value of the content type

setValue

void setValue(java.lang.String value)
Sets the value of the content type, which is a external string identifier

Parameters:
value - the value of the content type

isElementHolder

boolean isElementHolder()
Returns if this content type specifies that the media item may contain elements

Returns:
true if media item of this type may contain elements, false otherwise

setIsElementHolder

void setIsElementHolder(boolean hasElementHolder)
Sets if this content type specifies that the media item may contain elements

Parameters:
hasElementHolder - true to specify that the media item of this type may contain elements, false otherwise

isBundle

boolean isBundle()
Returns if this content type is registered from a WCB

Returns:
true if this content type is registered from a WCB, false otherwise

setIsBundle

void setIsBundle(boolean isBundle)
Specifies if this content type is registered from a WCB

Parameters:
isBundle - boolean indicating if this content type is registered from a WCB or not

isActive

boolean isActive()
Returns if this content type is active. It is non-active when the conten type is registered from a WCB and that WCB is inactive.

Returns:
true if this content type is active, false otherwise

setIsActive

void setIsActive(boolean isActive)
Specifies if this content type is active

Parameters:
isBundle - boolean indicating if this content type is active or not


Copyright © 2007-2011 GX Software BV. All Rights Reserved.