edu.internet2.middleware.ldappc.spml.provider
Class LdapTargetProvider

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.config.BaseService
      extended by edu.internet2.middleware.shibboleth.common.config.BaseReloadableService
          extended by edu.internet2.middleware.ldappc.spml.provider.BaseSpmlProvider
              extended by edu.internet2.middleware.ldappc.spml.provider.BaseSpmlTargetProvider
                  extended by edu.internet2.middleware.ldappc.spml.provider.LdapTargetProvider
All Implemented Interfaces:
SpmlProvider, SpmlTargetProvider, edu.internet2.middleware.shibboleth.common.service.ReloadableService, edu.internet2.middleware.shibboleth.common.service.Service, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware

public class LdapTargetProvider
extends BaseSpmlTargetProvider


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.internet2.middleware.shibboleth.common.config.BaseReloadableService
edu.internet2.middleware.shibboleth.common.config.BaseReloadableService.ConfigurationResourceListener
 
Field Summary
 
Fields inherited from class edu.internet2.middleware.ldappc.spml.provider.BaseSpmlProvider
methodName
 
Constructor Summary
LdapTargetProvider()
           
 
Method Summary
 org.openspml.v2.msg.spml.AddResponse execute(org.openspml.v2.msg.spml.AddRequest addRequest)
           
 org.openspml.v2.msg.spml.DeleteResponse execute(org.openspml.v2.msg.spml.DeleteRequest deleteRequest)
           
 org.openspml.v2.msg.spml.LookupResponse execute(org.openspml.v2.msg.spml.LookupRequest lookupRequest)
           
 org.openspml.v2.msg.spml.ModifyResponse execute(org.openspml.v2.msg.spml.ModifyRequest modifyRequest)
           
 org.openspml.v2.msg.spmlsearch.SearchResponse execute(org.openspml.v2.msg.spmlsearch.SearchRequest searchRequest)
           
protected  org.openspml.v2.profiles.dsml.DSMLAttr getDsmlAttr(String name, Collection<String> values)
           
protected  List<ModificationItem> getDsmlMods(org.openspml.v2.msg.spml.Modification modification)
           
 edu.vt.middleware.ldap.pool.LdapPool<edu.vt.middleware.ldap.Ldap> getLdapPool()
           
 String getLdapPoolId()
           
protected  org.openspml.v2.msg.spml.PSO getPSO(edu.vt.middleware.ldap.bean.LdapEntry entry, org.openspml.v2.msg.spml.ReturnData returnData)
           
protected  PSODefinition getPSODefinition(edu.vt.middleware.ldap.bean.LdapEntry entry)
          Determine the schema entity appropriate for the given LdapEntry.
protected  List<ModificationItem> getReferenceMods(org.openspml.v2.msg.spml.Modification modification)
           
protected  List<org.openspml.v2.msg.spmlref.Reference> getReferences(String name, Collection<String> values)
           
protected  void handleEmptyReferences(org.openspml.v2.msg.spml.AddRequest addRequest)
           
 boolean isLogLdif()
           
 boolean isLogSpml()
           
 boolean isValidTargetId(org.openspml.v2.msg.spml.PSOIdentifier psoID, org.openspml.v2.msg.spml.Response response)
           
protected  void onNewContextCreated(org.springframework.context.ApplicationContext newServiceContext)
           
 void setLdapPoolId(String ldapPoolId)
           
 void setLogLdif(boolean logLdif)
           
 void setLogSpml(boolean logSpml)
           
 
Methods inherited from class edu.internet2.middleware.ldappc.spml.provider.BaseSpmlTargetProvider
getPSP, getTargetDefinition, setPSP, setTargetDefinition
 
Methods inherited from class edu.internet2.middleware.ldappc.spml.provider.BaseSpmlProvider
execute, fail, fail, generateRequestID, getId, getOrGenerateRequestID, getXMLMarshaller, getXmlUnmarshaller, setId, setXMLMarshaller, setXmlUnmarshaller, toXML
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.BaseReloadableService
destroy, getPollingFrequency, getPollingRetryAttempts, getPollingTimer, initialize, reload, setPollingFrequency, setPollingRetryAttempts, setPollingTimer
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.BaseService
getApplicationContext, getReadWriteLock, getServiceConfigurations, getServiceContext, isDestroyed, isInitialized, loadContext, setApplicationContext, setBeanName, setInitialized, setServiceConfigurations, setServiceContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.internet2.middleware.ldappc.spml.provider.SpmlProvider
execute
 
