tinlizard.web
Class TinLizardWeb
java.lang.Object
tinlizard.web.ObjectWeb<TinLizard>
tinlizard.web.TinLizardWeb
public final class TinLizardWeb
- extends ObjectWeb<TinLizard>
Root Object for Stapler.
Misc.
XXX search admin - clear indexes, index some, index all?
XXX security CRUD per object or object group (project+codelines, users, views).
XXX Artifact - get consumers needs to check groupId as well.
XXX bubble up 0001 error in meaningful way to UI.
XXX obtain effective-pom dependencies.
XXX advanced search.
Model
XXX codeline create/lastmodified confusing - for the record in TL or for the actual codeline? maybe "admins" can set both?
XXX project.getCodelineCount(Policy p);
XXX user.getName();
XXX reconsider changelog/scm interface.
TODO: codeline - a depends on b.
TODO: codeline - merge target
TODO: reporting/summary - codeline/merge plan based on codeline merge target and inter-dependencies.
TODO: codeline search - "bachelors" - no one depends on it?
Activities:
TODO: activity log for all events: Activity: EntityType,ID,Action,Actor,TimeStamp,IP.
UI:
XXX: scm connection in codelines.tag
TODO: edit items "in place", instead of having to go to configure screen.
TODO: "logan's run" age of codelines/views on UI. max age? configurable?
TODO: ICONS: http://tango.freedesktop.org/Tango_Desktop_Project
TODO: List out mvn scm:checkout commands to get all projects in view.
TODO: implement HttpDeletable for applicable classes.
Eclipse Integration
TODO: eclipse - plugin to get codeline policy? right-click -> Team -> getCodelinePolicy().
Hudson Integration:
TODO: include sample scripts to show updating TinLizard from Hudson/Redmine, etc.
Method Summary |
void |
applyTemplate(Object it,
String template,
Writer out,
Locale locale,
String username)
|
void |
doAddPolicy(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
|
void |
doAddProject(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
|
void |
doAddView(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
|
void |
doIndexAll(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
|
void |
doLogin(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Let container managed security handle the rest. |
void |
doLogout(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
|
void |
doPreferences(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
|
void |
doSearch(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
|
CodelineCollectionWeb |
getActiveCodelines()
|
CodelineCollectionWeb |
getAllCodelines()
|
PolicyCollectionWeb |
getAllPolicies()
|
ProjectCollectionWeb |
getAllProjects()
|
UserCollectionWeb |
getAllUsers()
|
ViewCollectionWeb |
getAllViews()
|
Date |
getCreated()
|
String |
getCreatedBy()
|
PolicyWeb |
getDefaultPolicy()
|
ViewWeb |
getDefaultView()
|
DependencyWeb |
getDependency(String groupId)
|
static TinLizardWeb |
getInstance()
|
Date |
getLastModified()
|
String |
getLastModifiedBy()
|
String |
getName()
|
PolicyWeb |
getPolicy(String name)
|
ProjectWeb |
getProject(String name)
|
CodelineCollectionWeb |
getRecentlyModified()
|
protected TinLizard |
getSubject()
|
UserWeb |
getUser(String name)
|
String |
getVersion()
|
ViewWeb |
getView(String name)
|
void |
shutdown()
|
void |
startup(String home)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getSubject
protected TinLizard getSubject()
- Specified by:
getSubject
in class ObjectWeb<TinLizard>
getName
public String getName()
- Specified by:
getName
in class ObjectWeb<TinLizard>
getInstance
public static TinLizardWeb getInstance()
getCreated
@Exported
public Date getCreated()
- Specified by:
getCreated
in class ObjectWeb<TinLizard>
getCreatedBy
@Exported
public String getCreatedBy()
- Specified by:
getCreatedBy
in class ObjectWeb<TinLizard>
getLastModified
@Exported
public Date getLastModified()
- Specified by:
getLastModified
in class ObjectWeb<TinLizard>
getLastModifiedBy
@Exported
public String getLastModifiedBy()
- Specified by:
getLastModifiedBy
in class ObjectWeb<TinLizard>
getVersion
@Exported
public String getVersion()
startup
public void startup(String home)
shutdown
public void shutdown()
getAllProjects
public ProjectCollectionWeb getAllProjects()
getProject
public ProjectWeb getProject(String name)
getDefaultView
public ViewWeb getDefaultView()
getAllViews
public ViewCollectionWeb getAllViews()
getView
public ViewWeb getView(String name)
getAllCodelines
public CodelineCollectionWeb getAllCodelines()
getActiveCodelines
public CodelineCollectionWeb getActiveCodelines()
getRecentlyModified
public CodelineCollectionWeb getRecentlyModified()
getAllUsers
public UserCollectionWeb getAllUsers()
getUser
public UserWeb getUser(String name)
doPreferences
@RolesAllowed(value="TINLIZARD_USER")
public void doPreferences(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws Exception
- Throws:
Exception
applyTemplate
public void applyTemplate(Object it,
String template,
Writer out,
Locale locale,
String username)
getDefaultPolicy
public PolicyWeb getDefaultPolicy()
getAllPolicies
public PolicyCollectionWeb getAllPolicies()
getPolicy
public PolicyWeb getPolicy(String name)
getDependency
public DependencyWeb getDependency(String groupId)
doAddProject
@RolesAllowed(value="TINLIZARD_USER")
public void doAddProject(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws Exception
- Throws:
Exception
doAddView
@RolesAllowed(value="TINLIZARD_USER")
public void doAddView(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws Exception
- Throws:
Exception
doAddPolicy
@RolesAllowed(value="TINLIZARD_ADMIN")
public void doAddPolicy(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws Exception
- Throws:
Exception
doLogin
public void doLogin(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws Exception
- Let container managed security handle the rest.
- Throws:
Exception
doLogout
public void doLogout(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws Exception
- Throws:
Exception
doSearch
public void doSearch(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws Exception
- Throws:
Exception
doIndexAll
@RolesAllowed(value="TINLIZARD_USER")
public void doIndexAll(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws Exception
- Throws:
Exception
Copyright © 2009. All Rights Reserved.