com.dotmarketing.portlets.structure.factories
Class FieldFactory

java.lang.Object
  extended by com.dotmarketing.portlets.structure.factories.FieldFactory

public class FieldFactory
extends java.lang.Object


Constructor Summary
FieldFactory()
           
 
Method Summary
static void deleteField(Field field)
           
static void deleteField(java.lang.String inode)
           
static void deleteFieldVariable(FieldVariable fieldVar)
           
static void deleteFieldVariable(java.lang.String id)
           
static java.util.List<FieldVariable> getAllFieldVariables()
           
static Field getFieldByInode(java.lang.String inode)
           
static Field getFieldByName(java.lang.String structureType, java.lang.String fieldName)
           
static Field getFieldByStructure(java.lang.String structureInode, java.lang.String fieldName)
           
static Field getFieldByVariableName(java.lang.String structureInode, java.lang.String velocityVarName)
           
static java.util.List getFieldsByContentletField(java.lang.String dataType, java.lang.String fieldInode, java.lang.String structureInode)
           
static java.util.List<Field> getFieldsByStructure(java.lang.String structureInode)
           
static java.util.List<Field> getFieldsByStructureSortedBySortOrder(java.lang.String structureInode)
           
static FieldVariable getFieldVariable(java.lang.String id)
           
static java.util.List<FieldVariable> getFieldVariablesForField(Field field)
           
static java.util.List<FieldVariable> getFieldVariablesForField(java.lang.String fieldId)
           
static java.lang.String getNextAvaliableFieldNumber(java.lang.String dataType, java.lang.String currentFieldInode, java.lang.String structureInode)
           
static boolean isTagField(java.lang.String fieldLuceneName, Structure st)
           
static void saveField(Field field)
           
static void saveField(Field field, java.lang.String existingId)
           
static void saveFieldVariable(FieldVariable fieldVar)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldFactory

public FieldFactory()
Method Detail

getFieldByInode

public static Field getFieldByInode(java.lang.String inode)

getFieldsByStructure

public static java.util.List<Field> getFieldsByStructure(java.lang.String structureInode)

getFieldsByStructureSortedBySortOrder

public static java.util.List<Field> getFieldsByStructureSortedBySortOrder(java.lang.String structureInode)

isTagField

public static boolean isTagField(java.lang.String fieldLuceneName,
                                 Structure st)

getFieldsByContentletField

public static java.util.List getFieldsByContentletField(java.lang.String dataType,
                                                        java.lang.String fieldInode,
                                                        java.lang.String structureInode)

getFieldByVariableName

public static Field getFieldByVariableName(java.lang.String structureInode,
                                           java.lang.String velocityVarName)

getFieldByStructure

public static Field getFieldByStructure(java.lang.String structureInode,
                                        java.lang.String fieldName)

getFieldByName

public static Field getFieldByName(java.lang.String structureType,
                                   java.lang.String fieldName)

saveField

public static void saveField(Field field)
                      throws DotHibernateException
Throws:
DotHibernateException

saveField

public static void saveField(Field field,
                             java.lang.String existingId)
                      throws DotHibernateException
Throws:
DotHibernateException

deleteField

public static void deleteField(java.lang.String inode)
                        throws DotHibernateException
Throws:
DotHibernateException

deleteField

public static void deleteField(Field field)
                        throws DotHibernateException
Throws:
DotHibernateException

getNextAvaliableFieldNumber

public static java.lang.String getNextAvaliableFieldNumber(java.lang.String dataType,
                                                           java.lang.String currentFieldInode,
                                                           java.lang.String structureInode)

saveFieldVariable

public static void saveFieldVariable(FieldVariable fieldVar)

getFieldVariable

public static FieldVariable getFieldVariable(java.lang.String id)

deleteFieldVariable

public static void deleteFieldVariable(java.lang.String id)

deleteFieldVariable

public static void deleteFieldVariable(FieldVariable fieldVar)

getAllFieldVariables

public static java.util.List<FieldVariable> getAllFieldVariables()

getFieldVariablesForField

public static java.util.List<FieldVariable> getFieldVariablesForField(java.lang.String fieldId)

getFieldVariablesForField

public static java.util.List<FieldVariable> getFieldVariablesForField(Field field)


Copyright © 2013 dotCMS Inc. All Rights Reserved.