Package com._1c.g5.v8.dt.dcs.settings
Class DcsAvailableSettingsSourceForSchema
- java.lang.Object
-
- com._1c.g5.v8.dt.dcs.settings.DcsAvailableSettingsSourceForSchema
-
- Direct Known Subclasses:
DcsAvailableSettingsSourceForForm
public class DcsAvailableSettingsSourceForSchema extends Object
Источник доступных настроек схемы
-
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DcsAvailableSettingsSourceForSchema(SettingsContext settingsContext)
Constructs an instance
-
Method Summary
-
-
-
Field Detail
-
eDCSDSGCK_Equal
public static int eDCSDSGCK_Equal
-
eDCSDSGCK_Less
public static int eDCSDSGCK_Less
-
eDCSDSGCK_LessOrEqual
public static int eDCSDSGCK_LessOrEqual
-
eDCSDSGCK_Greater
public static int eDCSDSGCK_Greater
-
eDCSDSGCK_GreaterOrEqual
public static int eDCSDSGCK_GreaterOrEqual
-
eDCSDSGCK_Contains
public static int eDCSDSGCK_Contains
-
eDCSDSGCK_In
public static int eDCSDSGCK_In
-
eDCSDSGCK_InHierarchy
public static int eDCSDSGCK_InHierarchy
-
eDCSDSGCK_InGroup
public static int eDCSDSGCK_InGroup
-
eDCSDSGCK_NotEqual
public static int eDCSDSGCK_NotEqual
-
eDCSDSGCK_NotContains
public static int eDCSDSGCK_NotContains
-
eDCSDSGCK_NotIn
public static int eDCSDSGCK_NotIn
-
eDCSDSGCK_NotInHierarchy
public static int eDCSDSGCK_NotInHierarchy
-
eDCSDSGCK_NotInGroup
public static int eDCSDSGCK_NotInGroup
-
eDCSDSGCK_Filled
public static int eDCSDSGCK_Filled
-
eDCSDSGCK_NotFilled
public static int eDCSDSGCK_NotFilled
-
eDCSDSGCK_BeginsWith
public static int eDCSDSGCK_BeginsWith
-
eDCSDSGCK_NotBeginsWith
public static int eDCSDSGCK_NotBeginsWith
-
eDCSDSGCK_Like
public static int eDCSDSGCK_Like
-
eDCSDSGCK_NotLike
public static int eDCSDSGCK_NotLike
-
eDCSSCKEqual
public static int eDCSSCKEqual
-
eDCSSCKLess
public static int eDCSSCKLess
-
eDCSSCKLessOrEqual
public static int eDCSSCKLessOrEqual
-
eDCSSCKGreater
public static int eDCSSCKGreater
-
eDCSSCKGreaterOrEqual
public static int eDCSSCKGreaterOrEqual
-
eDCSSCKContains
public static int eDCSSCKContains
-
eDCSSCKIn
public static int eDCSSCKIn
-
eDCSSCKInHierarchy
public static int eDCSSCKInHierarchy
-
eDCSSCKInGroup
public static int eDCSSCKInGroup
-
eDCSSCKNotEqual
public static int eDCSSCKNotEqual
-
eDCSSCKNotContains
public static int eDCSSCKNotContains
-
eDCSSCKNotIn
public static int eDCSSCKNotIn
-
eDCSSCKNotInHierarchy
public static int eDCSSCKNotInHierarchy
-
eDCSSCKNotInGroup
public static int eDCSSCKNotInGroup
-
eDCSSCKFilled
public static int eDCSSCKFilled
-
eDCSSCKNotFilled
public static int eDCSSCKNotFilled
-
eDCSSCKBeginsWith
public static int eDCSSCKBeginsWith
-
eDCSSCKNotBeginsWith
public static int eDCSSCKNotBeginsWith
-
eDCSSCKLike
public static int eDCSSCKLike
-
eDCSSCKNotLike
public static int eDCSSCKNotLike
-
eDCSSCKLast
public static int eDCSSCKLast
-
expressionFieldsFoldersInfos
public Map<DcsAvailableSettingsSourceForSchema.FieldUse,com._1c.g5.v8.dt.dcs.settings.DcsAvailableSettingsSourceForSchema.ExpressionFieldFolderInfos> expressionFieldsFoldersInfos
-
-
Constructor Detail
-
DcsAvailableSettingsSourceForSchema
public DcsAvailableSettingsSourceForSchema(SettingsContext settingsContext)
Constructs an instance- Parameters:
settingsContext
- The DCS settings context. May not benull
-
-
Method Detail
-
init
public void init(IV8Project v8project, DataCompositionSchema schema, String langCode, int alias, Version version) throws DcsAvailableSettingsSourceException
Initializes DCS available settings source for schem.- Parameters:
v8project
- the v8 project, cannot benull
schema
- the data composition schema, cannot benull
langCode
- the language code, cannot benull
alias
- the script aliasversion
- the project version, cannot benull
- Throws:
DcsAvailableSettingsSourceException
- in case of error with information provider or settings data set
-
init
public void init(IV8Project v8project, DataCompositionSchema schema, String langCode, int alias, Version version, boolean needValidate) throws DcsAvailableSettingsSourceException
Initializes DCS available settings source for schem.- Parameters:
v8project
- the v8 project, cannot benull
schema
- the data composition schema, cannot benull
langCode
- the language code, cannot benull
alias
- the script aliasversion
- the project version, cannot benull
needValidate
- flag for schema validation- Throws:
DcsAvailableSettingsSourceException
- in case of error with information provider or settings data set
-
updateUserFields
public void updateUserFields(DcsPath setupObjectPath, DataCompositionSettings settings, IDcsExpressionsUtil util, DcsAvailableFields filterFields, DcsAvailableFields selectedFields) throws DcsAvailableSettingsSourceException
Update user fields- Parameters:
setupObjectPath
- schema path, can't be nullsettings
- settings object, can't be nullutil
- expressions util, can't be nullfilterFields
- available fields for filter, can't be nullselectedFields
- available fields for selected fields, can't be null- Throws:
DcsAvailableSettingsSourceException
-
getChildFields
public void getChildFields(DcsPath setupObjectPath, DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath parentFieldPath, List<DcsAvailableFieldInfo> childFields, int levelCount, DcsAvailableSettingsSourceForSchema.OrderType orderType, boolean withUserFields) throws DcsAvailableSettingsSourceException
Get child fields (with parameters)- Parameters:
setupObjectPath
- schema path, can't be nulluse
- field use variant, can't be nullparentFieldPath
- parent field path, can't be nullchildFields
- out fields list, can't be nulllevelCount
- count of levelsorderType
- order type, can't be nullwithUserFields
- with user fields- Throws:
DcsAvailableSettingsSourceException
-
getChildFields
public void getChildFields(DcsPath setupObjectPath, DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath parentFieldPath, List<DcsAvailableFieldInfo> childFields, int levelCount, DcsAvailableSettingsSourceForSchema.OrderType orderType, boolean withUserFields, boolean withParameters) throws DcsAvailableSettingsSourceException
Get child fields- Parameters:
setupObjectPath
- schema path, can't be nulluse
- field use variant, can't be nullparentFieldPath
- parent field path, can't be nullchildFields
- out fields list, can't be nulllevelCount
- count of levelsorderType
- order type, can't be nullwithUserFields
- with user fieldswithParameters
- with parameters- Throws:
DcsAvailableSettingsSourceException
-
isNearestChildPath
public boolean isNearestChildPath(DcsPath parentPath, DcsPath path) throws DcsPathException
- Throws:
DcsPathException
-
getFieldInfo
public boolean getFieldInfo(DcsPath setupObjectPath, DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath fieldPathUnk, DcsAvailableFieldInfo fieldInfo) throws DcsAvailableSettingsSourceException
-
getType
public FieldsSourceType getType()
Returns the fields source type.- Returns:
- fields source type, cannot be
null
-
getDataSetInfos
public DcsAvailableSettingsSourceForSchema.DataSetInfos getDataSetInfos()
Gets actualDcsAvailableSettingsSourceForSchema.DataSetInfos
- Returns:
- actual
DcsAvailableSettingsSourceForSchema.DataSetInfos
, nevernull
-
getAvaliableConditionKinds
public static int getAvaliableConditionKinds(TypeDescriptionSource tdp, SettingsContext settingsContext)
-
fillInputParameters
public void fillInputParameters(DcsAvailableFieldInfo.DCSASSInputParameters inputParameters, InputParameters schemaInputParameters, DcsAvailableSettingsSourceForSchema.ASSInputParameters inputParams, String langCode) throws DcsPathException
- Throws:
DcsPathException
-
getBuildedFieldDataPath
public DcsPath getBuildedFieldDataPath(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsAvailableSettingsSourceForSchema.BuildedField buildedField, int alias) throws DcsPathException
- Throws:
DcsPathException
-
isChildsAvailable
public boolean isChildsAvailable(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsAvailableSettingsSourceForSchema.BuildedField buildedField)
-
isChildsAvailable
public boolean isChildsAvailable(DcsAvailableSettingsSourceForSchema.FieldUse use, DataSetField schemeField)
-
makeChildFieldPath
public DcsPath makeChildFieldPath(DcsPath parentPath, DcsPath dataSetChildFieldPath) throws DcsPathException
- Throws:
DcsPathException
-
getFolderNames
public void getFolderNames(DcsPath parentPath, DcsPath dataSetChildFieldPath, List<DcsPath> folderNames) throws DcsPathException
- Throws:
DcsPathException
-
isAvailable
public boolean isAvailable(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsAvailableSettingsSourceForSchema.ASSDCSDataSetInfoAvailableFieldInfo info)
-
isAvailable
public boolean isAvailable(DcsAvailableSettingsSourceForSchema.FieldUse use, DataSetField schemeField)
-
isAvailable
public boolean isAvailable(DcsAvailableSettingsSourceForSchema.FieldUse use, DataCompositionSchemaFieldUseRestriction restriction)
-
isAvailable
public boolean isAvailable(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsAvailableSettingsSourceForSchema.BuildedField buildedField)
-
getOverallPercentInfo
public boolean getOverallPercentInfo(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath parentFieldPath, DcsAvailableFieldInfo fieldInfo) throws DcsPathException
- Throws:
DcsPathException
-
getGroupPercentInfo
public boolean getGroupPercentInfo(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath parentFieldPath, DcsAvailableFieldInfo fieldInfo) throws DcsPathException
- Throws:
DcsPathException
-
getHierarchicalPercentInfo
public boolean getHierarchicalPercentInfo(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath parentFieldPath, DcsAvailableFieldInfo fieldInfo) throws DcsPathException
- Throws:
DcsPathException
-
getRowOrSeriesPercent
public boolean getRowOrSeriesPercent(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath parentFieldPath, DcsAvailableFieldInfo fieldInfo) throws DcsPathException
- Throws:
DcsPathException
-
getColumnOrPointPercent
public boolean getColumnOrPointPercent(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath parentFieldPath, DcsAvailableFieldInfo fieldInfo) throws DcsPathException
- Throws:
DcsPathException
-
getRowOrSeriesGroupPercent
public boolean getRowOrSeriesGroupPercent(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath parentFieldPath, DcsAvailableFieldInfo fieldInfo) throws DcsPathException
- Throws:
DcsPathException
-
getColumnOrPointGroupPercent
public boolean getColumnOrPointGroupPercent(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath parentFieldPath, DcsAvailableFieldInfo fieldInfo) throws DcsPathException
- Throws:
DcsPathException
-
getPercentInRowOrSeriesHierarchy
public boolean getPercentInRowOrSeriesHierarchy(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath parentFieldPath, DcsAvailableFieldInfo fieldInfo) throws DcsPathException
- Throws:
DcsPathException
-
getPercentInColumnOrPointHierarchy
public boolean getPercentInColumnOrPointHierarchy(DcsAvailableSettingsSourceForSchema.FieldUse use, DcsPath parentFieldPath, DcsAvailableFieldInfo fieldInfo) throws DcsPathException
- Throws:
DcsPathException
-
getAlias
public int getAlias()
-
getLangCode
public String getLangCode()
-
-