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 String |
projectCreationDate()
Returns the creation date of the current project
|
static String |
projectCreationDate(String projectName)
Returns the creation date of the given project
|
static String |
projectDescription()
Returns the description of the current project
|
static String |
projectDescription(String projectName)
Returns the description of the given project
|
static String |
projectTitle()
Returns the title of the current project
|
static String |
projectTitle(String projectName)
Returns the title of the given 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 String projectTitle()
public static String projectTitle(String projectName)
projectName
- The project to considerpublic static String projectDescription()
public static String projectDescription(String projectName)
projectName
- The project to considerpublic static String projectCreationDate()
public static String projectCreationDate(String projectName)
projectName
- The project to considerpublic static boolean isResourceFromWorkspace(String resourceId)
resourceId
- the resource idpublic static Node resourceSite(String projectResourceId)
projectResourceId
- The resource id