mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user