View unanswered posts | View active topics It is currently Thu May 23, 2013 8:45 am



Reply to topic  [ 2 posts ] 
 Deleting Activities associated to a particular Category 
Author Message

Joined: Fri Jun 20, 2008 9:00 pm
Posts: 1
Post Deleting Activities associated to a particular Category
Hi,

I am trying to delete all the activities of a particular category. Following is whatI tried:

Code:
 CategoryDepository.removeBrokedCategory(CategoryDepository.getCategory(oSelectedCatNodeID),
                                    AllUser.class,
                                    CategoryStructureEvent.REMOVED_DELETED);     


While the category gets removed or 'unregistered', the activities associated with the category remain and are visible in the dateArea.

I would like to know
[1] How do I delete the activities of a Category? I tried something in the lines of
Code:
Activity actCurrent = (Activity)ActivityDepository.getInstance().getActivities();
Object[] oAllCatIDs = actCurrent.getCategoryIDs();


With the idea of trying to retreive the Category ID of each activity to delete it, but was not able to proceed further.

[2] If an activity is linked to more than one Category, how can one remove a specific activity from a specific Category without disturbing the remaining structure of the ActivityDepository?

[3] Performance Question: If activities/ Category's are only 'delinked' or 'unregistered', (in essence they still remain in memory), when and how can we clean up all dormant activities/ categories?
Else won't it hog the memory over time?

Thanks in advance.


Fri Jun 20, 2008 10:54 pm
Profile
Site Admin

Joined: Mon Dec 06, 2004 4:24 pm
Posts: 2485
Location: Sweden
Post Re: Deleting Activities associated to a particular Category
Hello,

Please post support questions in the support ticket system. That way it is easier to track issues.


Fri Jun 20, 2008 11:29 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.