Alfresco content archiving? - archive

I have requirement where i need to archive a content item after a particular period but i should be able to access archived item anytime?
Also I want to know what is alfresco's content archiving strategy out of the box & how can i use it?
Can anybody help?
Regards.

Finally, after some googling, i can say that content archiving in alfresco depends upon stores & can be achieved using two ways:Common & Dedicated.
If there is no specific need to create dedicated archival store, archiving can be implemented in same contentstore(say workspace:\\spacestore...) using aspect such as effectivity aspect or any custom aspect, adding which we can tell system that content in context is eligible for archival in same store(contentstore) and using rules/actions, content can be moved or copied in another space of same contentstore and its permissions can be updated (as & when needed).
If there is a need to create dedicated archival store say in large repositories or compliance based systems, new content store can be added using http://wiki.alfresco.com/wiki/Content_Store_Selector and using cm:storeSelector aspect and setting its cm:storeName property, content can be moved/copied between stores and permissions managed.
Step 1 is more of configuration & step 2 is more of customizations.
Happy archiving.
Regards.
P.S. Feel free to add any more approaches.

Related

How can I keep changes in the index when I use DIH fullimport?

I'm using Solr 6.5 to index files from multiples ftp files into multiples cores (having one core for each type of document, like audio file, image, software, video and documents).
The situation is that I'm doing this to populate an app that in its front end has a social networking approach in which every user can add new tags or modify other metadata without restriction.
So when I execute again data import handler to add new files to my application, it erase the index that previosly was modified for the user and set up with the data-config default configuration.
My question: is there a way to tell DIH, if the id exists, continues without importing and just adds the files which don't have an id in the index?
If this is not possible, can I do something similar in a different way?
Thanks for everything!
Sounds like you are doing a full import with default settings. One of them is clean, which defaults to true and deletes the whole index before the import.
Try setting it to false and also look at preImportDeleteQuery and postImportDeleteQuery for even more precision.

Regenerate Drools KnowledgeBase. Strore drools rules into database

I develop web application using Drools. All my drools files store into the database. After modifying some rule I must create new KnowledgeBase and add packages which I create from rules. How I can update only those packages in KnowledgeBase that I need, because regenerate all KnowledgeBase very expensive of time; For example I make next step;
User edit rule and push apply button.
After that I do something that:
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add( ResourceFactory.newReaderResource( Reader, getClass() ),ResourceType.DRL );
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
kbase.addKnowledgePackages( kbuilder.getKnowledgePackages() );
I store rule script how text in database and use Reader to add package in KnowledgeBuilder.. I take rule database format from here
http://docs.codehaus.org/display/DROOLS/Loading+and+managing+rules+dynamically+from+a+database
I tried to remove package by name from Knowledge Base and add again but not successful. What I must to do for update my Knowledge Base. I can't create new Knowledge Base every time when user edit and save rule, I must do something actions for update some part of Knowledge Base, let me put it this way.
Please, help.
Did you read about the knowledgeAgent inside the drools documentation? That component contains the logic to merge new changes into an existing knowledge base, as far as I remember.
Cheers
I read what knowledgeAgent work only with changeset.xml configuration and scan resurce which was define in changeset.xml

Difficulty with filename and filemime when using Migrate module

I am using the Drupal 7 Migrate module to create a series of nodes from JPG and EPS files. I can get them to import just fine. But I notice that when I am done importing them if I look at the nodes it creates, none of the attached filefield and thumbnail files contain filename information.
Upon inspecting the file_managed table I see that both the filename and filemime fields are empty for ONLY the files that I attached via the migrate module. This also creates an issue with downloading the files.
Now I think the problem has to do with the fact that I am using "file_link" instead of "file_copy" as the file operation I specify. The problem is I am importing around 2TB (thats Terabytes) of image files. We had to put in a special request with Rackspace just to get access to that much disk space on our server. So I can't go around copying from one directory to the next because of space issues. So "file_link" seems like the obvious choice.
Now you probably want to see how I am doing this exactly, so here is the code snippet:
$jpg_arguments = MigrateFileFieldHandler::arguments(NULL,
'file_link', FILE_EXISTS_RENAME, 'en', array('source_field' => 'jpg_name'),
array('source_field' => 'jpg_filename'), array('source_field' => 'jpg_filename'));
$this->addFieldMapping('field_image', 'jpg_uri')
->arguments($jpg_arguments);
As you can see I am specifying no base path (just like the beer.inc example file does). I have set file_link, the language, and the source fields for the description, title, and alt.
It is able to generate thumbnails from the JPGs. But still missing those columns of data in the db table. I traced through the functions the best I could but I don't see what is causing this. I tried running the uri in the table through the functions that generate the filename and the filemime and they output just fine. It is like something is removing just those segments of data.
Does anyone have any idea what this could be? I am using the Drupal 7 Migrate module version 2.2. It is running on Drupal 7.8.
Thanks,
Patrick
Ok, so I have found the answer to yet another question of mine. This is actually an issue with the migrate module itself. The issue is documented here. I will be repealing this bounty (as soon as I figure out how).

Magento Product Availability -> Cannot find code on configurable products

So I am trying to throw in a little catchy code to the Product Availability section on our Magento product pages to add the the "Availability: In Stock" portion.
If the item is backordered I want to add some additional code. The code is not my problem, I can't find where to put it.
With simple products I simply edit:
template/catalog/product/view/type/simple.phtml
Now one with common sense would presume that a configurable product with children products could be found in
template/catalog/product/view/type/configurable.phtml
But of course with Magento, this would make too much sense. Essentially could someone show me how to edit the availability/price area of the page for a configurable product with children?
Many thanks!
May I recommend that you enable template path hints? Admin > System > Configuration > Developer (all the way at the bottom) > Debug. You'll need to switch out of the default configuration scope to see the template path hints options. Once this is enabled, flush the cache and you should see the files being used when you refresh the catalog product view page.

Sharepoint: automatically create subfolders

I have a question. I hope someone can help me out on this one.
I'm setting up a sharepoint-site for a client of ours. There's a document library ("Customers"), in which every Customer has one folder (=customername) with 4 sub-folders.
The subfolders are always the same ("Technical Information", "Documents", "Security information" & "Hardware").
What I would like to happen is whenever a new folder is created in the library (that is whenever a new customer is entered), the 4 subfolders are automatically created in that new folder.
I wanted to do this in a db-trigger & I found out that for every folder in the library, a record is created in the db-table dbo.AllDocs.
The thing is:
- there are about 63 columns in that table & the purpose off some of them is not clear to me.
- actually this isn't such a great id since writing in the WSS Content db via a script is
anyone got any idea's?
Thanks in advance for feedback!
Its is not recommended (I would say Should not) to touch the SharePoint DB. Always do your customization through the SharePoint UI or the ample number of other options you have with the SharePoint. For your case I would recommend to create a New Event Handler that will be attached to the Doc Lib. When you create a Folder (Top Level Customer) you need to create the respective sub folders. You also make sure that the Event Handler doesn't get trapped in the Recursion while creating the sub folders.
Refer the below links to Event Handler 1 2
I would suggest you to add this functionality in a feature. For example could you add an extra link in the New drop down menu item in the document library toolbar called "New customer".
In the code for this command, create the 4 folders programmatically.
This would mean that you don't have to worry about determine whether you are creating a customer folder or a normal folder in your event handler.

Resources