org.outerj.daisy.repository.commonimpl.schema
Class PartTypeImpl

java.lang.Object
  extended by org.outerj.daisy.repository.commonimpl.schema.PartTypeImpl
All Implemented Interfaces:
org.outerj.daisy.repository.schema.PartType

public class PartTypeImpl
extends java.lang.Object
implements org.outerj.daisy.repository.schema.PartType


Nested Class Summary
 class PartTypeImpl.IntimateAccess
           
 
Constructor Summary
PartTypeImpl(java.lang.String name, java.lang.String mimeTypes, SchemaStrategy schemaStrategy, AuthenticatedUser user)
           
 
Method Summary
 void clearDescriptions()
           
 void clearLabels()
           
 java.lang.String getDescription(java.util.Locale locale)
           
 java.lang.String getDescriptionExact(java.util.Locale locale)
           
 java.util.Locale[] getDescriptionLocales()
           
 long getId()
           
 PartTypeImpl.IntimateAccess getIntimateAccess(SchemaStrategy schemaStrategy)
           
 java.lang.String getLabel(java.util.Locale locale)
           
 java.lang.String getLabelExact(java.util.Locale locale)
           
 java.util.Locale[] getLabelLocales()
           
 java.util.Date getLastModified()
           
 long getLastModifier()
           
 java.lang.String getLinkExtractor()
           
 java.lang.String getMimeTypes()
           
 java.lang.String getName()
           
 long getUpdateCount()
           
 org.outerx.daisy.x10.PartTypeDocument getXml()
           
 boolean isDaisyHtml()
           
 boolean isDeprecated()
           
 void makeReadOnly()
          Disables all operations that can change the state of this PartType.
 boolean mimeTypeAllowed(java.lang.String mimeType)
           
 void save()
           
 void setAllFromXml(org.outerx.daisy.x10.PartTypeDocument.PartType partTypeXml)
           
 void setDaisyHtml(boolean daisyHtml)
           
 void setDeprecated(boolean deprecated)
           
 void setDescription(java.util.Locale locale, java.lang.String description)
           
 void setLabel(java.util.Locale locale, java.lang.String label)
           
 void setLinkExtractor(java.lang.String name)
           
 void setMimeTypes(java.lang.String mimeTypes)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartTypeImpl

public PartTypeImpl(java.lang.String name,
                    java.lang.String mimeTypes,
                    SchemaStrategy schemaStrategy,
                    AuthenticatedUser user)
Method Detail

getIntimateAccess

public PartTypeImpl.IntimateAccess getIntimateAccess(SchemaStrategy schemaStrategy)

setAllFromXml

public void setAllFromXml(org.outerx.daisy.x10.PartTypeDocument.PartType partTypeXml)
Specified by:
setAllFromXml in interface org.outerj.daisy.repository.schema.PartType

getId

public long getId()
Specified by:
getId in interface org.outerj.daisy.repository.schema.PartType

getName

public java.lang.String getName()
Specified by:
getName in interface org.outerj.daisy.repository.schema.PartType

setName

public void setName(java.lang.String name)
Specified by:
setName in interface org.outerj.daisy.repository.schema.PartType

getLabel

public java.lang.String getLabel(java.util.Locale locale)
Specified by:
getLabel in interface org.outerj.daisy.repository.schema.PartType

getLabelExact

public java.lang.String getLabelExact(java.util.Locale locale)
Specified by:
getLabelExact in interface org.outerj.daisy.repository.schema.PartType

setLabel

public void setLabel(java.util.Locale locale,
                     java.lang.String label)
Specified by:
setLabel in interface org.outerj.daisy.repository.schema.PartType

clearLabels

public void clearLabels()
Specified by:
clearLabels in interface org.outerj.daisy.repository.schema.PartType

getLabelLocales

public java.util.Locale[] getLabelLocales()
Specified by:
getLabelLocales in interface org.outerj.daisy.repository.schema.PartType

getDescription

public java.lang.String getDescription(java.util.Locale locale)
Specified by:
getDescription in interface org.outerj.daisy.repository.schema.PartType

getDescriptionExact

public java.lang.String getDescriptionExact(java.util.Locale locale)
Specified by:
getDescriptionExact in interface org.outerj.daisy.repository.schema.PartType

setDescription

public void setDescription(java.util.Locale locale,
                           java.lang.String description)
Specified by:
setDescription in interface org.outerj.daisy.repository.schema.PartType

clearDescriptions

public void clearDescriptions()
Specified by:
clearDescriptions in interface org.outerj.daisy.repository.schema.PartType

getDescriptionLocales

public java.util.Locale[] getDescriptionLocales()
Specified by:
getDescriptionLocales in interface org.outerj.daisy.repository.schema.PartType

getMimeTypes

public java.lang.String getMimeTypes()
Specified by:
getMimeTypes in interface org.outerj.daisy.repository.schema.PartType

setMimeTypes

public void setMimeTypes(java.lang.String mimeTypes)
Specified by:
setMimeTypes in interface org.outerj.daisy.repository.schema.PartType

mimeTypeAllowed

public boolean mimeTypeAllowed(java.lang.String mimeType)
Specified by:
mimeTypeAllowed in interface org.outerj.daisy.repository.schema.PartType

isDaisyHtml

public boolean isDaisyHtml()
Specified by:
isDaisyHtml in interface org.outerj.daisy.repository.schema.PartType

setDaisyHtml

public void setDaisyHtml(boolean daisyHtml)
Specified by:
setDaisyHtml in interface org.outerj.daisy.repository.schema.PartType

setLinkExtractor

public void setLinkExtractor(java.lang.String name)
Specified by:
setLinkExtractor in interface org.outerj.daisy.repository.schema.PartType

getLinkExtractor

public java.lang.String getLinkExtractor()
Specified by:
getLinkExtractor in interface org.outerj.daisy.repository.schema.PartType

getLastModified

public java.util.Date getLastModified()
Specified by:
getLastModified in interface org.outerj.daisy.repository.schema.PartType

getLastModifier

public long getLastModifier()
Specified by:
getLastModifier in interface org.outerj.daisy.repository.schema.PartType

getXml

public org.outerx.daisy.x10.PartTypeDocument getXml()
Specified by:
getXml in interface org.outerj.daisy.repository.schema.PartType

save

public void save()
          throws org.outerj.daisy.repository.RepositoryException
Specified by:
save in interface org.outerj.daisy.repository.schema.PartType
Throws:
org.outerj.daisy.repository.RepositoryException

setDeprecated

public void setDeprecated(boolean deprecated)
Specified by:
setDeprecated in interface org.outerj.daisy.repository.schema.PartType

isDeprecated

public boolean isDeprecated()
Specified by:
isDeprecated in interface org.outerj.daisy.repository.schema.PartType

getUpdateCount

public long getUpdateCount()
Specified by:
getUpdateCount in interface org.outerj.daisy.repository.schema.PartType

makeReadOnly

public void makeReadOnly()
Disables all operations that can change the state of this PartType.



Copyright © -2012 . All Rights Reserved.