org.sakaiproject.metaobj.shared.control
Class AbstractStructuredArtifactDefinitionController

java.lang.Object
  extended byorg.sakaiproject.metaobj.utils.mvc.impl.servlet.AbstractFormController
      extended byorg.sakaiproject.metaobj.shared.control.AbstractStructuredArtifactDefinitionController
All Implemented Interfaces:
CancelableController, Controller, FormController
Direct Known Subclasses:
AddStructuredArtifactDefinitionController, ListStructuredArtifactDefinitionsController, PublishStructuredArtifactDefinitionController

public abstract class AbstractStructuredArtifactDefinitionController
extends AbstractFormController


Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Fields inherited from class org.sakaiproject.metaobj.utils.mvc.impl.servlet.AbstractFormController
PARAM_CANCEL
 
Constructor Summary
AbstractStructuredArtifactDefinitionController()
           
 
Method Summary
 void checkPermission(String function)
           
 AuthenticationManager getAuthManager()
           
 AuthorizationFacade getAuthzManager()
           
 HomeFactory getHomeFactory()
           
 IdManager getIdManager()
           
 ListScrollIndexer getListScrollIndexer()
           
 StructuredArtifactDefinitionManager getStructuredArtifactDefinitionManager()
           
 String getToolId()
           
protected  int getTypeIndex(List typesList, String recentId)
           
protected  Map getUserSites()
           
 WorksiteManager getWorksiteManager()
           
protected  Boolean isMaintainer()
           
protected  ModelAndView prepareListView(Map request, String recentId)
           
 void setAuthManager(AuthenticationManager authManager)
           
 void setAuthzManager(AuthorizationFacade authzManager)
           
 void setHomeFactory(HomeFactory homeFactory)
           
 void setIdManager(IdManager idManager)
           
 void setListScrollIndexer(ListScrollIndexer listScrollIndexer)
           
 void setStructuredArtifactDefinitionManager(StructuredArtifactDefinitionManager structuredArtifactDefinitionManager)
           
 void setToolId(String toolId)
           
 void setWorksiteManager(WorksiteManager worksiteManager)
           
 
Methods inherited from class org.sakaiproject.metaobj.utils.mvc.impl.servlet.AbstractFormController
isCancel, processCancel, referenceData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sakaiproject.metaobj.utils.mvc.intf.Controller
handleRequest
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

AbstractStructuredArtifactDefinitionController

public AbstractStructuredArtifactDefinitionController()
Method Detail

checkPermission

public void checkPermission(String function)
                     throws AuthorizationFailedException
Throws:
AuthorizationFailedException

isMaintainer

protected Boolean isMaintainer()

prepareListView

protected ModelAndView prepareListView(Map request,
                                       String recentId)

getTypeIndex

protected int getTypeIndex(List typesList,
                           String recentId)

getUserSites

protected Map getUserSites()
Returns:
collection of site ids user belongs to, as Strings

getAuthManager

public AuthenticationManager getAuthManager()
Returns:
Returns the authManager.

setAuthManager

public void setAuthManager(AuthenticationManager authManager)
Parameters:
authManager - The authManager to set.

getHomeFactory

public HomeFactory getHomeFactory()
Returns:
Returns the homeFactory.

setHomeFactory

public void setHomeFactory(HomeFactory homeFactory)
Parameters:
homeFactory - The homeFactory to set.

getStructuredArtifactDefinitionManager

public StructuredArtifactDefinitionManager getStructuredArtifactDefinitionManager()

setStructuredArtifactDefinitionManager

public void setStructuredArtifactDefinitionManager(StructuredArtifactDefinitionManager structuredArtifactDefinitionManager)

getIdManager

public IdManager getIdManager()
Returns:
Returns the idManager.

setIdManager

public void setIdManager(IdManager idManager)
Parameters:
idManager - The idManager to set.

getAuthzManager

public AuthorizationFacade getAuthzManager()

setAuthzManager

public void setAuthzManager(AuthorizationFacade authzManager)

getWorksiteManager

public WorksiteManager getWorksiteManager()

setWorksiteManager

public void setWorksiteManager(WorksiteManager worksiteManager)

setToolId

public void setToolId(String toolId)

getToolId

public String getToolId()

getListScrollIndexer

public ListScrollIndexer getListScrollIndexer()

setListScrollIndexer

public void setListScrollIndexer(ListScrollIndexer listScrollIndexer)