Package org.infoglue.cms.util

Examples of org.infoglue.cms.util.ConstraintExceptionBuffer


  public List<ContentVO> getUpcomingExpiringContents(int numberOfDays, InfoGluePrincipal principal, String[] excludedContentTypes) throws Exception
  {
    List<ContentVO> contentVOList = new ArrayList<ContentVO>();

    Database db = CastorDatabaseService.getDatabase();
        ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();

        beginTransaction(db);

        try
        {
View Full Code Here


  }
 
  public CreateSystemUserAction(SystemUserVO systemUserVO)
  {
    this.systemUserVO = systemUserVO; 
    this.ceb = new ConstraintExceptionBuffer();
  }
View Full Code Here

  }

  public void checkAndAutoCreateContents(Integer siteNodeId, Integer languageId, Integer masterLanguageId, String assetKey, Integer newComponentId, Document document, Integer componentContentId, InfoGluePrincipal principal) throws Exception, SystemException, Bug, ConstraintException
  {
    Database db = CastorDatabaseService.getDatabase();
        ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();

        beginTransaction(db);

        try
        {
View Full Code Here

  }

  public CreateRoleAction(RoleVO RoleVO)
  {
    this.roleVO = RoleVO; 
    this.ceb = new ConstraintExceptionBuffer();
  }
View Full Code Here

  }

  public TransactionHistoryVO getLatestTransactionHistoryVOForEntity(Class entClass, Integer entityId) throws SystemException
  {
    Database db = CastorDatabaseService.getDatabase();
    ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();
    TransactionHistoryVO transactionHistoryVO = null;
    beginTransaction(db);

    try
    {
View Full Code Here

  public List getLatestTransactionHistoryVOListForEntity(Class entClass, Integer entityId, List transactionType, Date startDateTime, Date endDateTime, int rowLimit) throws SystemException
  {
    List resultList = new ArrayList();

    Database db = CastorDatabaseService.getDatabase();
    ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();
    TransactionHistoryVO transactionHistoryVO = null;
    beginTransaction(db);

    try
    {
View Full Code Here

  }

    public TransactionHistoryVO update(TransactionHistoryVO transactionHistoryVO) throws ConstraintException, SystemException
    {
        Database db = CastorDatabaseService.getDatabase();
        ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();

        TransactionHistory transactionHistory = null;

        beginTransaction(db);

        try
        {
            //add validation here if needed
            transactionHistory = getTransactionHistoryWithId(transactionHistoryVO.getTransactionHistoryId(), db);
            transactionHistory.setValueObject(transactionHistoryVO);

            //If any of the validations or setMethods reported an error, we throw them up now before create.
            ceb.throwIfNotEmpty();
           
            commitTransaction(db);
        }
        catch(ConstraintException ce)
        {
View Full Code Here

 
  public SiteNodeVO create(Integer parentSiteNodeId, Integer siteNodeTypeDefinitionId, InfoGluePrincipal infoGluePrincipal, Integer repositoryId, SiteNodeVO siteNodeVO) throws ConstraintException, SystemException
  {
    Database db = CastorDatabaseService.getDatabase();
    ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();

    SiteNode siteNode = null;

    beginTransaction(db);

    try
    {
      //Here you might want to add some validate functonality?
      siteNode = create(db, parentSiteNodeId, siteNodeTypeDefinitionId, infoGluePrincipal, repositoryId, siteNodeVO);
            
      //If any of the validations or setMethods reported an error, we throw them up now before create.
      ceb.throwIfNotEmpty();
           
      commitTransaction(db);
    }
    catch(ConstraintException ce)
    {
View Full Code Here

   */
 
    public static SiteNodeVO getParentSiteNode(Integer siteNodeId) throws SystemException, Bug
    {
      Database db = CastorDatabaseService.getDatabase();
        ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();
    SiteNodeVO parentSiteNodeVO = null;
   
        beginTransaction(db);

        try
View Full Code Here

   */
    
  public List getSiteNodeChildrenVOList(Integer parentSiteNodeId) throws ConstraintException, SystemException
  {
    Database db = CastorDatabaseService.getDatabase();
    ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();

    List childrenVOList = null;

    beginTransaction(db);

    try
    {
      /*
      SiteNode siteNode = getSiteNodeWithId(parentSiteNodeId, db);
      Collection children = siteNode.getChildSiteNodes();
      childrenVOList = SiteNodeController.toVOList(children);
          */
      childrenVOList = getSiteNodeChildrenVOList(parentSiteNodeId, db);
       
      //If any of the validations or setMethods reported an error, we throw them up now before create.
      ceb.throwIfNotEmpty();
           
      commitTransaction(db);
    }
    catch(ConstraintException ce)
    {
View Full Code Here

TOP

Related Classes of org.infoglue.cms.util.ConstraintExceptionBuffer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.