public class JSFieldManager extends JSBaseScriptableObject
myLogger
Constructor and Description |
---|
JSFieldManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
jsFunction_canEdit(java.lang.String theFieldId,
int theEditLevel)
Returns true if the field is editable at the specified edit level, otherwise returns false.
|
boolean |
jsFunction_canView(java.lang.String theFieldId,
int theViewLevel)
Returns true if the field is viewable at the specified view level, otherwise returns false.
|
boolean |
jsFunction_createDefaultField(int theNamespaceId,
java.lang.String theNamespaceUrl,
java.lang.String theFieldName,
int theUserId)
Calls createDefaultField and passes in the attributes value.
|
boolean |
jsFunction_createSchema(java.lang.String theURI,
boolean theHidden)
Creates new schema schema.
|
PropertyWrapper[] |
jsFunction_getAllFields()
Get all fields from all schemas.
|
java.lang.String |
jsFunction_getColumn(java.lang.String theFieldSpec)
Gets db column name of the specified field
|
java.lang.String |
jsFunction_getContainerTableName(java.lang.String theFieldSpec)
Get the name of the table the container field places its values in
|
java.lang.String |
jsFunction_getDatabaseFieldInfo(java.lang.String theNameSpace)
Get Admin Core metaform filling info for database fields
|
Field |
jsFunction_getField(java.lang.String theFieldId)
Returns the specified field.
|
PropertyWrapper[] |
jsFunction_getFields(java.lang.String theURI)
Get fields in the schema with the given URI.
|
int |
jsFunction_getSchemaId(java.lang.String theURI)
Gets schema id.
|
boolean |
jsFunction_isContainer(PropertyWrapper theProperty)
Is the field a container field?
|
boolean |
jsFunction_isEditable(java.lang.String theFieldId,
int theAssetId,
int theGroupId)
Returns true if the field is editable at the specified group and in the specified asset, otherwise returns false.
|
boolean |
jsFunction_isHierarchical(PropertyWrapper theProperty)
Is the field a hierarchy field?
|
boolean |
jsFunction_removeField(java.lang.String theFieldId)
Removes the specified field definition
|
void |
jsFunction_updateDictionary(java.lang.String theFieldId,
java.lang.String theDictionaryName)
Updates the dictionary for the given field.
|
void |
jsFunction_updateDisplayName(java.lang.String theFieldId,
java.lang.String theDisplayName)
Updates the display name for the given field.
|
void |
jsFunction_updateField(java.lang.Integer theSchemaId,
java.lang.String theSchemaURI,
java.lang.String theFieldName,
java.lang.String theValidator,
java.lang.String theMinValue,
java.lang.String theMaxValue,
java.lang.String theUi,
java.lang.Integer theEditLevel,
java.lang.Integer theViewLevel,
java.lang.Integer theSearchBoost,
java.lang.Integer theSync,
java.lang.String theDefault,
java.lang.String theDictionary,
java.lang.Integer theHierarchy,
java.lang.String theDataBlockSchema,
java.lang.String theLocale,
java.lang.Integer theSyncStrategy,
java.lang.Integer theAttributes,
int theUserId)
Updates the field with the specific values.
|
void |
jsFunction_updateValidator(java.lang.String theFieldId,
java.lang.String theValidator)
Updates the validator for the given field.
|
void |
jsFunction_updateXmpPanels(java.lang.String theFieldId,
java.lang.String theDictionaryName)
Updates xmp panels for a given field.
|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public java.lang.String jsFunction_getColumn(java.lang.String theFieldSpec)
theFieldSpec
- the field namepublic java.lang.String jsFunction_getContainerTableName(java.lang.String theFieldSpec)
theFieldSpec
- field idpublic PropertyWrapper[] jsFunction_getFields(java.lang.String theURI)
theURI
- The URI.public PropertyWrapper[] jsFunction_getAllFields()
public boolean jsFunction_isContainer(PropertyWrapper theProperty)
theProperty
- public java.lang.String jsFunction_getDatabaseFieldInfo(java.lang.String theNameSpace)
theNameSpace
- the database fieldpublic boolean jsFunction_isHierarchical(PropertyWrapper theProperty)
theProperty
- public boolean jsFunction_canView(java.lang.String theFieldId, int theViewLevel)
theFieldId
- the field id.theViewLevel
- the view level.public boolean jsFunction_canEdit(java.lang.String theFieldId, int theEditLevel)
theFieldId
- the field id.theEditLevel
- the edit level.public boolean jsFunction_isEditable(java.lang.String theFieldId, int theAssetId, int theGroupId)
theFieldId
- the field id.theAssetId
- the asset id.theGroupId
- the group id.true
if the field is editable, false
otherwise.public void jsFunction_updateValidator(java.lang.String theFieldId, java.lang.String theValidator)
theFieldId
- the field idtheValidator
- the validatorpublic void jsFunction_updateDictionary(java.lang.String theFieldId, java.lang.String theDictionaryName)
theFieldId
- the field idtheDictionaryName
- the dictionary namepublic void jsFunction_updateXmpPanels(java.lang.String theFieldId, java.lang.String theDictionaryName)
theFieldId
- the field idtheDictionaryName
- the dictionary namepublic void jsFunction_updateDisplayName(java.lang.String theFieldId, java.lang.String theDisplayName)
theFieldId
- the field idtheDisplayName
- the display namepublic int jsFunction_getSchemaId(java.lang.String theURI)
theURI
- schema URIpublic boolean jsFunction_createSchema(java.lang.String theURI, boolean theHidden)
theURI
- schema URItheHidden
- is hidden?public boolean jsFunction_createDefaultField(int theNamespaceId, java.lang.String theNamespaceUrl, java.lang.String theFieldName, int theUserId)
theNamespaceId
- namespace IDtheNamespaceUrl
- namespace URLtheFieldName
- field nametheUserId
- the user id we are currently usingpublic void jsFunction_updateField(java.lang.Integer theSchemaId, java.lang.String theSchemaURI, java.lang.String theFieldName, java.lang.String theValidator, java.lang.String theMinValue, java.lang.String theMaxValue, java.lang.String theUi, java.lang.Integer theEditLevel, java.lang.Integer theViewLevel, java.lang.Integer theSearchBoost, java.lang.Integer theSync, java.lang.String theDefault, java.lang.String theDictionary, java.lang.Integer theHierarchy, java.lang.String theDataBlockSchema, java.lang.String theLocale, java.lang.Integer theSyncStrategy, java.lang.Integer theAttributes, int theUserId)
theSchemaId
- the schema id.theSchemaURI
- the schema uri.theFieldName
- the name of the field.theValidator
- the validator, if any.theMinValue
- theMaxValue
- theUi
- the ui element that represents the field.theEditLevel
- the edit level.theViewLevel
- the view level.theSearchBoost
- the search boost?theSync
- what the type of sync should be.theDefault
- the default value if any.theDictionary
- the dictionary to us, if the validator supports it.theHierarchy
- whether or not it's a hierarchy field and what type.theDataBlockSchema
- the datablock schema to use, if any.theLocale
- the locale to use.theSyncStrategy
- the sync strategy (async, volatile, etc.).theAttributes
- the attributes.theUserId
- the user id of the triggering user.public boolean jsFunction_removeField(java.lang.String theFieldId)
theFieldId
- the field id to removepublic Field jsFunction_getField(java.lang.String theFieldId)
theFieldId
- the field id.Copyright © 2023 MediaBeacon, Inc. All Rights Reserved.