org.jasig.schedassist.web.owner.relationships
Class AdhocRelationshipsDataController

java.lang.Object
  extended by org.jasig.schedassist.web.owner.relationships.AdhocRelationshipsDataController

@Controller
@RequestMapping(value={"/owner/authorized-visitors.json","/delegate/authorized-visitors.json"})
public class AdhocRelationshipsDataController
extends Object

Provides JSON data for AdhocRelationshipsController.

Version:
$Id: AdhocRelationshipsDataController.java 2050 2010-04-30 16:01:31Z npblair $
Author:
Nicholas Blair, nblair@doit.wisc.edu

Nested Class Summary
static class AdhocRelationshipsDataController.AdhocRelationshipVisitorDataBean
          Java bean to simplify the data in a Relationship to just the fields useful for the enclosing class (JSON controller for adhoc relationships).
 
Constructor Summary
AdhocRelationshipsDataController()
           
 
Method Summary
protected  AdhocRelationshipsDataController.AdhocRelationshipVisitorDataBean convert(Relationship relationship)
           
 String getIdentifyingAttributeName()
           
 RelationshipDao getRelationshipDao()
           
 String getRelationshipsData(org.springframework.ui.ModelMap model)
           
 void setIdentifyingAttributeName(String identifyingAttributeName)
           
 void setRelationshipDao(RelationshipDao relationshipDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdhocRelationshipsDataController

public AdhocRelationshipsDataController()
Method Detail

setRelationshipDao

public void setRelationshipDao(@Qualifier(value="adhoc")
                               RelationshipDao relationshipDao)
Parameters:
relationshipDao - the relationshipDao to set

getRelationshipDao

public RelationshipDao getRelationshipDao()
Returns:
the relationshipDao

setIdentifyingAttributeName

public void setIdentifyingAttributeName(String identifyingAttributeName)
Parameters:
identifyingAttributeName -

getIdentifyingAttributeName

public String getIdentifyingAttributeName()
Returns:
the attribute used to commonly uniquely identify an account

getRelationshipsData

@RequestMapping(method=GET)
public String getRelationshipsData(org.springframework.ui.ModelMap model)
                            throws NotRegisteredException
Parameters:
request -
Returns:
Throws:
NotRegisteredException

convert

protected AdhocRelationshipsDataController.AdhocRelationshipVisitorDataBean convert(Relationship relationship)
Parameters:
relationship -
Returns:


Copyright © 2012 Jasig. All Rights Reserved.