com.hack23.cia.service.impl.commondao.api
Interface ResourceDAO

Package class diagram package ResourceDAO
All Superinterfaces:
GenericDAO<Resource,Long>
All Known Implementing Classes:
ResourceDAOImpl

public interface ResourceDAO
extends GenericDAO<Resource,Long>

The Interface ResourceDAO.


Method Summary
Modifier and Type Method and Description
 void deleteImageContentByFileName(String fileName)
          Delete image content by file name.
 AgentOperation findOrCreateAgentOperation(String agentName, String agentOperativeCode, AgentOperation.AgentOperationType agentOperationType)
          Find or create agent operation.
 List<AgentOperation> getAllAgentOperations()
          Gets the all agent operations.
 BinaryContent getImageContentByFileName(String string)
          Gets the image content by file name.
 AgentOperation loadAgentOperation(Long id)
          Load agent operation.
 
Methods inherited from interface com.hack23.cia.service.impl.commondao.api.GenericDAO
delete, getAll, loadById, save
 

Method Detail

deleteImageContentByFileName

void deleteImageContentByFileName(String fileName)
Delete image content by file name.

Parameters:
fileName - the file name

getAllAgentOperations

@Transactional(readOnly=true)
List<AgentOperation> getAllAgentOperations()
Gets the all agent operations.

Returns:
the all agent operations

getImageContentByFileName

@Transactional(readOnly=true)
BinaryContent getImageContentByFileName(String string)
Gets the image content by file name.

Parameters:
string - the string
Returns:
the image content by file name

loadAgentOperation

@Transactional(readOnly=true)
AgentOperation loadAgentOperation(Long id)
Load agent operation.

Parameters:
id - the id
Returns:
the agent operation

findOrCreateAgentOperation

AgentOperation findOrCreateAgentOperation(String agentName,
                                          String agentOperativeCode,
                                          AgentOperation.AgentOperationType agentOperationType)
Find or create agent operation.

Parameters:
agentName - the agent name
agentOperativeCode - the agent operative code
agentOperationType - the agent operation type
Returns:
the agent operation


Copyright © 2008-2010 www.hack23.com. All Rights Reserved.