net.sourceforge.sconman.tools
Class ProjectHelper

java.lang.Object
  extended by net.sourceforge.sconman.tools.ProjectHelper

public class ProjectHelper
extends java.lang.Object

Helper methods

Author:
mikeshadow

Constructor Summary
ProjectHelper()
           
 
Method Summary
static void addVisibilityDaysToAllContents(User actor, Project prj, int days)
          Add visibility days to all the contents in the project
static void updateAuthorId(User actor, Project prj, java.lang.String defaultLogin)
          This method sets author to all the contents which author is out of synchronization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectHelper

public ProjectHelper()
Method Detail

addVisibilityDaysToAllContents

public static void addVisibilityDaysToAllContents(User actor,
                                                  Project prj,
                                                  int days)
                                           throws SCMStorageException,
                                                  SCMSecurityException
Add visibility days to all the contents in the project

Parameters:
actor - The user that performs the action
prj - El context project
days - The amount of days that should be added to each content's current life
Throws:
SCMStorageException
SCMSecurityException

updateAuthorId

public static void updateAuthorId(User actor,
                                  Project prj,
                                  java.lang.String defaultLogin)
                           throws SCMStorageException
This method sets author to all the contents which author is out of synchronization

Parameters:
actor - The user that performs the action
prj - context project
defaultLogin - The user login to set to the contents with invalid author
Throws:
SCMStorageException
SCMSecurityException


Copyright null null. All Rights Reserved.