Implementation of site getContainer(), hasContainer()

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9267 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2008-05-27 15:20:36 +00:00
parent 9116330a10
commit 95a622444e
7 changed files with 243 additions and 10 deletions

View File

@@ -3,6 +3,8 @@ package org.alfresco.repo.site;
import java.util.List;
import java.util.Map;
import org.alfresco.service.cmr.repository.NodeRef;
/**
* Site service fundamental API.
* <p>
@@ -105,6 +107,23 @@ public interface SiteService
void removeMembership(String shortName, String userName);
/**
* Gets (or creates, if it doesn't exist) the "container" folder for the specified
* component.
*
* @param shortName short name of site
* @param componentId component id
* @return noderef of folder container
*/
NodeRef getContainer(String shortName, String componentId);
/**
* Determines if a "container" folder for the specified component exists.
*
* @param shortName short name of site
* @param componentId component id
* @return true => "container" folder exists for component
*/
boolean hasContainer(String shortName, String componentId);
}