|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.portlets.swapper.AttributeSwapperHelperImpl
public class AttributeSwapperHelperImpl
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Fields inherited from interface org.jasig.portal.portlets.swapper.IAttributeSwapperHelper |
|---|
ATTRIBUTE_SWAPPER_ATTRIBUTES_FORM_SWAPPABLE_ATTRIBUTES, ATTRIBUTE_SWAPPER_ATTRIBUTES_FORM_SWAPPABLE_ATTRIBUTES_EXCLUDES |
| Constructor Summary | |
|---|---|
AttributeSwapperHelperImpl()
|
|
| Method Summary | |
|---|---|
protected void |
copyAttributes(Map<String,Object> destination,
Map<String,Attribute> source)
|
org.jasig.services.persondir.IPersonAttributes |
getOriginalUserAttributes(String uid)
Get the base attributes for a person, this bypasses the overwriting dao. |
OverwritingPersonAttributeDao |
getPersonAttributeDao()
|
IPersonManager |
getPersonManager()
|
IPortalRequestUtils |
getPortalRequestUtils()
|
Set<String> |
getSwappableAttributes(org.springframework.webflow.context.ExternalContext externalContext)
Gets the Set of attribtues to allow the user to swap values for. |
void |
populateSwapRequest(org.springframework.webflow.context.ExternalContext externalContext,
AttributeSwapRequest attributeSwapRequest)
Initialize the command object used for the swapper form. |
void |
resetAttributes(org.springframework.webflow.context.ExternalContext externalContext)
Removes the swapped attributes for the specified user |
void |
setPersonAttributeDao(OverwritingPersonAttributeDao personAttributeDao)
The OverwritingPersonAttributeDao instance to use to override attributes |
void |
setPersonManager(IPersonManager personManager)
The IPersonManager to use to access the current IPerson |
void |
setPortalRequestUtils(IPortalRequestUtils portalRequestUtils)
Utility class to access the original portal request |
void |
swapAttributes(org.springframework.webflow.context.ExternalContext externalContext,
AttributeSwapRequest attributeSwapRequest)
Perform the attribute swap request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public AttributeSwapperHelperImpl()
| Method Detail |
|---|
public OverwritingPersonAttributeDao getPersonAttributeDao()
public void setPersonAttributeDao(OverwritingPersonAttributeDao personAttributeDao)
OverwritingPersonAttributeDao instance to use to override attributes
public IPersonManager getPersonManager()
public void setPersonManager(IPersonManager personManager)
IPersonManager to use to access the current IPerson
public IPortalRequestUtils getPortalRequestUtils()
public void setPortalRequestUtils(IPortalRequestUtils portalRequestUtils)
public Set<String> getSwappableAttributes(org.springframework.webflow.context.ExternalContext externalContext)
IAttributeSwapperHelper
getSwappableAttributes in interface IAttributeSwapperHelperexternalContext - The ExternalContext to get the flows's configuration from
public org.jasig.services.persondir.IPersonAttributes getOriginalUserAttributes(String uid)
IAttributeSwapperHelper
getOriginalUserAttributes in interface IAttributeSwapperHelperuid - The user name of the user to get the attributes for.
public void populateSwapRequest(org.springframework.webflow.context.ExternalContext externalContext,
AttributeSwapRequest attributeSwapRequest)
IAttributeSwapperHelper
populateSwapRequest in interface IAttributeSwapperHelperexternalContext - The ExternalContext to get the flows's configuration fromattributeSwapRequest - The command object to initialize
public void swapAttributes(org.springframework.webflow.context.ExternalContext externalContext,
AttributeSwapRequest attributeSwapRequest)
IAttributeSwapperHelper
swapAttributes in interface IAttributeSwapperHelperexternalContext - The ExternalContext to get the current user fromattributeSwapRequest - The swap request with the new attributespublic void resetAttributes(org.springframework.webflow.context.ExternalContext externalContext)
IAttributeSwapperHelper
resetAttributes in interface IAttributeSwapperHelperexternalContext - The ExternalContext to get the current user from
protected void copyAttributes(Map<String,Object> destination,
Map<String,Attribute> source)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||