org.outerj.daisy.repository.commonimpl.schema
Class DocumentTypeImpl
java.lang.Object
org.outerj.daisy.repository.commonimpl.schema.DocumentTypeImpl
- All Implemented Interfaces:
- org.outerj.daisy.repository.schema.DocumentType
- public class DocumentTypeImpl
- extends java.lang.Object
- implements org.outerj.daisy.repository.schema.DocumentType
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentTypeImpl
public DocumentTypeImpl(java.lang.String name,
SchemaStrategy schemaStrategy,
CommonRepositorySchema repositorySchemaCache,
AuthenticatedUser user)
getIntimateAccess
public DocumentTypeImpl.IntimateAccess getIntimateAccess(SchemaStrategy schemaStrategy)
getId
public long getId()
- Specified by:
getId
in interface org.outerj.daisy.repository.schema.DocumentType
getPartTypeUses
public org.outerj.daisy.repository.schema.PartTypeUse[] getPartTypeUses()
- Specified by:
getPartTypeUses
in interface org.outerj.daisy.repository.schema.DocumentType
addPartType
public void addPartType(org.outerj.daisy.repository.schema.PartType partType,
boolean required)
- Specified by:
addPartType
in interface org.outerj.daisy.repository.schema.DocumentType
clearPartTypeUses
public void clearPartTypeUses()
- Specified by:
clearPartTypeUses
in interface org.outerj.daisy.repository.schema.DocumentType
hasPartType
public boolean hasPartType(long id)
- Specified by:
hasPartType
in interface org.outerj.daisy.repository.schema.DocumentType
getPartTypeUse
public org.outerj.daisy.repository.schema.PartTypeUse getPartTypeUse(long id)
- Specified by:
getPartTypeUse
in interface org.outerj.daisy.repository.schema.DocumentType
getFieldTypeUses
public org.outerj.daisy.repository.schema.FieldTypeUse[] getFieldTypeUses()
- Specified by:
getFieldTypeUses
in interface org.outerj.daisy.repository.schema.DocumentType
hasFieldType
public boolean hasFieldType(long id)
- Specified by:
hasFieldType
in interface org.outerj.daisy.repository.schema.DocumentType
getFieldTypeUse
public org.outerj.daisy.repository.schema.FieldTypeUse getFieldTypeUse(long id)
- Specified by:
getFieldTypeUse
in interface org.outerj.daisy.repository.schema.DocumentType
addFieldType
public void addFieldType(org.outerj.daisy.repository.schema.FieldType type,
boolean required)
- Specified by:
addFieldType
in interface org.outerj.daisy.repository.schema.DocumentType
clearFieldTypeUses
public void clearFieldTypeUses()
- Specified by:
clearFieldTypeUses
in interface org.outerj.daisy.repository.schema.DocumentType
getName
public java.lang.String getName()
- Specified by:
getName
in interface org.outerj.daisy.repository.schema.DocumentType
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface org.outerj.daisy.repository.schema.DocumentType
getDescription
public java.lang.String getDescription(java.util.Locale locale)
- Specified by:
getDescription
in interface org.outerj.daisy.repository.schema.DocumentType
getDescriptionExact
public java.lang.String getDescriptionExact(java.util.Locale locale)
- Specified by:
getDescriptionExact
in interface org.outerj.daisy.repository.schema.DocumentType
setDescription
public void setDescription(java.util.Locale locale,
java.lang.String description)
- Specified by:
setDescription
in interface org.outerj.daisy.repository.schema.DocumentType
setLabel
public void setLabel(java.util.Locale locale,
java.lang.String label)
- Specified by:
setLabel
in interface org.outerj.daisy.repository.schema.DocumentType
getLabel
public java.lang.String getLabel(java.util.Locale locale)
- Specified by:
getLabel
in interface org.outerj.daisy.repository.schema.DocumentType
getLabelExact
public java.lang.String getLabelExact(java.util.Locale locale)
- Specified by:
getLabelExact
in interface org.outerj.daisy.repository.schema.DocumentType
getExtendedXml
public org.outerx.daisy.x10.DocumentTypeDocument getExtendedXml()
- Specified by:
getExtendedXml
in interface org.outerj.daisy.repository.schema.DocumentType
getXml
public org.outerx.daisy.x10.DocumentTypeDocument getXml()
- Specified by:
getXml
in interface org.outerj.daisy.repository.schema.DocumentType
save
public void save()
throws org.outerj.daisy.repository.RepositoryException
- Specified by:
save
in interface org.outerj.daisy.repository.schema.DocumentType
- Throws:
org.outerj.daisy.repository.RepositoryException
getLastModifier
public long getLastModifier()
- Specified by:
getLastModifier
in interface org.outerj.daisy.repository.schema.DocumentType
getLastModified
public java.util.Date getLastModified()
- Specified by:
getLastModified
in interface org.outerj.daisy.repository.schema.DocumentType
setDeprecated
public void setDeprecated(boolean deprecated)
- Specified by:
setDeprecated
in interface org.outerj.daisy.repository.schema.DocumentType
isDeprecated
public boolean isDeprecated()
- Specified by:
isDeprecated
in interface org.outerj.daisy.repository.schema.DocumentType
getUpdateCount
public long getUpdateCount()
- Specified by:
getUpdateCount
in interface org.outerj.daisy.repository.schema.DocumentType
makeReadOnly
public void makeReadOnly()
- Disables all operations that can change the state of this DocumentType. Note
that this doesn't apply to the FieldTypes and PartTypes contained
by this DocumentType.
setAllFromXml
public void setAllFromXml(org.outerx.daisy.x10.DocumentTypeDocument.DocumentType documentTypeXml)
- Specified by:
setAllFromXml
in interface org.outerj.daisy.repository.schema.DocumentType
Copyright © -2005 . All Rights Reserved.