Liferay 7.0-ga1 portal-impl

com.liferay.portal.repository.capabilities
Class MinimalWorkflowCapability

java.lang.Object
  extended by com.liferay.portal.repository.capabilities.MinimalWorkflowCapability
All Implemented Interfaces:
com.liferay.portal.kernel.repository.capabilities.Capability, com.liferay.portal.kernel.repository.capabilities.WorkflowCapability, WorkflowSupport, RepositoryWrapperAware

public class MinimalWorkflowCapability
extends Object
implements RepositoryWrapperAware, com.liferay.portal.kernel.repository.capabilities.WorkflowCapability, WorkflowSupport


Constructor Summary
MinimalWorkflowCapability(DLFileEntryServiceAdapter dlFileEntryServiceAdapter)
           
 
Method Summary
 void addFileEntry(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 void checkInFileEntry(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, boolean majorVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
protected  void doUpdateStatus(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 int getStatus(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
           
 void revertFileEntry(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 void updateFileEntry(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, boolean majorVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 com.liferay.portal.kernel.repository.LocalRepository wrapLocalRepository(com.liferay.portal.kernel.repository.LocalRepository localRepository)
           
 com.liferay.portal.kernel.repository.Repository wrapRepository(com.liferay.portal.kernel.repository.Repository repository)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinimalWorkflowCapability

public MinimalWorkflowCapability(DLFileEntryServiceAdapter dlFileEntryServiceAdapter)
Method Detail

addFileEntry

public void addFileEntry(long userId,
                         com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
                         com.liferay.portal.kernel.service.ServiceContext serviceContext)
                  throws com.liferay.portal.kernel.exception.PortalException
Specified by:
addFileEntry in interface WorkflowSupport
Throws:
com.liferay.portal.kernel.exception.PortalException

checkInFileEntry

public void checkInFileEntry(long userId,
                             com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
                             boolean majorVersion,
                             com.liferay.portal.kernel.service.ServiceContext serviceContext)
                      throws com.liferay.portal.kernel.exception.PortalException
Specified by:
checkInFileEntry in interface WorkflowSupport
Throws:
com.liferay.portal.kernel.exception.PortalException

getStatus

public int getStatus(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
Specified by:
getStatus in interface com.liferay.portal.kernel.repository.capabilities.WorkflowCapability

revertFileEntry

public void revertFileEntry(long userId,
                            com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
                            com.liferay.portal.kernel.service.ServiceContext serviceContext)
                     throws com.liferay.portal.kernel.exception.PortalException
Specified by:
revertFileEntry in interface WorkflowSupport
Throws:
com.liferay.portal.kernel.exception.PortalException

updateFileEntry

public void updateFileEntry(long userId,
                            com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
                            boolean majorVersion,
                            com.liferay.portal.kernel.service.ServiceContext serviceContext)
                     throws com.liferay.portal.kernel.exception.PortalException
Specified by:
updateFileEntry in interface WorkflowSupport
Throws:
com.liferay.portal.kernel.exception.PortalException

wrapLocalRepository

public com.liferay.portal.kernel.repository.LocalRepository wrapLocalRepository(com.liferay.portal.kernel.repository.LocalRepository localRepository)
Specified by:
wrapLocalRepository in interface RepositoryWrapperAware

wrapRepository

public com.liferay.portal.kernel.repository.Repository wrapRepository(com.liferay.portal.kernel.repository.Repository repository)
Specified by:
wrapRepository in interface RepositoryWrapperAware

doUpdateStatus

protected void doUpdateStatus(long userId,
                              com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
                              com.liferay.portal.kernel.service.ServiceContext serviceContext)
                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

Liferay 7.0-ga1 portal-impl