Package com._1c.g5.v8.dt.dcs.settings
Class DcsAvailableSettingsSourceDataSetInfoBase
- java.lang.Object
-
- com._1c.g5.v8.dt.dcs.settings.DcsAvailableSettingsSourceDataSetInfoBase
-
- All Implemented Interfaces:
IDcsAvailableSettingsSourceDataSetInfo
- Direct Known Subclasses:
DcsAvailableSettingsSourceDataSetInfoQueryObjectBase,DcsAvailableSettingsSourceDataSetInfoUnion
public class DcsAvailableSettingsSourceDataSetInfoBase extends Object implements IDcsAvailableSettingsSourceDataSetInfo
Базовый класс поставщика информации о наборе данных для настроек
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDcsAvailableSettingsSourceDataSetInfoBase.SchemeDataSetFieldsList ofDataSetFieldfrom schema
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DcsAvailableSettingsSourceDataSetInfoBase(SettingsContext settingsContext)Constructs an instance
-
Method Summary
-
-
-
Field Detail
-
schemeDataSet
protected DataSet schemeDataSet
-
calcedBuildedFields
protected Map<DcsAvailableSettingsSourceForSchema.FieldUse,DcsAvailableSettingsSourceForSchema.CalcedChildBuildedFields> calcedBuildedFields
-
buildedFieldsForDataPaths
protected Map<DcsAvailableSettingsSourceForSchema.FieldUse,DcsAvailableSettingsSourceForSchema.BuildedFieldsForDataPath> buildedFieldsForDataPaths
-
internationalDataPathsEn
protected Map<DcsAvailableSettingsSourceForSchema.FieldUse,DcsAvailableSettingsSourceForSchema.InternationalDataPaths> internationalDataPathsEn
-
internationalDataPathsRu
protected Map<DcsAvailableSettingsSourceForSchema.FieldUse,DcsAvailableSettingsSourceForSchema.InternationalDataPaths> internationalDataPathsRu
-
schemeNotFirstLevelFields
protected Map<DcsAvailableSettingsSourceForSchema.FieldUse,Set<DcsPath>> schemeNotFirstLevelFields
-
settingsSource
protected DcsAvailableSettingsSourceForSchema settingsSource
-
needAddParentTitle
protected boolean needAddParentTitle
-
usedParents
protected Map<DcsAvailableSettingsSourceForSchema.FieldUse,Set<DcsPath>> usedParents
-
upHierarchy
protected boolean upHierarchy
-
removePasswordFields
protected boolean removePasswordFields
-
settingsContext
protected final SettingsContext settingsContext
-
-
Constructor Detail
-
DcsAvailableSettingsSourceDataSetInfoBase
public DcsAvailableSettingsSourceDataSetInfoBase(SettingsContext settingsContext)
Constructs an instance- Parameters:
settingsContext- The combined settings context. May not benull
-
-
Method Detail
-
init
public void init(IV8Project v8project, String langCode, DataSet dataSet, DcsAvailableSettingsSourceForSchema settingsSource, Map<DcsPath,String> fieldTitles, boolean validate) throws DcsAvailableSettingsSourceException
Description copied from interface:IDcsAvailableSettingsSourceDataSetInfoInitialize- Specified by:
initin interfaceIDcsAvailableSettingsSourceDataSetInfo- Parameters:
v8project- the V8 project, can't be nulllangCode- current language code, can't be nulldataSet- data set, can't be nullsettingsSource- settings source, can't be nullfieldTitles- titles of fields, can't be nullvalidate- whether need validate- Throws:
DcsAvailableSettingsSourceException
-
getAvailableUserFields
public void getAvailableUserFields(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath dataPathUnk, DcsAvailableSettingsSourceForSchema.ASSDCSDataSetInfoAvailableFieldInfos availableFields) throws DcsAvailableSettingsSourceException
Description copied from interface:IDcsAvailableSettingsSourceDataSetInfoПолучить набор доступных полей- Specified by:
getAvailableUserFieldsin interfaceIDcsAvailableSettingsSourceDataSetInfo- Parameters:
use- использованиеdataPathUnk- путь родителяavailableFields- доступные поля- Throws:
DcsAvailableSettingsSourceException
-
getAvailableParameters
public void getAvailableParameters(DcsAvailableSettingsSourceForSchema.DCSDataSetInfoAvailableParameterInfos availableParameters)
Description copied from interface:IDcsAvailableSettingsSourceDataSetInfoПолучить набор доступных параметров- Specified by:
getAvailableParametersin interfaceIDcsAvailableSettingsSourceDataSetInfo- Parameters:
availableParameters- доступные параметры
-
isUpHierarchy
public boolean isUpHierarchy()
Description copied from interface:IDcsAvailableSettingsSourceDataSetInfoПолучить признак иерархичности набора данных- Specified by:
isUpHierarchyin interfaceIDcsAvailableSettingsSourceDataSetInfo- Returns:
- признак
-
setIsUpHierarchy
public void setIsUpHierarchy(boolean upHierarchy)
Description copied from interface:IDcsAvailableSettingsSourceDataSetInfoУстановить признак иерархичности набора данных- Specified by:
setIsUpHierarchyin interfaceIDcsAvailableSettingsSourceDataSetInfo- Parameters:
upHierarchy- признак
-
dataSet
public DataSet dataSet()
Description copied from interface:IDcsAvailableSettingsSourceDataSetInfoПолучить набор данных- Specified by:
dataSetin interfaceIDcsAvailableSettingsSourceDataSetInfo- Returns:
- набор данных
-
getSchemaNotFirstLevelFields
public void getSchemaNotFirstLevelFields(DcsAvailableSettingsSourceForSchema.FieldUse use, Set<DcsPath> paths)
Description copied from interface:IDcsAvailableSettingsSourceDataSetInfoПолучить набор путей полей не первого уровня- Specified by:
getSchemaNotFirstLevelFieldsin interfaceIDcsAvailableSettingsSourceDataSetInfo- Parameters:
use- использованиеpaths- пути
-
forceLoadUsedParents
public void forceLoadUsedParents() throws DcsAvailableSettingsSourceExceptionDescription copied from interface:IDcsAvailableSettingsSourceDataSetInfoПринудительное запоминание полей схем данных, которые могут быть родительскими полями- Specified by:
forceLoadUsedParentsin interfaceIDcsAvailableSettingsSourceDataSetInfo- Throws:
DcsAvailableSettingsSourceException- если не удалось загрузить информацию о родительских полях
-
getInternationalDataPath
protected DcsPath getInternationalDataPath(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath fieldPath, int alias) throws DcsPathException, DcsAvailableSettingsSourceException
-
getFieldInfo
protected boolean getFieldInfo(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath fieldPathUnk, DcsAvailableSettingsSourceForSchema.ASSDCSDataSetInfoAvailableFieldInfo fieldInfo) throws DcsPathException, DcsAvailableSettingsSourceException
-
fillBuildedFields
protected void fillBuildedFields(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath parentFieldPathUnk) throws DcsPathException, DcsAvailableSettingsSourceException
-
makeAvailableFieldInfo
protected boolean makeAvailableFieldInfo(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsAvailableSettingsSourceForSchema.ASSDCSDataSetInfoAvailableFieldInfo info, DcsAvailableSettingsSourceForSchema.BuildedFields buildedFields, DcsAvailableSettingsSourceForSchema.ASSDCSDataSetInfoAvailableFieldInfo parentFieldInfo) throws DcsPathException
- Throws:
DcsPathException
-
makeAvailableFieldInfoTitle
protected void makeAvailableFieldInfoTitle(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsAvailableSettingsSourceForSchema.ASSDCSDataSetInfoAvailableFieldInfo info, DcsAvailableSettingsSourceForSchema.BuildedFields buildedFields, DcsAvailableSettingsSourceForSchema.ASSDCSDataSetInfoAvailableFieldInfo parentFieldInfo) throws DcsPathException
- Throws:
DcsPathException
-
getDataSetAvailableUserFields
protected void getDataSetAvailableUserFields(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath dataPath, DcsAvailableSettingsSourceForSchema.ASSDCSDataSetInfoAvailableFieldInfos availableFields) throws DcsAvailableSettingsSourceException
-
loadUsedParents
protected void loadUsedParents() throws DcsPathException, DcsAvailableSettingsSourceException
-
shouldRemovePasswordFields
public static boolean shouldRemovePasswordFields(IV8Project v8project)
Checks whether we should remove fields with password mode or not.- Parameters:
v8project- the v8 project, can not benull- Returns:
- remove password fields flag
-
-