Documentation
¶
Index ¶
- Constants
- Variables
- type ActionOverride
- type CustomApplication
- func (p *CustomApplication) AddTab(tabName string) error
- func (o *CustomApplication) DeleteActionOverrides(filters ...ProfileActionOverrideFilter) error
- func (p *CustomApplication) DeleteTab(tabName string) error
- func (o *CustomApplication) GetProfileActionOverrides(filters ...ProfileActionOverrideFilter) []ProfileActionOverride
- func (p *CustomApplication) GetTabs() []TextLiteral
- func (o *CustomApplication) ResetActionOverrides(filters ...ProfileActionOverrideFilter) error
- func (c *CustomApplication) SetMetadata(m metadata.MetadataInfo)
- func (a *CustomApplication) Tidy()
- func (c *CustomApplication) Type() metadata.MetadataType
- type ProfileActionOverride
- type ProfileActionOverrideFilter
- type ProfileActionOverrideList
Constants ¶
View Source
const NAME = "CustomApplication"
Variables ¶
View Source
var TabExistsError = errors.New("tab already exists")
Functions ¶
This section is empty.
Types ¶
type ActionOverride ¶
type ActionOverride struct {
ActionName struct {
Text string `xml:",chardata"`
} `xml:"actionName"`
Comment *struct {
Text string `xml:",chardata"`
} `xml:"comment"`
Content struct {
Text string `xml:",chardata"`
} `xml:"content"`
FormFactor struct {
Text string `xml:",chardata"`
} `xml:"formFactor"`
SkipRecordTypeSelect struct {
Text string `xml:",chardata"`
} `xml:"skipRecordTypeSelect"`
Type struct {
Text string `xml:",chardata"`
} `xml:"type"`
PageOrSobjectType struct {
Text string `xml:",chardata"`
} `xml:"pageOrSobjectType"`
}
func (ActionOverride) MarshalXML ¶
func (o ActionOverride) MarshalXML(e *xml.Encoder, start xml.StartElement) error
type CustomApplication ¶
type CustomApplication struct {
metadata.MetadataInfo
XMLName xml.Name `xml:"CustomApplication"`
Xmlns string `xml:"xmlns,attr"`
ActionOverrides []ActionOverride `xml:"actionOverrides"`
Brand *struct {
HeaderColor struct {
Text string `xml:",chardata"`
} `xml:"headerColor"`
Logo *struct {
Text string `xml:",chardata"`
} `xml:"logo"`
LogoVersion *struct {
Text string `xml:",chardata"`
} `xml:"logoVersion"`
ShouldOverrideOrgTheme struct {
Text string `xml:",chardata"`
} `xml:"shouldOverrideOrgTheme"`
} `xml:"brand"`
DefaultLandingTab *struct {
Text string `xml:",chardata"`
} `xml:"defaultLandingTab"`
Description *struct {
Text string `xml:",chardata"`
} `xml:"description"`
FormFactors []struct {
Text string `xml:",chardata"`
} `xml:"formFactors"`
Text string `xml:",chardata"`
} `xml:"isNavAutoTempTabsDisabled"`
Text string `xml:",chardata"`
} `xml:"isNavPersonalizationDisabled"`
Text string `xml:",chardata"`
} `xml:"isNavTabPersistenceDisabled"`
Label *struct {
Text string `xml:",chardata"`
} `xml:"label"`
Logo *struct {
Text string `xml:",chardata"`
} `xml:"logo"`
Text string `xml:",chardata"`
} `xml:"navType"`
ProfileActionOverrides ProfileActionOverrideList `xml:"profileActionOverrides"`
SetupExperience *struct {
Text string `xml:",chardata"`
} `xml:"setupExperience"`
Tabs []TextLiteral `xml:"tabs"`
UiType *struct {
Text string `xml:",chardata"`
} `xml:"uiType"`
UtilityBar *struct {
Text string `xml:",chardata"`
} `xml:"utilityBar"`
WorkspaceConfig *struct {
Mappings []struct {
FieldName *string `xml:"fieldName"`
Tab *string `xml:"tab"`
} `xml:"mappings"`
} `xml:"workspaceConfig"`
}
func Open ¶
func Open(path string) (*CustomApplication, error)
func (*CustomApplication) AddTab ¶
func (p *CustomApplication) AddTab(tabName string) error
func (*CustomApplication) DeleteActionOverrides ¶
func (o *CustomApplication) DeleteActionOverrides(filters ...ProfileActionOverrideFilter) error
func (*CustomApplication) DeleteTab ¶
func (p *CustomApplication) DeleteTab(tabName string) error
func (*CustomApplication) GetProfileActionOverrides ¶
func (o *CustomApplication) GetProfileActionOverrides(filters ...ProfileActionOverrideFilter) []ProfileActionOverride
func (*CustomApplication) GetTabs ¶
func (p *CustomApplication) GetTabs() []TextLiteral
func (*CustomApplication) ResetActionOverrides ¶
func (o *CustomApplication) ResetActionOverrides(filters ...ProfileActionOverrideFilter) error
func (*CustomApplication) SetMetadata ¶
func (c *CustomApplication) SetMetadata(m metadata.MetadataInfo)
func (*CustomApplication) Tidy ¶
func (a *CustomApplication) Tidy()
func (*CustomApplication) Type ¶
func (c *CustomApplication) Type() metadata.MetadataType
type ProfileActionOverride ¶
type ProfileActionOverride struct {
ActionName string `xml:"actionName"`
Content *string `xml:"content"`
FormFactor string `xml:"formFactor"`
PageOrSobjectType string `xml:"pageOrSobjectType"`
RecordType *string `xml:"recordType"`
Type string `xml:"type"`
Profile string `xml:"profile"`
}
func (ProfileActionOverride) MarshalXML ¶
func (o ProfileActionOverride) MarshalXML(e *xml.Encoder, start xml.StartElement) error
type ProfileActionOverrideFilter ¶
type ProfileActionOverrideFilter func(ProfileActionOverride) bool
type ProfileActionOverrideList ¶
type ProfileActionOverrideList []ProfileActionOverride
func (ProfileActionOverrideList) Tidy ¶
func (pao ProfileActionOverrideList) Tidy()
Click to show internal directories.
Click to hide internal directories.