org.broadleafcommerce.openadmin.server.service.handler
Class CustomPersistenceHandlerAdapter

java.lang.Object
  extended by org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
All Implemented Interfaces:
CustomPersistenceHandler
Direct Known Subclasses:
AdminPermissionCustomPersistenceHandler, AdminRoleCustomPersistenceHandler, AdminUserCustomPersistenceHandler

public class CustomPersistenceHandlerAdapter
extends Object
implements CustomPersistenceHandler

Author:
Jeff Fischer

Constructor Summary
CustomPersistenceHandlerAdapter()
           
 
Method Summary
 Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper)
           
 Boolean canHandleAdd(PersistencePackage persistencePackage)
          Is this persistence handler capable of dealing with an add request from the admin
 Boolean canHandleFetch(PersistencePackage persistencePackage)
          Is this persistence handler capable of dealing with an fetch request from the admin
 Boolean canHandleInspect(PersistencePackage persistencePackage)
          Is this persistence handler capable of dealing with an inspect request from the admin
 Boolean canHandleRemove(PersistencePackage persistencePackage)
          Is this persistence handler capable of dealing with a remove request from the admin
 Boolean canHandleUpdate(PersistencePackage persistencePackage)
          Is this persistence handler capable of dealing with an update request from the admin
 DynamicResultSet fetch(PersistencePackage persistencePackage, com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper)
           
 DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper)
           
 void remove(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper)
           
 Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper)
           
 Boolean willHandleSecurity(PersistencePackage persistencePackage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomPersistenceHandlerAdapter

public CustomPersistenceHandlerAdapter()
Method Detail

canHandleInspect

public Boolean canHandleInspect(PersistencePackage persistencePackage)
Description copied from interface: CustomPersistenceHandler
Is this persistence handler capable of dealing with an inspect request from the admin

Specified by:
canHandleInspect in interface CustomPersistenceHandler
Parameters:
persistencePackage - details about the inspect operation
Returns:
whether or not this handler supports inspects

canHandleFetch

public Boolean canHandleFetch(PersistencePackage persistencePackage)
Description copied from interface: CustomPersistenceHandler
Is this persistence handler capable of dealing with an fetch request from the admin

Specified by:
canHandleFetch in interface CustomPersistenceHandler
Parameters:
persistencePackage - details about the fetch operation
Returns:
whether or not this handler supports fetches

canHandleAdd

public Boolean canHandleAdd(PersistencePackage persistencePackage)
Description copied from interface: CustomPersistenceHandler
Is this persistence handler capable of dealing with an add request from the admin

Specified by:
canHandleAdd in interface CustomPersistenceHandler
Parameters:
persistencePackage - details about the add operation
Returns:
whether or not this handler supports adds

canHandleRemove

public Boolean canHandleRemove(PersistencePackage persistencePackage)
Description copied from interface: CustomPersistenceHandler
Is this persistence handler capable of dealing with a remove request from the admin

Specified by:
canHandleRemove in interface CustomPersistenceHandler
Parameters:
persistencePackage - details about the remove operation
Returns:
whether or not this handler supports remove

canHandleUpdate

public Boolean canHandleUpdate(PersistencePackage persistencePackage)
Description copied from interface: CustomPersistenceHandler
Is this persistence handler capable of dealing with an update request from the admin

Specified by:
canHandleUpdate in interface CustomPersistenceHandler
Parameters:
persistencePackage - details about the update operation
Returns:
whether or not this handler supports updatess

inspect

public DynamicResultSet inspect(PersistencePackage persistencePackage,
                                DynamicEntityDao dynamicEntityDao,
                                InspectHelper helper)
                         throws ServiceException
Specified by:
inspect in interface CustomPersistenceHandler
Throws:
ServiceException

fetch

public DynamicResultSet fetch(PersistencePackage persistencePackage,
                              com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto,
                              DynamicEntityDao dynamicEntityDao,
                              RecordHelper helper)
                       throws ServiceException
Specified by:
fetch in interface CustomPersistenceHandler
Throws:
ServiceException

add

public Entity add(PersistencePackage persistencePackage,
                  DynamicEntityDao dynamicEntityDao,
                  RecordHelper helper)
           throws ServiceException
Specified by:
add in interface CustomPersistenceHandler
Throws:
ServiceException

remove

public void remove(PersistencePackage persistencePackage,
                   DynamicEntityDao dynamicEntityDao,
                   RecordHelper helper)
            throws ServiceException
Specified by:
remove in interface CustomPersistenceHandler
Throws:
ServiceException

update

public Entity update(PersistencePackage persistencePackage,
                     DynamicEntityDao dynamicEntityDao,
                     RecordHelper helper)
              throws ServiceException
Specified by:
update in interface CustomPersistenceHandler
Throws:
ServiceException

willHandleSecurity

public Boolean willHandleSecurity(PersistencePackage persistencePackage)
Specified by:
willHandleSecurity in interface CustomPersistenceHandler


Copyright © 2013. All Rights Reserved.