cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS API for WCM

jayesh_prajapat
Star Contributor
Star Contributor
Hi All,

Can anybody help me out with CIFS API :?:  I am trying to change modified date of content in CIFS for AVM store content, but when I change date in CIFS using API, it also reflects in repository. I am using below class to change the date and time for modified data.
org.alfresco.filesys.repo.CifsHelper.java
Does anybody know how can I prevent CIFS API to make change in repository when I make change CIFS?

You help will be highly appreciated. Thanks in advance.
1 ACCEPTED ANSWER

pmonks
Star Contributor
Star Contributor
Jayesh, the repository only stores a single "modified date" property (for both DM and AVM hosted content), so it doesn't matter whether you're viewing a content item via CIFS, FTP or any of the UIs, you should see the same value in all cases.  Similarly, if you modify that date via one of these mechanisms, it will update all of the others as well, not because they each store their own modification date, but because they're all looking at the exact same underlying repository.

Now that said, Alfresco actually doesn't allow creation or modification dates to be manipulated directly, since that has some rather nasty implications for auditing and records management.  There are a number of JIRA issues raised on this topic [1], [2], [3], specifically ENH-427.  I would encourage you to vote and/or comment on that issue if you feel strongly about it.

Cheers,
Peter

[1] https://issues.alfresco.com/jira/browse/ENH-312
[2] https://issues.alfresco.com/jira/browse/ENH-427
[3] https://issues.alfresco.com/jira/browse/ETHREEOH-2224

View answer in original post

1 REPLY 1

pmonks
Star Contributor
Star Contributor
Jayesh, the repository only stores a single "modified date" property (for both DM and AVM hosted content), so it doesn't matter whether you're viewing a content item via CIFS, FTP or any of the UIs, you should see the same value in all cases.  Similarly, if you modify that date via one of these mechanisms, it will update all of the others as well, not because they each store their own modification date, but because they're all looking at the exact same underlying repository.

Now that said, Alfresco actually doesn't allow creation or modification dates to be manipulated directly, since that has some rather nasty implications for auditing and records management.  There are a number of JIRA issues raised on this topic [1], [2], [3], specifically ENH-427.  I would encourage you to vote and/or comment on that issue if you feel strongly about it.

Cheers,
Peter

[1] https://issues.alfresco.com/jira/browse/ENH-312
[2] https://issues.alfresco.com/jira/browse/ENH-427
[3] https://issues.alfresco.com/jira/browse/ETHREEOH-2224