| org.theospi.portfolio.review.impl.ReviewManagerImpl
ReviewManagerImpl | public class ReviewManagerImpl extends HibernateDaoSupport implements ReviewManager(Code) | | |
Method Summary | |
protected String | buildRef(String siteId, String contextId, ContentResource resource, String producer) | public Review | createNew(String description, String siteId) This creates a new review with a generated id. | public void | deleteReview(Review review) | public AgentManager | getAgentManager() | public AuthorizationFacade | getAuthorizationFacade() | public ContentHostingService | getContentHosting() | public EntityManager | getEntityManager() | public IdManager | getIdManager() | protected Node | getNode(Id artifactId, String parentId, String siteId, String producer) | protected Node | getNode(Id artifactId) pushes the artifact into the security advisor. | public Node | getNode(Reference ref) | public Review | getReview(Id reviewId) | public Review | getReview(String id) | public List | getReviews() | public List | getReviewsByParent(String parentId) | public List | getReviewsByParent(String parentId, String siteId, String producer) | protected List | getReviewsByParent(String query, Object[] params, String parentId, String siteId, String producer) the top function for getting the reviews. | public List | getReviewsByParentAndType(String parentId, int type, String siteId, String producer) | public SecurityService | getSecurityService() | public List | listReviews(String siteId) | public Review | saveReview(Review review) | public void | setAgentManager(AgentManager agentManager) | public void | setAuthorizationFacade(AuthorizationFacade authorizationFacade) | public void | setContentHosting(ContentHostingService contentHosting) | public void | setEntityManager(EntityManager entityManager) | public void | setIdManager(IdManager idManager) | public void | setSecurityService(SecurityService securityService) |
createNew | public Review createNew(String description, String siteId)(Code) | | This creates a new review with a generated id. it also flags the review as being a new object
Parameters: String - description Parameters: String - siteId Review |
getNode | protected Node getNode(Id artifactId)(Code) | | pushes the artifact into the security advisor. It then gets the resource, properties, and owner
and places these into a Node.
Parameters: artifactId - Id Node throws: RuntimeException - on PermissionException, IdUnusedException, and TypeException |
getReviewsByParent | protected List getReviewsByParent(String query, Object[] params, String parentId, String siteId, String producer)(Code) | | the top function for getting the reviews. This pushes these review content
into the security advisor.
Parameters: query - Parameters: params - Parameters: parentId - Parameters: siteId - Parameters: producer - List of Review classes |
setAgentManager | public void setAgentManager(AgentManager agentManager)(Code) | | Parameters: agentManager - The agentManager to set. |
setAuthorizationFacade | public void setAuthorizationFacade(AuthorizationFacade authorizationFacade)(Code) | | Parameters: authorizationFacade - The authorizationFacade to set. |
setContentHosting | public void setContentHosting(ContentHostingService contentHosting)(Code) | | Parameters: contentHosting - The contentHosting to set. |
setEntityManager | public void setEntityManager(EntityManager entityManager)(Code) | | Parameters: entityManager - The entityManager to set. |
setIdManager | public void setIdManager(IdManager idManager)(Code) | | Parameters: idManager - The idManager to set. |
setSecurityService | public void setSecurityService(SecurityService securityService)(Code) | | Parameters: securityService - The securityService to set. |
|
|