public class ProjectXsltHelper extends Object implements Serviceable, Contextualizable, LogEnabled
Modifier and Type | Field and Description |
---|---|
private static Context |
_context |
private static Logger |
_logger |
private static ProjectManager |
_projectManager |
private static SiteManager |
_siteManager |
Constructor and Description |
---|
ProjectXsltHelper() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(Context context) |
void |
enableLogging(Logger logger) |
static boolean |
isResourceFromWorkspace(String resourceId)
True if the resource comes from workspaces
|
static String |
project()
Returns the current project
|
static Node |
resourceSite(String projectResourceId)
Get the site of a project's resource
|
void |
service(ServiceManager manager) |
private static SiteManager _siteManager
private static ProjectManager _projectManager
public ProjectXsltHelper()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public static boolean isResourceFromWorkspace(String resourceId)
resourceId
- the resource idpublic static Node resourceSite(String projectResourceId)
projectResourceId
- The resource id