|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PartType
Describes a type of part in the repository.
Instances are retrieved from RepositorySchema.
The equals method for PartType is supported, two part types are equal if all their defining data is equal, with exception of the ID.
| Method Summary | |
|---|---|
long |
getId()
|
Date |
getLastModified()
When was this PartType last changed (persistently). |
long |
getLastModifier()
Who (which user) last changed this PartType (persistently). |
String |
getLinkExtractor()
Returns the name of the link extractor to use for parts of this type, can be null. |
String |
getMimeTypes()
Returns a string describing limitations on the allowed mime-types. |
String |
getName()
|
long |
getUpdateCount()
|
org.outerx.daisy.x10.PartTypeDocument |
getXml()
|
boolean |
isDaisyHtml()
Indicates if the content of the part is Daisy HTML (well-formed XML using HTML elements). |
boolean |
isDeprecated()
|
boolean |
mimeTypeAllowed(String mimeType)
|
void |
save()
|
void |
setAllFromXml(org.outerx.daisy.x10.PartTypeDocument.PartType partTypeXml)
Changes the state of this object to match the given XML. |
void |
setDaisyHtml(boolean daisyHtml)
Sets the Daisy-HTML flag. |
void |
setDeprecated(boolean deprecated)
|
void |
setLinkExtractor(String name)
|
void |
setMimeTypes(String mimeTypes)
Specify the type of data that is allowed in parts of this type based on the mime-type. |
void |
setName(String name)
|
| Methods inherited from interface org.outerj.daisy.repository.schema.DescriptionEnabled |
|---|
clearDescriptions, getDescription, getDescriptionExact, getDescriptionLocales, setDescription |
| Methods inherited from interface org.outerj.daisy.repository.schema.LabelEnabled |
|---|
clearLabels, getLabel, getLabelExact, getLabelLocales, setLabel |
| Method Detail |
|---|
long getId()
String getName()
void setName(String name)
String getMimeTypes()
void setMimeTypes(String mimeTypes)
mimeTypes - A comma-separated list of mime-types. If empty, all mime-types are allowed.boolean mimeTypeAllowed(String mimeType)
boolean isDaisyHtml()
void setDaisyHtml(boolean daisyHtml)
Note: when the argument daisyHTML is true, the link extractor will be forced to "daisy-html", for reasons of back-compatibility (in the past, link extractors were not explicitely configurable, and link extraction always happened for daisy-html parts). It is possible to override this again by calling setLinkExtractor after setDaisyHtml.
void setLinkExtractor(String name)
name - allowed to be nullString getLinkExtractor()
boolean isDeprecated()
void setDeprecated(boolean deprecated)
Date getLastModified()
long getLastModifier()
org.outerx.daisy.x10.PartTypeDocument getXml()
void setAllFromXml(org.outerx.daisy.x10.PartTypeDocument.PartType partTypeXml)
void save()
throws RepositoryException
RepositoryExceptionlong getUpdateCount()
|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||