Shareable types are configured using the SiteGroupManager
shareableTypes
property. This property points to ShareableTypes
nucleus components. Any siteGroup
repository item references ShareableTypes
components through their ID property.
For example:
#NewShareableType.properties $class=atg.multisite.ShareableType id=NewShare genre=atg.ExampleItem diaplayName=New Share ShareableType description=The New Share ShareableType resourceBundleLocation=atg.newshare.NewShareResources displayNameResourceName=displayName descriptionResourceName=description
The atg.mulitisite.ShareableType
class contains the following properties, as displayed above:
id
– A unique value.genre
– A classification for a shareable type. For example, you could classify allShareableTypes
for Nucleus components as a genre.displayName
– A simple name.description
– A description of theShareableType
.resourceBundle
– Allows you to set theresourceBundle
string and set values in the file specified by that location that correspond todisplayName
anddescription
. Values specified in the resource bundle take precedence over values specified directly in the properties file.
Setting Up ShareableTypes Arrays
The enumerated string options for the shareableTypes
property are provided by a StringEnumProvider
, which retrieves the valid shareable types from the SiteGroupManager
.
You can set up the enumerated string by creating a new StringEnumProvider
property file.
For example:
$class=atg.adapter.gsa.StingEnumProvider Values+=/atg/multisite/SiteGroupManager.shareableTypes
Once the StringEnumProvider
is configured, the ShareableType
selector will use the EnumCollectionEditor
.