com.liferay.portal.events
Class AddDefaultDocumentLibraryStructuresAction

java.lang.Object
  extended by com.liferay.portal.kernel.events.SimpleAction
      extended by com.liferay.portal.events.BaseDefaultDDMStructureAction
          extended by com.liferay.portal.events.AddDefaultDocumentLibraryStructuresAction

public class AddDefaultDocumentLibraryStructuresAction
extends BaseDefaultDDMStructureAction

Author:
Sergio González, Miguel Pastor

Constructor Summary
AddDefaultDocumentLibraryStructuresAction()
           
 
Method Summary
protected  void addDLFileEntryType(long userId, long groupId, java.lang.String dlFileEntryTypeName, java.lang.String dlFileEntryTypeDescription, java.lang.String dynamicDDMStructureName, java.util.List<java.lang.String> ddmStructureNames, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  void addDLFileEntryTypes(long userId, long groupId, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  void addDLRawMetadataStructures(long userId, long groupId, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  java.lang.String buildDLRawMetadataElementXML(java.lang.String name, java.lang.reflect.Field field)
           
protected  java.lang.String buildDLRawMetadataStructureXML(java.lang.String name, java.lang.reflect.Field[] fields)
           
protected  java.lang.String buildDLRawMetadataXML(java.util.Map<java.lang.String,java.lang.reflect.Field[]> fields)
           
protected  void doRun(long companyId)
           
 void run(java.lang.String[] ids)
           
 
Methods inherited from class com.liferay.portal.events.BaseDefaultDDMStructureAction
addDDMStructures, getDDMStructures, getDynamicDDMStructureXSD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddDefaultDocumentLibraryStructuresAction

public AddDefaultDocumentLibraryStructuresAction()
Method Detail

run

public void run(java.lang.String[] ids)
         throws com.liferay.portal.kernel.events.ActionException
Specified by:
run in class com.liferay.portal.kernel.events.SimpleAction
Throws:
com.liferay.portal.kernel.events.ActionException

addDLFileEntryType

protected void addDLFileEntryType(long userId,
                                  long groupId,
                                  java.lang.String dlFileEntryTypeName,
                                  java.lang.String dlFileEntryTypeDescription,
                                  java.lang.String dynamicDDMStructureName,
                                  java.util.List<java.lang.String> ddmStructureNames,
                                  com.liferay.portal.service.ServiceContext serviceContext)
                           throws java.lang.Exception
Throws:
java.lang.Exception

addDLFileEntryTypes

protected void addDLFileEntryTypes(long userId,
                                   long groupId,
                                   com.liferay.portal.service.ServiceContext serviceContext)
                            throws java.lang.Exception
Throws:
java.lang.Exception

addDLRawMetadataStructures

protected void addDLRawMetadataStructures(long userId,
                                          long groupId,
                                          com.liferay.portal.service.ServiceContext serviceContext)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

buildDLRawMetadataElementXML

protected java.lang.String buildDLRawMetadataElementXML(java.lang.String name,
                                                        java.lang.reflect.Field field)

buildDLRawMetadataStructureXML

protected java.lang.String buildDLRawMetadataStructureXML(java.lang.String name,
                                                          java.lang.reflect.Field[] fields)

buildDLRawMetadataXML

protected java.lang.String buildDLRawMetadataXML(java.util.Map<java.lang.String,java.lang.reflect.Field[]> fields)

doRun

protected void doRun(long companyId)
              throws java.lang.Exception
Throws:
java.lang.Exception