Documentation
¶
Index ¶
- Constants
- type ActionOverride
- type ActionOverrideFilter
- type ChildComponentProvider
- type CustomObject
- func (o *CustomObject) AddBlankPicklistOptionsToRecordType(fieldName string, recordType string) error
- func (o *CustomObject) AddField(fieldName string) error
- func (o *CustomObject) AddFieldPicklistValue(fieldName string, recordType string, picklistValue string) error
- func (o *CustomObject) AddPicklistValue(fieldName string, picklistValue string, recordTypes []string) error
- func (o *CustomObject) CloneField(sourceFieldName string, targetFieldName string) error
- func (p *CustomObject) DeleteField(fieldName string) error
- func (p *CustomObject) DeleteFieldFromCompactLayouts(fieldName string)
- func (p *CustomObject) DeleteFieldPicklistValues(fieldName string)
- func (p *CustomObject) DeleteFieldSet(fieldSetName string) error
- func (o *CustomObject) DeleteRecordType(recordType string) error
- func (p *CustomObject) DeleteRule(ruleName string) error
- func (p *CustomObject) DeleteWebLink(webLinkName string) error
- func (c *CustomObject) Files(format metadata.Format) (map[string][]byte, error)
- func (o *CustomObject) GetActionOverrides(filters ...ActionOverrideFilter) []ActionOverride
- func (o *CustomObject) GetFieldSets() []fieldset.FieldSet
- func (o *CustomObject) GetFields(filters ...field.FieldFilter) []field.Field
- func (o *CustomObject) GetIndexes(filters ...index.IndexFilter) []index.BigObjectIndex
- func (o *CustomObject) GetRecordTypes(filters ...recordtype.RecordTypeFilter) []recordtype.RecordType
- func (p *CustomObject) GetValidationRules() validationrule.ValidationRuleList
- func (o *CustomObject) GetWebLinks() []weblink.WebLink
- func (o *CustomObject) ListPicklistOptions(fieldName string) ([]string, error)
- func (o *CustomObject) RemoveFieldPicklistValue(fieldName string, recordType string, picklistValue string) error
- func (c *CustomObject) SetMetadata(m metadata.MetadataInfo)
- func (p *CustomObject) Tidy()
- func (c *CustomObject) Type() metadata.MetadataType
- func (o *CustomObject) UpdateField(fieldName string, updates field.Field) error
- type FieldList
- type IndexList
- type ListViewList
Constants ¶
View Source
const NAME = "CustomObject"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionOverride ¶
type ActionOverrideFilter ¶
type ActionOverrideFilter func(ActionOverride) bool
type ChildComponentProvider ¶
type ChildComponentProvider interface {
Items(metadataType string) []metadata.RegisterableMetadata
}
ChildComponentProvider provides access to child components for composition
type CustomObject ¶
type CustomObject struct {
metadata.MetadataInfo
XMLName xml.Name `xml:"CustomObject"`
Xmlns string `xml:"xmlns,attr"`
ActionOverrides []ActionOverride `xml:"actionOverrides"`
AllowInChatterGroups *struct {
Text string `xml:",chardata"`
} `xml:"allowInChatterGroups"`
BusinessProcesses []businessprocess.BusinessProcess `xml:"businessProcesses"`
CompactLayoutAssignment *struct {
Text string `xml:",chardata"`
} `xml:"compactLayoutAssignment"`
CompactLayouts []compactlayout.CompactLayout `xml:"compactLayouts"`
CustomHelpPage *struct {
Text string `xml:",chardata"`
} `xml:"customHelpPage"`
CustomSettingsType *struct {
Text string `xml:",chardata"`
} `xml:"customSettingsType"`
DeploymentStatus *struct {
Text string `xml:",chardata"`
} `xml:"deploymentStatus"`
Deprecated *struct {
Text string `xml:",chardata"`
} `xml:"deprecated"`
Description *struct {
Text string `xml:",innerxml"`
} `xml:"description"`
EnableActivities *struct {
Text string `xml:",chardata"`
} `xml:"enableActivities"`
EnableBulkApi *struct {
Text string `xml:",chardata"`
} `xml:"enableBulkApi"`
EnableEnhancedLookup *struct {
Text string `xml:",chardata"`
} `xml:"enableEnhancedLookup"`
EnableFeeds *struct {
Text string `xml:",chardata"`
} `xml:"enableFeeds"`
EnableHistory *struct {
Text string `xml:",chardata"`
} `xml:"enableHistory"`
EnableLicensing *struct {
Text string `xml:",chardata"`
} `xml:"enableLicensing"`
EnableReports *struct {
Text string `xml:",chardata"`
} `xml:"enableReports"`
EnableSearch *struct {
Text string `xml:",chardata"`
} `xml:"enableSearch"`
EnableSharing *struct {
Text string `xml:",chardata"`
} `xml:"enableSharing"`
EnableStreamingApi *struct {
Text string `xml:",chardata"`
} `xml:"enableStreamingApi"`
EventType *struct {
Text string `xml:",chardata"`
} `xml:"eventType"`
ExternalSharingModel *struct {
Text string `xml:",chardata"`
} `xml:"externalSharingModel"`
FieldSets []fieldset.FieldSet `xml:"fieldSets"`
Fields FieldList `xml:"fields"`
Indexes IndexList `xml:"indexes"`
Label *struct {
Text string `xml:",chardata"`
} `xml:"label"`
ListViews ListViewList `xml:"listViews"`
NameField *struct {
DisplayFormat *struct {
Text string `xml:",chardata"`
} `xml:"displayFormat"`
Label struct {
Text string `xml:",chardata"`
} `xml:"label"`
TrackFeedHistory *struct {
Text string `xml:",chardata"`
} `xml:"trackFeedHistory"`
TrackHistory *struct {
Text string `xml:",chardata"`
} `xml:"trackHistory"`
Type struct {
Text string `xml:",chardata"`
} `xml:"type"`
} `xml:"nameField"`
PluralLabel *struct {
Text string `xml:",chardata"`
} `xml:"pluralLabel"`
ProfileSearchLayouts []struct {
Fields []struct {
Text string `xml:",chardata"`
} `xml:"fields"`
ProfileName struct {
Text string `xml:",chardata"`
} `xml:"profileName"`
} `xml:"profileSearchLayouts"`
PublishBehavior *struct {
Text string `xml:",chardata"`
} `xml:"publishBehavior"`
RecordTypeTrackFeedHistory *struct {
Text string `xml:",chardata"`
} `xml:"recordTypeTrackFeedHistory"`
RecordTypeTrackHistory *struct {
Text string `xml:",chardata"`
} `xml:"recordTypeTrackHistory"`
RecordTypes []recordtype.RecordType `xml:"recordTypes"`
SearchLayouts *struct {
CustomTabListAdditionalFields []struct {
Text string `xml:",chardata"`
} `xml:"customTabListAdditionalFields"`
ExcludedStandardButtons []struct {
Text string `xml:",chardata"`
} `xml:"excludedStandardButtons"`
ListViewButtons []struct {
Text string `xml:",chardata"`
} `xml:"listViewButtons"`
LookupDialogsAdditionalFields []struct {
Text string `xml:",chardata"`
} `xml:"lookupDialogsAdditionalFields"`
LookupFilterFields []struct {
Text string `xml:",chardata"`
} `xml:"lookupFilterFields"`
LookupPhoneDialogsAdditionalFields []struct {
Text string `xml:",chardata"`
} `xml:"lookupPhoneDialogsAdditionalFields"`
SearchFilterFields []struct {
Text string `xml:",chardata"`
} `xml:"searchFilterFields"`
SearchResultsAdditionalFields []struct {
Text string `xml:",chardata"`
} `xml:"searchResultsAdditionalFields"`
SearchResultsCustomButtons []struct {
Text string `xml:",chardata"`
} `xml:"searchResultsCustomButtons"`
} `xml:"searchLayouts"`
SharingModel *struct {
Text string `xml:",chardata"`
} `xml:"sharingModel"`
SharingReasons []sharingreason.SharingReason `xml:"sharingReasons"`
StartsWith *struct {
Text string `xml:",chardata"`
} `xml:"startsWith"`
ValidationRules validationrule.ValidationRuleList `xml:"validationRules"`
Visibility *struct {
Text string `xml:",chardata"`
} `xml:"visibility"`
WebLinks []weblink.WebLink `xml:"webLinks"`
}
func ComposeFromChildren ¶
func ComposeFromChildren(objectName string, provider ChildComponentProvider) *CustomObject
ComposeFromChildren creates a composed CustomObject by merging child components from a provider. This is used when converting from source format (where components are separate) to metadata format.
func Open ¶
func Open(path string) (*CustomObject, error)
func (*CustomObject) AddBlankPicklistOptionsToRecordType ¶
func (o *CustomObject) AddBlankPicklistOptionsToRecordType(fieldName string, recordType string) error
func (*CustomObject) AddField ¶
func (o *CustomObject) AddField(fieldName string) error
func (*CustomObject) AddFieldPicklistValue ¶
func (o *CustomObject) AddFieldPicklistValue(fieldName string, recordType string, picklistValue string) error
func (*CustomObject) AddPicklistValue ¶
func (o *CustomObject) AddPicklistValue(fieldName string, picklistValue string, recordTypes []string) error
func (*CustomObject) CloneField ¶
func (o *CustomObject) CloneField(sourceFieldName string, targetFieldName string) error
func (*CustomObject) DeleteField ¶
func (p *CustomObject) DeleteField(fieldName string) error
func (*CustomObject) DeleteFieldFromCompactLayouts ¶
func (p *CustomObject) DeleteFieldFromCompactLayouts(fieldName string)
func (*CustomObject) DeleteFieldPicklistValues ¶
func (p *CustomObject) DeleteFieldPicklistValues(fieldName string)
func (*CustomObject) DeleteFieldSet ¶
func (p *CustomObject) DeleteFieldSet(fieldSetName string) error
func (*CustomObject) DeleteRecordType ¶
func (o *CustomObject) DeleteRecordType(recordType string) error
func (*CustomObject) DeleteRule ¶
func (p *CustomObject) DeleteRule(ruleName string) error
func (*CustomObject) DeleteWebLink ¶
func (p *CustomObject) DeleteWebLink(webLinkName string) error
func (*CustomObject) GetActionOverrides ¶
func (o *CustomObject) GetActionOverrides(filters ...ActionOverrideFilter) []ActionOverride
func (*CustomObject) GetFieldSets ¶
func (o *CustomObject) GetFieldSets() []fieldset.FieldSet
func (*CustomObject) GetFields ¶
func (o *CustomObject) GetFields(filters ...field.FieldFilter) []field.Field
func (*CustomObject) GetIndexes ¶
func (o *CustomObject) GetIndexes(filters ...index.IndexFilter) []index.BigObjectIndex
func (*CustomObject) GetRecordTypes ¶
func (o *CustomObject) GetRecordTypes(filters ...recordtype.RecordTypeFilter) []recordtype.RecordType
func (*CustomObject) GetValidationRules ¶
func (p *CustomObject) GetValidationRules() validationrule.ValidationRuleList
func (*CustomObject) GetWebLinks ¶
func (o *CustomObject) GetWebLinks() []weblink.WebLink
func (*CustomObject) ListPicklistOptions ¶
func (o *CustomObject) ListPicklistOptions(fieldName string) ([]string, error)
func (*CustomObject) RemoveFieldPicklistValue ¶
func (o *CustomObject) RemoveFieldPicklistValue(fieldName string, recordType string, picklistValue string) error
func (*CustomObject) SetMetadata ¶
func (c *CustomObject) SetMetadata(m metadata.MetadataInfo)
func (*CustomObject) Tidy ¶
func (p *CustomObject) Tidy()
func (*CustomObject) Type ¶
func (c *CustomObject) Type() metadata.MetadataType
func (*CustomObject) UpdateField ¶
func (o *CustomObject) UpdateField(fieldName string, updates field.Field) error
type IndexList ¶
type IndexList []index.BigObjectIndex
type ListViewList ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.