org.openl.rules.repository
Interface RCommonProject

All Known Subinterfaces:
RDeploymentDescriptorProject, RProject

public interface RCommonProject


Method Summary
 void commit(CommonUser user)
          Commits changes in background versioned storage.
 void delete(CommonUser user)
          Marks the project for deletion.
 void erase(CommonUser user)
          Erases the project from the repository completely.
 RLock getLock()
           
 String getName()
          Gets name of the project.
 boolean isLocked()
           
 boolean isMarked4Deletion()
          Returns whether the project is marked for deletion.
 void lock(CommonUser user)
           
 void riseVersion(int major, int minor)
           
 void undelete(CommonUser user)
          Unmarks the project from deletion.
 void unlock(CommonUser user)
           
 

Method Detail

commit

void commit(CommonUser user)
            throws RRepositoryException
Commits changes in background versioned storage.

Throws:
RRepositoryException - if failed

delete

void delete(CommonUser user)
            throws RRepositoryException
Marks the project for deletion. Project is too important to be deleted so easily.

Throws:
RDeleteException - if failed
RRepositoryException

erase

void erase(CommonUser user)
           throws RRepositoryException
Erases the project from the repository completely. Before erasing the project must be marked for deletion. I.e. #delete() should be invoked. Otherwise this method will throw exception.

Throws:
RDeleteException - if failed
RRepositoryException

getLock

RLock getLock()
              throws RRepositoryException
Throws:
RRepositoryException

getName

String getName()
Gets name of the project.

Returns:
project's name

isLocked

boolean isLocked()
                 throws RRepositoryException
Throws:
RRepositoryException

isMarked4Deletion

boolean isMarked4Deletion()
                          throws RRepositoryException
Returns whether the project is marked for deletion. If a project is marked for deletion, it should not be used.

Returns:
true if project is marked for deletion; false otherwise
Throws:
RRepositoryException

lock

void lock(CommonUser user)
          throws RRepositoryException
Throws:
RRepositoryException

riseVersion

void riseVersion(int major,
                 int minor)
                 throws RRepositoryException
Throws:
RRepositoryException

undelete

void undelete(CommonUser user)
              throws RRepositoryException
Unmarks the project from deletion.

Throws:
RModifyException - if failed
RRepositoryException

unlock

void unlock(CommonUser user)
            throws RRepositoryException
Throws:
RRepositoryException


Copyright © 2010. All Rights Reserved.