Methods inherited from interface edu.internet2.middleware.shibboleth.common.service.Service
isDestroyed, isInitialized
 

Constructor Detail

LdapTargetProvider

public LdapTargetProvider()
Method Detail

getLdapPoolId

public String getLdapPoolId()

setLdapPoolId

public void setLdapPoolId(String ldapPoolId)

getLdapPool

public edu.vt.middleware.ldap.pool.LdapPool<edu.vt.middleware.ldap.Ldap> getLdapPool()

isLogLdif

public boolean isLogLdif()
Returns:
Returns the logLdif.

setLogLdif

public void setLogLdif(boolean logLdif)
Parameters:
logLdif - The logLdif to set.

isLogSpml

public boolean isLogSpml()
Returns:
Returns the logSpml.

setLogSpml

public void setLogSpml(boolean logSpml)
Parameters:
logSpml - The logSpml to set.

onNewContextCreated

protected void onNewContextCreated(org.springframework.context.ApplicationContext newServiceContext)
                            throws edu.internet2.middleware.shibboleth.common.service.ServiceException
Specified by:
onNewContextCreated in class edu.internet2.middleware.shibboleth.common.config.BaseService
Throws:
edu.internet2.middleware.shibboleth.common.service.ServiceException

execute

public org.openspml.v2.msg.spml.AddResponse execute(org.openspml.v2.msg.spml.AddRequest addRequest)

execute

public org.openspml.v2.msg.spml.DeleteResponse execute(org.openspml.v2.msg.spml.DeleteRequest deleteRequest)

execute

public org.openspml.v2.msg.spml.LookupResponse execute(org.openspml.v2.msg.spml.LookupRequest lookupRequest)

execute

public org.openspml.v2.msg.spml.ModifyResponse execute(org.openspml.v2.msg.spml.ModifyRequest modifyRequest)

execute

public org.openspml.v2.msg.spmlsearch.SearchResponse execute(org.openspml.v2.msg.spmlsearch.SearchRequest searchRequest)

getPSO

protected org.openspml.v2.msg.spml.PSO getPSO(edu.vt.middleware.ldap.bean.LdapEntry entry,
                                              org.openspml.v2.msg.spml.ReturnData returnData)
                                       throws org.openspml.v2.util.Spml2Exception
Throws:
org.openspml.v2.util.Spml2Exception

getPSODefinition

protected PSODefinition getPSODefinition(edu.vt.middleware.ldap.bean.LdapEntry entry)
                                  throws LdappcException
Determine the schema entity appropriate for the given LdapEntry.

Parameters:
entry - the LdapEntry
Returns:
the PSODefintion
Throws:
LdappcException - if the schema entity cannot be determined.

getDsmlAttr

protected org.openspml.v2.profiles.dsml.DSMLAttr getDsmlAttr(String name,
                                                             Collection<String> values)
                                                      throws org.openspml.v2.profiles.dsml.DSMLProfileException
Throws:
org.openspml.v2.profiles.dsml.DSMLProfileException

getReferences

protected List<org.openspml.v2.msg.spmlref.Reference> getReferences(String name,
                                                                    Collection<String> values)
                                                             throws org.openspml.v2.util.Spml2Exception
Throws:
org.openspml.v2.util.Spml2Exception

getDsmlMods

protected List<ModificationItem> getDsmlMods(org.openspml.v2.msg.spml.Modification modification)

getReferenceMods

protected List<ModificationItem> getReferenceMods(org.openspml.v2.msg.spml.Modification modification)

handleEmptyReferences

protected void handleEmptyReferences(org.openspml.v2.msg.spml.AddRequest addRequest)
                              throws org.openspml.v2.profiles.dsml.DSMLProfileException
Parameters:
addRequest -
Throws:
org.openspml.v2.profiles.dsml.DSMLProfileException

isValidTargetId

public boolean isValidTargetId(org.openspml.v2.msg.spml.PSOIdentifier psoID,
                               org.openspml.v2.msg.spml.Response response)


Copyright © 2012 Internet2. All Rights Reserved.