How the BCC home page left navigation and links are displayed?
activitySources is the property which controls the links on the left navigation on the BCC home screen. All activity sources are registered with the ActivityManager component at /atg/bizui/activity/ActivityManager. When rendering the BCC home page, the ActivityManager cycles through all the registered ActivitySource components and displays left navigation links for each of them on the BCC home page.
For example if I want to add a new link "My New Link" , we need to follow the below steps.
1)activityManager
Add activityManager.properties to specify the activityresources. In this activityManager, I specified one MyActivitySource.
atg\bizui\activity\ActivityManager.properties
activitySources+=\
/com/xyzpath/activity/MyActivitySource
2)MyActivitySource.properties component
Add MyActivitySource.properties to specify the name of the link and the other details . Here it refers to a bundle properties file.
MyActivitySource.properties
$class=atg.bizui.activity.PortalActivitySource
# The name and description for the activity source entry that appears on the left side of the home page.
activitySourceResourceBundle=my.webui.WebAppResources
activitySourceNameResource=xxRepositoryActivitySource
activitySourceDescriptionResource=xxRepositoryActivitySource
# Generic activity definitions
genericActivityDefinitionFiles=/com/xyzpath/activity/genericActivities.xml
genericActivityFileModificationInterval=every 300 seconds
# URLs for the create-project page, the main project page, and the task page.
defaultCreateWorkflowURL=/atg/bcc/process?successURL=/AssetManager/assetManager.jsp
defaultProcessURL^=/atg/bizui/activity/PublishingActivitySource.defaultProcessURL
defaultTaskURL=/AssetManager/assetManager.jsp
fallbackPriority=2
displayOrderPriority=30
securityConfiguration=/atg/dynamo/security/SecurityConfiguration
XMLToolsFactory=/atg/dynamo/service/xml/XMLToolsFactory
scheduler=/atg/dynamo/service/Scheduler
3) WebAppResources.properties
xxRepositoryActivitySource=Manage xx Repository
xxRepositoryControl.displayName=xx Repository
xxRepositoryControl.description=Manage xx Repository
4)genericActivities.xml
/com/xyzpath/activity/genericActivities.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generic-activities SYSTEM "dynamosystemresource:/atg/dtds/activitymanager/activitymanager_1.0.dtd">
<generic-activities>
<activity>
<id>eventRepositoryControl</id>
<resource-bundle>my.webui.WebAppResources</resource-bundle>
<display-name-resource>xxRepositoryControl.displayName</display-name-resource>
<description-resource>xxRepositoryControl.description</description-resource>
<destination-page>
<url>/AssetManager/assetManager.jsp</url>
<clear-context>true</clear-context>
<acl>Profile$role$eventControl:read</acl>
</destination-page>
</activity>
</generic-activities>
activitySources is the property which controls the links on the left navigation on the BCC home screen. All activity sources are registered with the ActivityManager component at /atg/bizui/activity/ActivityManager. When rendering the BCC home page, the ActivityManager cycles through all the registered ActivitySource components and displays left navigation links for each of them on the BCC home page.
For example if I want to add a new link "My New Link" , we need to follow the below steps.
1)activityManager
Add activityManager.properties to specify the activityresources. In this activityManager, I specified one MyActivitySource.
atg\bizui\activity\ActivityManager.properties
activitySources+=\
/com/xyzpath/activity/MyActivitySource
2)MyActivitySource.properties component
Add MyActivitySource.properties to specify the name of the link and the other details . Here it refers to a bundle properties file.
MyActivitySource.properties
$class=atg.bizui.activity.PortalActivitySource
# The name and description for the activity source entry that appears on the left side of the home page.
activitySourceResourceBundle=my.webui.WebAppResources
activitySourceNameResource=xxRepositoryActivitySource
activitySourceDescriptionResource=xxRepositoryActivitySource
# Generic activity definitions
genericActivityDefinitionFiles=/com/xyzpath/activity/genericActivities.xml
genericActivityFileModificationInterval=every 300 seconds
# URLs for the create-project page, the main project page, and the task page.
defaultCreateWorkflowURL=/atg/bcc/process?successURL=/AssetManager/assetManager.jsp
defaultProcessURL^=/atg/bizui/activity/PublishingActivitySource.defaultProcessURL
defaultTaskURL=/AssetManager/assetManager.jsp
fallbackPriority=2
displayOrderPriority=30
securityConfiguration=/atg/dynamo/security/SecurityConfiguration
XMLToolsFactory=/atg/dynamo/service/xml/XMLToolsFactory
scheduler=/atg/dynamo/service/Scheduler
3) WebAppResources.properties
xxRepositoryActivitySource=Manage xx Repository
xxRepositoryControl.displayName=xx Repository
xxRepositoryControl.description=Manage xx Repository
4)genericActivities.xml
/com/xyzpath/activity/genericActivities.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generic-activities SYSTEM "dynamosystemresource:/atg/dtds/activitymanager/activitymanager_1.0.dtd">
<generic-activities>
<activity>
<id>eventRepositoryControl</id>
<resource-bundle>my.webui.WebAppResources</resource-bundle>
<display-name-resource>xxRepositoryControl.displayName</display-name-resource>
<description-resource>xxRepositoryControl.description</description-resource>
<destination-page>
<url>/AssetManager/assetManager.jsp</url>
<clear-context>true</clear-context>
<acl>Profile$role$eventControl:read</acl>
</destination-page>
</activity>
</generic-activities>
No comments:
Post a Comment