Class AssetTestUtil

java.lang.Object
com.liferay.asset.test.util.AssetTestUtil

public class AssetTestUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.liferay.asset.kernel.model.AssetEntry
    addAssetEntry(long groupId)
     
    static com.liferay.asset.kernel.model.AssetEntry
    addAssetEntry(long groupId, Date publishDate)
     
    static com.liferay.asset.kernel.model.AssetEntry
    addAssetEntry(long groupId, Date publishDate, String className)
     
    static com.liferay.asset.kernel.model.AssetCategory
    addCategory(long groupId, long vocabularyId)
     
    static com.liferay.asset.kernel.model.AssetCategory
    addCategory(long groupId, long vocabularyId, long parentCategoryId)
     
    static com.liferay.asset.kernel.model.AssetTag
    addTag(long groupId)
     
    static com.liferay.asset.kernel.model.AssetTag
    addTag(long groupId, String assetTagName)
     
    static com.liferay.asset.kernel.model.AssetTag
    addTag(String externalReferenceCode, long groupId, String assetTagName)
     
    static com.liferay.asset.kernel.model.AssetVocabulary
    addVocabulary(long groupId)
     
    static com.liferay.asset.kernel.model.AssetVocabulary
    addVocabulary(long groupId, long classNameId, long classTypePK, boolean required)
     
    static com.liferay.asset.kernel.model.AssetVocabulary
    addVocabulary(long groupId, long classNameId, long classTypePK, boolean depotRequired, boolean required)
     
    static com.liferay.asset.kernel.model.AssetVocabulary
    addVocabulary(long groupId, String name)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AssetTestUtil

      public AssetTestUtil()
  • Method Details

    • addAssetEntry

      public static com.liferay.asset.kernel.model.AssetEntry addAssetEntry(long groupId)
    • addAssetEntry

      public static com.liferay.asset.kernel.model.AssetEntry addAssetEntry(long groupId, Date publishDate)
    • addAssetEntry

      public static com.liferay.asset.kernel.model.AssetEntry addAssetEntry(long groupId, Date publishDate, String className)
    • addCategory

      public static com.liferay.asset.kernel.model.AssetCategory addCategory(long groupId, long vocabularyId) throws Exception
      Throws:
      Exception
    • addCategory

      public static com.liferay.asset.kernel.model.AssetCategory addCategory(long groupId, long vocabularyId, long parentCategoryId) throws Exception
      Throws:
      Exception
    • addTag

      public static com.liferay.asset.kernel.model.AssetTag addTag(long groupId) throws Exception
      Throws:
      Exception
    • addTag

      public static com.liferay.asset.kernel.model.AssetTag addTag(long groupId, String assetTagName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addTag

      public static com.liferay.asset.kernel.model.AssetTag addTag(String externalReferenceCode, long groupId, String assetTagName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addVocabulary

      public static com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(long groupId) throws Exception
      Throws:
      Exception
    • addVocabulary

      public static com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(long groupId, long classNameId, long classTypePK, boolean required) throws Exception
      Throws:
      Exception
    • addVocabulary

      public static com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(long groupId, long classNameId, long classTypePK, boolean depotRequired, boolean required) throws Exception
      Throws:
      Exception
    • addVocabulary

      public static com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(long groupId, String name) throws Exception
      Throws:
      Exception