| java.lang.Object migration.RepositoryUpgrader
RepositoryUpgrader | public class RepositoryUpgrader (Code) | | "/files" is the base of the repository.
Resources doesn't have a base.
"/files/users/*" => "/user/*"
"/files/worksites/*" => "/group/*"
respository worksites are ids without dashes and resources worksites have dashes
how is that being converted from 1.5=>2.1 in sakai?
When deleting a folder, it doesn't actually remove the record. It just adds 2000 years to the modification date.
This is how we can retain all the info and add our "processed" tag without changing the database.
author: andersjb |
getChildren | protected List getChildren(ReFolder parentFolder) throws SQLException(Code) | | This should be ordered by uri, always. the folder always comes first
Parameters: parentId - String of the parent folder structure id List of class Folder throws: SQLException - |
upgrade | public void upgrade()(Code) | | This moves the files from repository to resources. The process is interruptible.
This method builds the tree structure
|
upgradeEntityPaths | protected void upgradeEntityPaths(List folders)(Code) | | strips "/files", transitions "/users" => "/user"
Parameters: folders - |
|
|