mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added the opacity bit to layered directories, and a method to set it. The opacity
status is returned in AVMNodeDescriptors now. Basic test added. Also restored a bunch of commented out checks in a number of tests. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3257 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -868,6 +868,20 @@ class SuperRepository
|
||||
return history;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the opacity of a layered directory. An opaque directory hides
|
||||
* the things it points to via indirection.
|
||||
* @param path The path to the layered directory.
|
||||
* @param opacity True is opaque; false is not.
|
||||
*/
|
||||
public void setOpacity(String path, boolean opacity)
|
||||
{
|
||||
fLookupCount.set(1);
|
||||
String[] pathParts = SplitPath(path);
|
||||
Repository rep = getRepositoryByName(pathParts[0], true);
|
||||
rep.setOpacity(pathParts[1], opacity);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the RepositoryDescriptor for a Repository.
|
||||
* @param name The name of the Repository.
|
||||
|
Reference in New Issue
Block a user