Documentation
¶
Index ¶
- Constants
- type AccessLevel
- type AccountSettings
- type AllInternalUsers
- type BooleanFilter
- type CriteriaItem
- type CriteriaRule
- type CriteriaRuleList
- type Description
- type Field
- type Group
- type GuestRule
- type GuestRuleList
- type GuestUser
- type Label
- type Operation
- type OwnerRule
- type OwnerRuleList
- type Queue
- type Role
- type RoleAndSubordinates
- type SharedFrom
- type SharedTo
- type SharingRules
- func (p *SharingRules) DeleteCriteriaRule(ruleName string) error
- func (p *SharingRules) DeleteOwnerRule(ruleName string) error
- func (s *SharingRules) GetCriteriaRules() []CriteriaRule
- func (s *SharingRules) GetOwnerRules() []OwnerRule
- func (c *SharingRules) SetMetadata(m metadata.MetadataInfo)
- func (r *SharingRules) Tidy()
- func (c *SharingRules) Type() metadata.MetadataType
- type Value
Constants ¶
View Source
const NAME = "SharingRules"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessLevel ¶
type AccessLevel struct {
Text string `xml:",chardata"`
}
AccessLevel represents an access level field
type AccountSettings ¶
type AccountSettings struct {
CaseAccessLevel AccessLevel `xml:"caseAccessLevel"`
ContactAccessLevel AccessLevel `xml:"contactAccessLevel"`
OpportunityAccessLevel AccessLevel `xml:"opportunityAccessLevel"`
}
AccountSettings represents account-specific sharing settings
type AllInternalUsers ¶
type AllInternalUsers struct{}
AllInternalUsers represents all internal users
type BooleanFilter ¶
type BooleanFilter struct {
Text string `xml:",chardata"`
}
BooleanFilter represents a boolean filter expression
type CriteriaItem ¶
type CriteriaItem struct {
Field Field `xml:"field"`
Operation Operation `xml:"operation"`
Value Value `xml:"value"`
}
CriteriaItem represents a single criteria item in a rule
type CriteriaRule ¶
type CriteriaRule struct {
FullName string `xml:"fullName"`
AccessLevel AccessLevel `xml:"accessLevel"`
AccountSettings *AccountSettings `xml:"accountSettings"`
Description *Description `xml:"description"`
Label Label `xml:"label"`
BooleanFilter *BooleanFilter `xml:"booleanFilter"`
CriteriaItems []CriteriaItem `xml:"criteriaItems"`
IncludeRecordsOwnedByAll *BooleanText `xml:"includeRecordsOwnedByAll"`
}
func (CriteriaRule) MarshalXML ¶
func (o CriteriaRule) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (CriteriaRule) UsesField ¶
func (r CriteriaRule) UsesField(fieldName string) bool
UsesField checks if a criteria rule uses the specified field (case-insensitive)
type CriteriaRuleList ¶
type CriteriaRuleList []CriteriaRule
func (CriteriaRuleList) Tidy ¶
func (r CriteriaRuleList) Tidy()
type Description ¶
type Description struct {
Text string `xml:",innerxml"`
}
Description represents a description field
type GuestRule ¶
type GuestRule struct {
FullName string `xml:"fullName"`
AccessLevel AccessLevel `xml:"accessLevel"`
Description *Description `xml:"description"`
Label Label `xml:"label"`
CriteriaItems CriteriaItem `xml:"criteriaItems"`
IncludeHVUOwnedRecords *TextLiteral `xml:"includeHVUOwnedRecords"`
}
type GuestRuleList ¶
type GuestRuleList []GuestRule
func (GuestRuleList) Tidy ¶
func (r GuestRuleList) Tidy()
type GuestUser ¶
type GuestUser struct {
Text string `xml:",chardata"`
}
GuestUser represents a guest user reference
type Operation ¶
type Operation struct {
Text string `xml:",chardata"`
}
Operation represents an operation
type OwnerRule ¶
type OwnerRule struct {
FullName string `xml:"fullName"`
AccessLevel AccessLevel `xml:"accessLevel"`
AccountSettings *AccountSettings `xml:"accountSettings"`
Description *Description `xml:"description"`
Label Label `xml:"label"`
}
func (OwnerRule) MarshalXML ¶
type OwnerRuleList ¶
type OwnerRuleList []OwnerRule
func (OwnerRuleList) Tidy ¶
func (r OwnerRuleList) Tidy()
type RoleAndSubordinates ¶
type RoleAndSubordinates struct {
Text string `xml:",chardata"`
}
RoleAndSubordinates represents a role and subordinates reference
type SharingRules ¶
type SharingRules struct {
metadata.MetadataInfo
XMLName xml.Name `xml:"SharingRules"`
Xmlns string `xml:"xmlns,attr"`
SharingCriteriaRules CriteriaRuleList `xml:"sharingCriteriaRules"`
SharingGuestRules GuestRuleList `xml:"sharingGuestRules"`
SharingOwnerRules OwnerRuleList `xml:"sharingOwnerRules"`
}
func Open ¶
func Open(path string) (*SharingRules, error)
func (*SharingRules) DeleteCriteriaRule ¶
func (p *SharingRules) DeleteCriteriaRule(ruleName string) error
func (*SharingRules) DeleteOwnerRule ¶
func (p *SharingRules) DeleteOwnerRule(ruleName string) error
func (*SharingRules) GetCriteriaRules ¶
func (s *SharingRules) GetCriteriaRules() []CriteriaRule
func (*SharingRules) GetOwnerRules ¶
func (s *SharingRules) GetOwnerRules() []OwnerRule
func (*SharingRules) SetMetadata ¶
func (c *SharingRules) SetMetadata(m metadata.MetadataInfo)
func (*SharingRules) Tidy ¶
func (r *SharingRules) Tidy()
func (*SharingRules) Type ¶
func (c *SharingRules) Type() metadata.MetadataType
Click to show internal directories.
Click to hide internal directories.