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

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

public class FieldTypeImpl
extends java.lang.Object
implements org.outerj.daisy.repository.schema.FieldType


Nested Class Summary
 class FieldTypeImpl.IntimateAccess
           
 
Field Summary
protected static java.lang.String READ_ONLY_MESSAGE
           
 
Constructor Summary
FieldTypeImpl(java.lang.String name, org.outerj.daisy.repository.ValueType fieldType, boolean multiValue, SchemaStrategy schemaStrategy, CommonRepository repository, AuthenticatedUser user)
           
 
Method Summary
 void clearDescriptions()
           
 void clearLabels()
           
 void clearSelectionList()
           
 org.outerj.daisy.repository.schema.LinkQuerySelectionList createLinkQuerySelectionList(java.lang.String whereClause, boolean filterVariants)
           
 org.outerj.daisy.repository.schema.QuerySelectionList createQuerySelectionList(java.lang.String query, boolean filterVariants, org.outerj.daisy.repository.query.SortOrder sortOrder)
           
 org.outerj.daisy.repository.schema.StaticSelectionList createStaticSelectionList()
           
 boolean getAllowFreeEntry()
           
 java.lang.String getDescription(java.util.Locale locale)
           
 java.lang.String getDescriptionExact(java.util.Locale locale)
           
 java.util.Locale[] getDescriptionLocales()
           
 long getId()
           
 FieldTypeImpl.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 getName()
           
 org.outerj.daisy.repository.schema.SelectionList getSelectionList()
           
 int getSize()
           
 long getUpdateCount()
           
 org.outerj.daisy.repository.ValueType getValueType()
           
 org.outerx.daisy.x10.FieldTypeDocument getXml()
           
 boolean isAclAllowed()
           
 boolean isDeprecated()
           
 boolean isMultiValue()
           
 boolean isReadOnly()
           
 void makeReadOnly()
          Disables all operations that can modify the state of this object.
 void save()
           
 void setAclAllowed(boolean aclAllowed)
           
 void setAllFromXml(org.outerx.daisy.x10.FieldTypeDocument.FieldType fieldTypeXml)
           
 void setAllowFreeEntry(boolean allowFreeEntry)
           
 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 setName(java.lang.String name)
           
 void setSize(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READ_ONLY_MESSAGE

protected static final java.lang.String READ_ONLY_MESSAGE
See Also:
Constant Field Values
Constructor Detail

FieldTypeImpl

public FieldTypeImpl(java.lang.String name,
                     org.outerj.daisy.repository.ValueType fieldType,
                     boolean multiValue,
                     SchemaStrategy schemaStrategy,
                     CommonRepository repository,
                     AuthenticatedUser user)
Method Detail

getIntimateAccess

public FieldTypeImpl.IntimateAccess getIntimateAccess(SchemaStrategy schemaStrategy)

getId

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

getValueType

public org.outerj.daisy.repository.ValueType getValueType()
Specified by:
getValueType in interface org.outerj.daisy.repository.schema.FieldType

getName

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

setName

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

getDescription

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

getDescriptionExact

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

setDescription

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

clearDescriptions

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

getDescriptionLocales

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

getLabel

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

getLabelExact

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

setLabel

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

clearLabels

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

getLabelLocales

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

getLastModified

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

getLastModifier

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

isAclAllowed

public boolean isAclAllowed()
Specified by:
isAclAllowed in interface org.outerj.daisy.repository.schema.FieldType

setAclAllowed

public void setAclAllowed(boolean aclAllowed)
Specified by:
setAclAllowed in interface org.outerj.daisy.repository.schema.FieldType

isMultiValue

public boolean isMultiValue()
Specified by:
isMultiValue in interface org.outerj.daisy.repository.schema.FieldType

getAllowFreeEntry

public boolean getAllowFreeEntry()
Specified by:
getAllowFreeEntry in interface org.outerj.daisy.repository.schema.FieldType

setAllowFreeEntry

public void setAllowFreeEntry(boolean allowFreeEntry)
Specified by:
setAllowFreeEntry in interface org.outerj.daisy.repository.schema.FieldType

getXml

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

setAllFromXml

public void setAllFromXml(org.outerx.daisy.x10.FieldTypeDocument.FieldType fieldTypeXml)
Specified by:
setAllFromXml in interface org.outerj.daisy.repository.schema.FieldType

save

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

setDeprecated

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

isDeprecated

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

getUpdateCount

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

makeReadOnly

public void makeReadOnly()
Disables all operations that can modify the state of this object.


isReadOnly

public boolean isReadOnly()

getSelectionList

public org.outerj.daisy.repository.schema.SelectionList getSelectionList()
Specified by:
getSelectionList in interface org.outerj.daisy.repository.schema.FieldType

clearSelectionList

public void clearSelectionList()
Specified by:
clearSelectionList in interface org.outerj.daisy.repository.schema.FieldType

createStaticSelectionList

public org.outerj.daisy.repository.schema.StaticSelectionList createStaticSelectionList()
Specified by:
createStaticSelectionList in interface org.outerj.daisy.repository.schema.FieldType

createLinkQuerySelectionList

public org.outerj.daisy.repository.schema.LinkQuerySelectionList createLinkQuerySelectionList(java.lang.String whereClause,
                                                                                              boolean filterVariants)
Specified by:
createLinkQuerySelectionList in interface org.outerj.daisy.repository.schema.FieldType

createQuerySelectionList

public org.outerj.daisy.repository.schema.QuerySelectionList createQuerySelectionList(java.lang.String query,
                                                                                      boolean filterVariants,
                                                                                      org.outerj.daisy.repository.query.SortOrder sortOrder)
Specified by:
createQuerySelectionList in interface org.outerj.daisy.repository.schema.FieldType

getSize

public int getSize()
Specified by:
getSize in interface org.outerj.daisy.repository.schema.FieldType

setSize

public void setSize(int size)
Specified by:
setSize in interface org.outerj.daisy.repository.schema.FieldType


Copyright © -2012 . All Rights Reserved.