public class DataFactory
extends java.lang.Object
| Constructor and Description |
|---|
DataFactory(java.util.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portal.model.AccountModel |
getAccountModel() |
com.liferay.portal.model.RoleModel |
getAdministratorRoleModel() |
java.util.List<java.lang.Long> |
getAssetCategoryIds(long groupId) |
java.util.List<com.liferay.portlet.asset.model.AssetCategoryModel> |
getAssetCategoryModels() |
protected java.lang.String[] |
getAssetPublisherAssetCategoriesQueryValues(java.util.List<com.liferay.portlet.asset.model.AssetCategoryModel> assetCategoryModels,
int index) |
protected java.lang.String[] |
getAssetPublisherAssetTagsQueryValues(java.util.List<com.liferay.portlet.asset.model.AssetTagModel> assetTagModels,
int index) |
java.util.List<java.lang.Long> |
getAssetTagIds(long groupId) |
java.util.List<com.liferay.portlet.asset.model.AssetTagModel> |
getAssetTagModels() |
java.util.List<com.liferay.portlet.asset.model.AssetTagStatsModel> |
getAssetTagStatsModels() |
java.util.List<com.liferay.portlet.asset.model.AssetVocabularyModel> |
getAssetVocabularyModels() |
long |
getBlogsEntryClassNameId() |
java.util.List<com.liferay.portal.model.ClassNameModel> |
getClassNameModels() |
com.liferay.portal.model.CompanyModel |
getCompanyModel() |
com.liferay.util.SimpleCounter |
getCounter() |
long |
getCounterNext() |
java.lang.String |
getDateLong(java.util.Date date) |
java.lang.String |
getDateString(java.util.Date date) |
long |
getDDLRecordSetClassNameId() |
long |
getDefaultDLDDMStructureId() |
com.liferay.portlet.dynamicdatamapping.model.DDMStructureModel |
getDefaultDLDDMStructureModel() |
com.liferay.portlet.documentlibrary.model.DLFileEntryTypeModel |
getDefaultDLFileEntryTypeModel() |
com.liferay.portal.model.UserModel |
getDefaultUserModel() |
long |
getDLFileEntryClassNameId() |
com.liferay.portal.model.GroupModel |
getGlobalGroupModel() |
long |
getGroupClassNameId() |
java.util.List<com.liferay.portal.model.GroupModel> |
getGroupModels() |
com.liferay.portal.model.GroupModel |
getGuestGroupModel() |
com.liferay.portal.model.UserModel |
getGuestUserModel() |
long |
getJournalArticleClassNameId() |
java.lang.String |
getJournalArticleLayoutColumn(java.lang.String portletPrefix) |
long |
getLayoutClassNameId() |
int |
getMaxAssetPublisherPageCount() |
int |
getMaxBlogsEntryCommentCount() |
int |
getMaxDDLRecordCount() |
int |
getMaxDDLRecordSetCount() |
int |
getMaxDLFolderDepth() |
int |
getMaxGroupCount() |
int |
getMaxJournalArticleCount() |
int |
getMaxJournalArticlePageCount() |
int |
getMaxJournalArticleVersionCount() |
int |
getMaxWikiPageCommentCount() |
java.util.List<java.lang.Long> |
getNewUserGroupIds(long groupId) |
com.liferay.portal.model.RoleModel |
getPowerUserRoleModel() |
protected java.io.InputStream |
getResourceInputStream(java.lang.String resourceName) |
java.util.List<com.liferay.portal.model.RoleModel> |
getRoleModels() |
com.liferay.portal.model.UserModel |
getSampleUserModel() |
java.util.List<java.lang.Integer> |
getSequence(int size) |
com.liferay.portal.model.RoleModel |
getUserRoleModel() |
com.liferay.portal.model.VirtualHostModel |
getVirtualHostModel() |
long |
getWikiPageClassNameId() |
void |
initAssetCategoryModels() |
void |
initAssetTagModels() |
void |
initCompanyModel() |
void |
initContext(java.util.Properties properties) |
void |
initDLFileEntryTypeModel() |
void |
initGroupModels() |
void |
initJournalArticleContent(int maxJournalArticleSize) |
void |
initRoleModels() |
void |
initUserModels() |
void |
initUserNames() |
void |
initVirtualHostModel() |
protected com.liferay.portlet.asset.model.AssetCategoryModel |
newAssetCategoryModel(long groupId,
long lastRightCategoryId,
java.lang.String name,
long vocabularyId) |
com.liferay.portlet.asset.model.AssetEntryModel |
newAssetEntryModel(com.liferay.portlet.blogs.model.BlogsEntryModel blogsEntryModel) |
com.liferay.portlet.asset.model.AssetEntryModel |
newAssetEntryModel(com.liferay.portlet.documentlibrary.model.DLFileEntryModel dLFileEntryModel) |
com.liferay.portlet.asset.model.AssetEntryModel |
newAssetEntryModel(com.liferay.portlet.documentlibrary.model.DLFolderModel dLFolderModel) |
com.liferay.portlet.asset.model.AssetEntryModel |
newAssetEntryModel(com.liferay.portlet.journal.model.JournalArticleModel journalArticleModel) |
protected com.liferay.portlet.asset.model.AssetEntryModel |
newAssetEntryModel(long groupId,
java.util.Date createDate,
java.util.Date modifiedDate,
long classNameId,
long classPK,
java.lang.String uuid,
long classTypeId,
boolean visible,
java.lang.String mimeType,
java.lang.String title) |
com.liferay.portlet.asset.model.AssetEntryModel |
newAssetEntryModel(com.liferay.portlet.messageboards.model.MBMessageModel mbMessageModel) |
com.liferay.portlet.asset.model.AssetEntryModel |
newAssetEntryModel(com.liferay.portlet.messageboards.model.MBThreadModel mbThreadModel) |
com.liferay.portlet.asset.model.AssetEntryModel |
newAssetEntryModel(com.liferay.portlet.wiki.model.WikiPageModel wikiPageModel) |
java.util.List<com.liferay.portal.model.PortletPreferencesModel> |
newAssetPublisherPortletPreferencesModels(long plid) |
protected com.liferay.portlet.asset.model.AssetTagStatsModel |
newAssetTagStatsModel(long tagId,
long classNameId) |
protected com.liferay.portlet.asset.model.AssetVocabularyModel |
newAssetVocabularyModel(long grouId,
long userId,
java.lang.String userName,
java.lang.String name) |
protected com.liferay.portlet.blogs.model.BlogsEntryModel |
newBlogsEntryModel(long groupId,
int index) |
java.util.List<com.liferay.portlet.blogs.model.BlogsEntryModel> |
newBlogsEntryModels(long groupId) |
com.liferay.portlet.blogs.model.BlogsStatsUserModel |
newBlogsStatsUserModel(long groupId) |
com.liferay.portal.model.ContactModel |
newContactModel(com.liferay.portal.model.UserModel userModel) |
java.util.List<com.liferay.counter.model.CounterModel> |
newCounterModels() |
com.liferay.portlet.dynamicdatamapping.model.DDMStructureModel |
newDDLDDMStructureModel(long groupId) |
com.liferay.portlet.dynamicdatalists.model.DDLRecordModel |
newDDLRecordModel(com.liferay.portlet.dynamicdatalists.model.DDLRecordSetModel dDLRecordSetModel) |
com.liferay.portlet.dynamicdatalists.model.DDLRecordSetModel |
newDDLRecordSetModel(com.liferay.portlet.dynamicdatamapping.model.DDMStructureModel ddmStructureModel,
int currentIndex) |
com.liferay.portlet.dynamicdatalists.model.DDLRecordVersionModel |
newDDLRecordVersionModel(com.liferay.portlet.dynamicdatalists.model.DDLRecordModel dDLRecordModel) |
com.liferay.portlet.dynamicdatamapping.model.DDMContentModel |
newDDMContentModel(com.liferay.portlet.dynamicdatalists.model.DDLRecordModel ddlRecordModel,
int currentIndex) |
com.liferay.portlet.dynamicdatamapping.model.DDMContentModel |
newDDMContentModel(com.liferay.portlet.documentlibrary.model.DLFileEntryModel dlFileEntryModel) |
protected com.liferay.portlet.dynamicdatamapping.model.DDMContentModel |
newDDMContentModel(long contentId,
long groupId,
java.lang.String xml) |
com.liferay.portlet.dynamicdatamapping.model.DDMStorageLinkModel |
newDDMStorageLinkModel(long ddmStorageLinkId,
com.liferay.portlet.dynamicdatamapping.model.DDMContentModel ddmContentModel,
long structureId) |
com.liferay.portlet.dynamicdatamapping.model.DDMStructureLinkModel |
newDDMStructureLinkModel(com.liferay.portlet.dynamicdatalists.model.DDLRecordSetModel ddlRecordSetModel) |
com.liferay.portlet.dynamicdatamapping.model.DDMStructureLinkModel |
newDDMStructureLinkModel(com.liferay.portlet.documentlibrary.model.DLFileEntryMetadataModel dLFileEntryMetadataModel) |
protected com.liferay.portlet.dynamicdatamapping.model.DDMStructureLinkModel |
newDDMStructureLinkModel(long classNameId,
long classPK,
long structureId) |
protected com.liferay.portlet.dynamicdatamapping.model.DDMStructureModel |
newDDMStructureModel(long groupId,
long classNameId,
java.lang.String structureKey,
java.lang.String xsd) |
com.liferay.portlet.documentlibrary.model.DLFileEntryMetadataModel |
newDLFileEntryMetadataModel(long ddmStorageLinkId,
long ddmStructureId,
com.liferay.portlet.documentlibrary.model.DLFileVersionModel dlFileVersionModel) |
protected com.liferay.portlet.documentlibrary.model.DLFileEntryModel |
newDlFileEntryModel(com.liferay.portlet.documentlibrary.model.DLFolderModel dlFolerModel,
int index) |
java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryModel> |
newDlFileEntryModels(com.liferay.portlet.documentlibrary.model.DLFolderModel dlFolerModel) |
com.liferay.portlet.documentlibrary.model.DLFileVersionModel |
newDLFileVersionModel(com.liferay.portlet.documentlibrary.model.DLFileEntryModel dlFileEntryModel) |
protected com.liferay.portlet.documentlibrary.model.DLFolderModel |
newDLFolderModel(long groupId,
long parentFolderId,
int index) |
java.util.List<com.liferay.portlet.documentlibrary.model.DLFolderModel> |
newDLFolderModels(long groupId,
long parentFolderId) |
protected com.liferay.portal.model.GroupModel |
newGroupModel(long groupId,
long classNameId,
long classPK,
java.lang.String name,
boolean site) |
com.liferay.portal.model.GroupModel |
newGroupModel(com.liferay.portal.model.UserModel userModel) |
com.liferay.portal.kernel.util.IntegerWrapper |
newInteger() |
com.liferay.portlet.journal.model.JournalArticleModel |
newJournalArticleModel(com.liferay.portlet.journal.model.JournalArticleResourceModel journalArticleResourceModel,
int articleIndex,
int versionIndex) |
com.liferay.portlet.journal.model.JournalArticleResourceModel |
newJournalArticleResourceModel(long groupId) |
com.liferay.portlet.journal.model.JournalContentSearchModel |
newJournalContentSearchModel(com.liferay.portlet.journal.model.JournalArticleModel journalArticleModel,
long layoutId) |
com.liferay.portal.model.LayoutFriendlyURLModel |
newLayoutFriendlyURLModel(com.liferay.portal.model.LayoutModel layoutModel) |
com.liferay.portal.model.LayoutModel |
newLayoutModel(long groupId,
java.lang.String name,
java.lang.String column1,
java.lang.String column2) |
protected com.liferay.portal.model.LayoutSetModel |
newLayoutSetModel(long groupId,
boolean privateLayout,
int pageCount) |
java.util.List<com.liferay.portal.model.LayoutSetModel> |
newLayoutSetModels(long groupId,
int publicLayoutSetPageCount) |
protected com.liferay.portlet.messageboards.model.MBCategoryModel |
newMBCategoryModel(long groupId,
int index) |
java.util.List<com.liferay.portlet.messageboards.model.MBCategoryModel> |
newMBCategoryModels(long groupId) |
com.liferay.portlet.messageboards.model.MBDiscussionModel |
newMBDiscussionModel(long groupId,
long classNameId,
long classPK,
long threadId) |
com.liferay.portlet.messageboards.model.MBMailingListModel |
newMBMailingListModel(com.liferay.portlet.messageboards.model.MBCategoryModel mbCategoryModel) |
protected com.liferay.portlet.messageboards.model.MBMessageModel |
newMBMessageModel(long groupId,
long classNameId,
long classPK,
long categoryId,
long threadId,
long messageId,
long rootMessageId,
long parentMessageId,
java.lang.String subject,
java.lang.String body) |
com.liferay.portlet.messageboards.model.MBMessageModel |
newMBMessageModel(com.liferay.portlet.messageboards.model.MBThreadModel mbThreadModel,
long classNameId,
long classPK,
int index) |
java.util.List<com.liferay.portlet.messageboards.model.MBMessageModel> |
newMBMessageModels(com.liferay.portlet.messageboards.model.MBThreadModel mbThreadModel) |
java.util.List<com.liferay.portlet.messageboards.model.MBMessageModel> |
newMBMessageModels(com.liferay.portlet.messageboards.model.MBThreadModel mbThreadModel,
long classNameId,
long classPK,
int maxMessageCount) |
com.liferay.portlet.messageboards.model.MBStatsUserModel |
newMBStatsUserModel(long groupId) |
com.liferay.portlet.messageboards.model.MBThreadFlagModel |
newMBThreadFlagModel(com.liferay.portlet.messageboards.model.MBThreadModel mbThreadModel) |
com.liferay.portlet.messageboards.model.MBThreadModel |
newMBThreadModel(long threadId,
long groupId,
long rootMessageId,
int messageCount) |
protected com.liferay.portlet.messageboards.model.MBThreadModel |
newMBThreadModel(long threadId,
long groupId,
long categoryId,
long rootMessageId,
int messageCount) |
java.util.List<com.liferay.portlet.messageboards.model.MBThreadModel> |
newMBThreadModels(com.liferay.portlet.messageboards.model.MBCategoryModel mbCategoryModel) |
com.liferay.portal.model.PortletPreferencesModel |
newPortletPreferencesModel(long plid,
long groupId,
java.lang.String portletId,
int currentIndex) |
com.liferay.portal.model.PortletPreferencesModel |
newPortletPreferencesModel(long plid,
java.lang.String portletId,
com.liferay.portlet.dynamicdatalists.model.DDLRecordSetModel ddlRecordSetModel) |
com.liferay.portal.model.PortletPreferencesModel |
newPortletPreferencesModel(long plid,
java.lang.String portletId,
com.liferay.portlet.journal.model.JournalArticleResourceModel journalArticleResourceModel) |
protected com.liferay.portal.model.PortletPreferencesModel |
newPortletPreferencesModel(long plid,
java.lang.String portletId,
java.lang.String preferences) |
java.util.List<com.liferay.portal.model.PortletPreferencesModel> |
newPortletPreferencesModels(long plid) |
java.util.List<com.liferay.portal.model.LayoutModel> |
newPublicLayoutModels(long groupId) |
protected com.liferay.portal.model.ResourcePermissionModel |
newResourcePermissionModel(java.lang.String name,
java.lang.String primKey,
long roleId,
long ownerId) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portlet.asset.model.AssetCategoryModel assetCategoryModel) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portlet.asset.model.AssetTagModel assetTagModel) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portlet.asset.model.AssetVocabularyModel assetVocabularyModel) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portlet.blogs.model.BlogsEntryModel blogsEntryModel) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portlet.dynamicdatalists.model.DDLRecordSetModel ddlRecordSetModel) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portlet.dynamicdatamapping.model.DDMStructureModel ddmStructureModel) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portlet.documentlibrary.model.DLFileEntryModel dlFileEntryModel) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portlet.documentlibrary.model.DLFolderModel dlFolderModel) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portlet.journal.model.JournalArticleResourceModel journalArticleResourceModel) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portal.model.LayoutModel layoutModel) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portlet.messageboards.model.MBCategoryModel mbCategoryModel) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portlet.messageboards.model.MBMessageModel mbMessageModel) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portal.model.PortletPreferencesModel portletPreferencesModel) |
protected java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(java.lang.String name,
java.lang.String primKey,
long ownerId) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portlet.wiki.model.WikiNodeModel wikiNodeModel) |
java.util.List<com.liferay.portal.model.ResourcePermissionModel> |
newResourcePermissionModels(com.liferay.portlet.wiki.model.WikiPageModel wikiPageModel) |
protected com.liferay.portal.model.RoleModel |
newRoleModel(java.lang.String name,
int type) |
com.liferay.portlet.social.model.SocialActivityModel |
newSocialActivityModel(com.liferay.portlet.blogs.model.BlogsEntryModel blogsEntryModel) |
com.liferay.portlet.social.model.SocialActivityModel |
newSocialActivityModel(com.liferay.portlet.documentlibrary.model.DLFileEntryModel dlFileEntryModel) |
com.liferay.portlet.social.model.SocialActivityModel |
newSocialActivityModel(com.liferay.portlet.journal.model.JournalArticleModel journalArticleModel) |
protected com.liferay.portlet.social.model.SocialActivityModel |
newSocialActivityModel(long groupId,
long classNameId,
long classPK,
int type,
java.lang.String extraData) |
com.liferay.portlet.social.model.SocialActivityModel |
newSocialActivityModel(com.liferay.portlet.messageboards.model.MBMessageModel mbMessageModel) |
com.liferay.portal.model.SubscriptionModel |
newSubscriptionModel(com.liferay.portlet.blogs.model.BlogsEntryModel blogsEntryModel) |
protected com.liferay.portal.model.SubscriptionModel |
newSubscriptionModel(long classNameId,
long classPK) |
com.liferay.portal.model.SubscriptionModel |
newSubscriptionModel(com.liferay.portlet.messageboards.model.MBThreadModel mBThreadModel) |
com.liferay.portal.model.SubscriptionModel |
newSubscriptionModel(com.liferay.portlet.wiki.model.WikiPageModel wikiPageModel) |
protected com.liferay.portal.model.UserModel |
newUserModel(long userId,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String screenName,
boolean defaultUser) |
java.util.List<com.liferay.portal.model.UserModel> |
newUserModels() |
protected com.liferay.portlet.wiki.model.WikiNodeModel |
newWikiNodeModel(long groupId,
int index) |
java.util.List<com.liferay.portlet.wiki.model.WikiNodeModel> |
newWikiNodeModels(long groupId) |
protected com.liferay.portlet.wiki.model.WikiPageModel |
newWikiPageModel(com.liferay.portlet.wiki.model.WikiNodeModel wikiNodeModel,
int index) |
java.util.List<com.liferay.portlet.wiki.model.WikiPageModel> |
newWikiPageModels(com.liferay.portlet.wiki.model.WikiNodeModel wikiNodeModel) |
com.liferay.portlet.wiki.model.WikiPageResourceModel |
newWikiPageResourceModel(com.liferay.portlet.wiki.model.WikiPageModel wikiPageModel) |
protected java.lang.String |
nextDDLCustomFieldName(long groupId,
int customFieldIndex) |
protected java.util.Date |
nextFutureDate() |
java.lang.String[] |
nextUserName(long index) |
public DataFactory(java.util.Properties properties)
throws java.lang.Exception
java.lang.Exceptionpublic com.liferay.portal.model.AccountModel getAccountModel()
public com.liferay.portal.model.RoleModel getAdministratorRoleModel()
public java.util.List<java.lang.Long> getAssetCategoryIds(long groupId)
public java.util.List<com.liferay.portlet.asset.model.AssetCategoryModel> getAssetCategoryModels()
public java.util.List<java.lang.Long> getAssetTagIds(long groupId)
public java.util.List<com.liferay.portlet.asset.model.AssetTagModel> getAssetTagModels()
public java.util.List<com.liferay.portlet.asset.model.AssetTagStatsModel> getAssetTagStatsModels()
public java.util.List<com.liferay.portlet.asset.model.AssetVocabularyModel> getAssetVocabularyModels()
public long getBlogsEntryClassNameId()
public java.util.List<com.liferay.portal.model.ClassNameModel> getClassNameModels()
public com.liferay.portal.model.CompanyModel getCompanyModel()
public com.liferay.util.SimpleCounter getCounter()
public long getCounterNext()
public java.lang.String getDateLong(java.util.Date date)
public java.lang.String getDateString(java.util.Date date)
public long getDDLRecordSetClassNameId()
public long getDefaultDLDDMStructureId()
public com.liferay.portlet.dynamicdatamapping.model.DDMStructureModel getDefaultDLDDMStructureModel()
public com.liferay.portlet.documentlibrary.model.DLFileEntryTypeModel getDefaultDLFileEntryTypeModel()
public com.liferay.portal.model.UserModel getDefaultUserModel()
public long getDLFileEntryClassNameId()
public com.liferay.portal.model.GroupModel getGlobalGroupModel()
public long getGroupClassNameId()
public java.util.List<com.liferay.portal.model.GroupModel> getGroupModels()
public com.liferay.portal.model.GroupModel getGuestGroupModel()
public com.liferay.portal.model.UserModel getGuestUserModel()
public long getJournalArticleClassNameId()
public java.lang.String getJournalArticleLayoutColumn(java.lang.String portletPrefix)
public long getLayoutClassNameId()
public int getMaxAssetPublisherPageCount()
public int getMaxBlogsEntryCommentCount()
public int getMaxDDLRecordCount()
public int getMaxDDLRecordSetCount()
public int getMaxDLFolderDepth()
public int getMaxGroupCount()
public int getMaxJournalArticleCount()
public int getMaxJournalArticlePageCount()
public int getMaxJournalArticleVersionCount()
public int getMaxWikiPageCommentCount()
public java.util.List<java.lang.Long> getNewUserGroupIds(long groupId)
public com.liferay.portal.model.RoleModel getPowerUserRoleModel()
public java.util.List<com.liferay.portal.model.RoleModel> getRoleModels()
public com.liferay.portal.model.UserModel getSampleUserModel()
public java.util.List<java.lang.Integer> getSequence(int size)
public com.liferay.portal.model.RoleModel getUserRoleModel()
public com.liferay.portal.model.VirtualHostModel getVirtualHostModel()
public long getWikiPageClassNameId()
public void initAssetCategoryModels()
public void initAssetTagModels()
public void initCompanyModel()
public void initContext(java.util.Properties properties)
public void initDLFileEntryTypeModel()
public void initGroupModels()
throws java.lang.Exception
java.lang.Exceptionpublic void initJournalArticleContent(int maxJournalArticleSize)
public void initRoleModels()
public void initUserModels()
public void initUserNames()
throws java.io.IOException
java.io.IOExceptionpublic void initVirtualHostModel()
public com.liferay.portlet.asset.model.AssetEntryModel newAssetEntryModel(com.liferay.portlet.blogs.model.BlogsEntryModel blogsEntryModel)
public com.liferay.portlet.asset.model.AssetEntryModel newAssetEntryModel(com.liferay.portlet.documentlibrary.model.DLFileEntryModel dLFileEntryModel)
public com.liferay.portlet.asset.model.AssetEntryModel newAssetEntryModel(com.liferay.portlet.documentlibrary.model.DLFolderModel dLFolderModel)
public com.liferay.portlet.asset.model.AssetEntryModel newAssetEntryModel(com.liferay.portlet.journal.model.JournalArticleModel journalArticleModel)
public com.liferay.portlet.asset.model.AssetEntryModel newAssetEntryModel(com.liferay.portlet.messageboards.model.MBMessageModel mbMessageModel)
public com.liferay.portlet.asset.model.AssetEntryModel newAssetEntryModel(com.liferay.portlet.messageboards.model.MBThreadModel mbThreadModel)
public com.liferay.portlet.asset.model.AssetEntryModel newAssetEntryModel(com.liferay.portlet.wiki.model.WikiPageModel wikiPageModel)
public java.util.List<com.liferay.portal.model.PortletPreferencesModel> newAssetPublisherPortletPreferencesModels(long plid)
public java.util.List<com.liferay.portlet.blogs.model.BlogsEntryModel> newBlogsEntryModels(long groupId)
public com.liferay.portlet.blogs.model.BlogsStatsUserModel newBlogsStatsUserModel(long groupId)
public com.liferay.portal.model.ContactModel newContactModel(com.liferay.portal.model.UserModel userModel)
public java.util.List<com.liferay.counter.model.CounterModel> newCounterModels()
public com.liferay.portlet.dynamicdatamapping.model.DDMStructureModel newDDLDDMStructureModel(long groupId)
public com.liferay.portlet.dynamicdatalists.model.DDLRecordModel newDDLRecordModel(com.liferay.portlet.dynamicdatalists.model.DDLRecordSetModel dDLRecordSetModel)
public com.liferay.portlet.dynamicdatalists.model.DDLRecordSetModel newDDLRecordSetModel(com.liferay.portlet.dynamicdatamapping.model.DDMStructureModel ddmStructureModel,
int currentIndex)
public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersionModel newDDLRecordVersionModel(com.liferay.portlet.dynamicdatalists.model.DDLRecordModel dDLRecordModel)
public com.liferay.portlet.dynamicdatamapping.model.DDMContentModel newDDMContentModel(com.liferay.portlet.dynamicdatalists.model.DDLRecordModel ddlRecordModel,
int currentIndex)
public com.liferay.portlet.dynamicdatamapping.model.DDMContentModel newDDMContentModel(com.liferay.portlet.documentlibrary.model.DLFileEntryModel dlFileEntryModel)
public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLinkModel newDDMStorageLinkModel(long ddmStorageLinkId,
com.liferay.portlet.dynamicdatamapping.model.DDMContentModel ddmContentModel,
long structureId)
public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLinkModel newDDMStructureLinkModel(com.liferay.portlet.dynamicdatalists.model.DDLRecordSetModel ddlRecordSetModel)
public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLinkModel newDDMStructureLinkModel(com.liferay.portlet.documentlibrary.model.DLFileEntryMetadataModel dLFileEntryMetadataModel)
public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadataModel newDLFileEntryMetadataModel(long ddmStorageLinkId,
long ddmStructureId,
com.liferay.portlet.documentlibrary.model.DLFileVersionModel dlFileVersionModel)
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryModel> newDlFileEntryModels(com.liferay.portlet.documentlibrary.model.DLFolderModel dlFolerModel)
public com.liferay.portlet.documentlibrary.model.DLFileVersionModel newDLFileVersionModel(com.liferay.portlet.documentlibrary.model.DLFileEntryModel dlFileEntryModel)
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolderModel> newDLFolderModels(long groupId,
long parentFolderId)
public com.liferay.portal.model.GroupModel newGroupModel(com.liferay.portal.model.UserModel userModel)
throws java.lang.Exception
java.lang.Exceptionpublic com.liferay.portal.kernel.util.IntegerWrapper newInteger()
public com.liferay.portlet.journal.model.JournalArticleModel newJournalArticleModel(com.liferay.portlet.journal.model.JournalArticleResourceModel journalArticleResourceModel,
int articleIndex,
int versionIndex)
public com.liferay.portlet.journal.model.JournalArticleResourceModel newJournalArticleResourceModel(long groupId)
public com.liferay.portlet.journal.model.JournalContentSearchModel newJournalContentSearchModel(com.liferay.portlet.journal.model.JournalArticleModel journalArticleModel,
long layoutId)
public com.liferay.portal.model.LayoutFriendlyURLModel newLayoutFriendlyURLModel(com.liferay.portal.model.LayoutModel layoutModel)
public com.liferay.portal.model.LayoutModel newLayoutModel(long groupId,
java.lang.String name,
java.lang.String column1,
java.lang.String column2)
public java.util.List<com.liferay.portal.model.LayoutSetModel> newLayoutSetModels(long groupId,
int publicLayoutSetPageCount)
public java.util.List<com.liferay.portlet.messageboards.model.MBCategoryModel> newMBCategoryModels(long groupId)
public com.liferay.portlet.messageboards.model.MBDiscussionModel newMBDiscussionModel(long groupId,
long classNameId,
long classPK,
long threadId)
public com.liferay.portlet.messageboards.model.MBMailingListModel newMBMailingListModel(com.liferay.portlet.messageboards.model.MBCategoryModel mbCategoryModel)
public com.liferay.portlet.messageboards.model.MBMessageModel newMBMessageModel(com.liferay.portlet.messageboards.model.MBThreadModel mbThreadModel,
long classNameId,
long classPK,
int index)
public java.util.List<com.liferay.portlet.messageboards.model.MBMessageModel> newMBMessageModels(com.liferay.portlet.messageboards.model.MBThreadModel mbThreadModel)
public java.util.List<com.liferay.portlet.messageboards.model.MBMessageModel> newMBMessageModels(com.liferay.portlet.messageboards.model.MBThreadModel mbThreadModel,
long classNameId,
long classPK,
int maxMessageCount)
public com.liferay.portlet.messageboards.model.MBStatsUserModel newMBStatsUserModel(long groupId)
public com.liferay.portlet.messageboards.model.MBThreadFlagModel newMBThreadFlagModel(com.liferay.portlet.messageboards.model.MBThreadModel mbThreadModel)
public com.liferay.portlet.messageboards.model.MBThreadModel newMBThreadModel(long threadId,
long groupId,
long rootMessageId,
int messageCount)
public java.util.List<com.liferay.portlet.messageboards.model.MBThreadModel> newMBThreadModels(com.liferay.portlet.messageboards.model.MBCategoryModel mbCategoryModel)
public com.liferay.portal.model.PortletPreferencesModel newPortletPreferencesModel(long plid,
long groupId,
java.lang.String portletId,
int currentIndex)
throws java.lang.Exception
java.lang.Exceptionpublic com.liferay.portal.model.PortletPreferencesModel newPortletPreferencesModel(long plid,
java.lang.String portletId,
com.liferay.portlet.dynamicdatalists.model.DDLRecordSetModel ddlRecordSetModel)
throws java.lang.Exception
java.lang.Exceptionpublic com.liferay.portal.model.PortletPreferencesModel newPortletPreferencesModel(long plid,
java.lang.String portletId,
com.liferay.portlet.journal.model.JournalArticleResourceModel journalArticleResourceModel)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<com.liferay.portal.model.PortletPreferencesModel> newPortletPreferencesModels(long plid)
public java.util.List<com.liferay.portal.model.LayoutModel> newPublicLayoutModels(long groupId)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portlet.asset.model.AssetCategoryModel assetCategoryModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portlet.asset.model.AssetTagModel assetTagModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portlet.asset.model.AssetVocabularyModel assetVocabularyModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portlet.blogs.model.BlogsEntryModel blogsEntryModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portlet.dynamicdatalists.model.DDLRecordSetModel ddlRecordSetModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portlet.dynamicdatamapping.model.DDMStructureModel ddmStructureModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portlet.documentlibrary.model.DLFileEntryModel dlFileEntryModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portlet.documentlibrary.model.DLFolderModel dlFolderModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portlet.journal.model.JournalArticleResourceModel journalArticleResourceModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portal.model.LayoutModel layoutModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portlet.messageboards.model.MBCategoryModel mbCategoryModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portlet.messageboards.model.MBMessageModel mbMessageModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portal.model.PortletPreferencesModel portletPreferencesModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portlet.wiki.model.WikiNodeModel wikiNodeModel)
public java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(com.liferay.portlet.wiki.model.WikiPageModel wikiPageModel)
public com.liferay.portlet.social.model.SocialActivityModel newSocialActivityModel(com.liferay.portlet.blogs.model.BlogsEntryModel blogsEntryModel)
public com.liferay.portlet.social.model.SocialActivityModel newSocialActivityModel(com.liferay.portlet.documentlibrary.model.DLFileEntryModel dlFileEntryModel)
public com.liferay.portlet.social.model.SocialActivityModel newSocialActivityModel(com.liferay.portlet.journal.model.JournalArticleModel journalArticleModel)
public com.liferay.portlet.social.model.SocialActivityModel newSocialActivityModel(com.liferay.portlet.messageboards.model.MBMessageModel mbMessageModel)
public com.liferay.portal.model.SubscriptionModel newSubscriptionModel(com.liferay.portlet.blogs.model.BlogsEntryModel blogsEntryModel)
public com.liferay.portal.model.SubscriptionModel newSubscriptionModel(com.liferay.portlet.messageboards.model.MBThreadModel mBThreadModel)
public com.liferay.portal.model.SubscriptionModel newSubscriptionModel(com.liferay.portlet.wiki.model.WikiPageModel wikiPageModel)
public java.util.List<com.liferay.portal.model.UserModel> newUserModels()
public java.util.List<com.liferay.portlet.wiki.model.WikiNodeModel> newWikiNodeModels(long groupId)
public java.util.List<com.liferay.portlet.wiki.model.WikiPageModel> newWikiPageModels(com.liferay.portlet.wiki.model.WikiNodeModel wikiNodeModel)
public com.liferay.portlet.wiki.model.WikiPageResourceModel newWikiPageResourceModel(com.liferay.portlet.wiki.model.WikiPageModel wikiPageModel)
public java.lang.String[] nextUserName(long index)
protected java.lang.String[] getAssetPublisherAssetCategoriesQueryValues(java.util.List<com.liferay.portlet.asset.model.AssetCategoryModel> assetCategoryModels,
int index)
protected java.lang.String[] getAssetPublisherAssetTagsQueryValues(java.util.List<com.liferay.portlet.asset.model.AssetTagModel> assetTagModels,
int index)
protected java.io.InputStream getResourceInputStream(java.lang.String resourceName)
protected com.liferay.portlet.asset.model.AssetCategoryModel newAssetCategoryModel(long groupId,
long lastRightCategoryId,
java.lang.String name,
long vocabularyId)
protected com.liferay.portlet.asset.model.AssetEntryModel newAssetEntryModel(long groupId,
java.util.Date createDate,
java.util.Date modifiedDate,
long classNameId,
long classPK,
java.lang.String uuid,
long classTypeId,
boolean visible,
java.lang.String mimeType,
java.lang.String title)
protected com.liferay.portlet.asset.model.AssetTagStatsModel newAssetTagStatsModel(long tagId,
long classNameId)
protected com.liferay.portlet.asset.model.AssetVocabularyModel newAssetVocabularyModel(long grouId,
long userId,
java.lang.String userName,
java.lang.String name)
protected com.liferay.portlet.blogs.model.BlogsEntryModel newBlogsEntryModel(long groupId,
int index)
protected com.liferay.portlet.dynamicdatamapping.model.DDMContentModel newDDMContentModel(long contentId,
long groupId,
java.lang.String xml)
protected com.liferay.portlet.dynamicdatamapping.model.DDMStructureLinkModel newDDMStructureLinkModel(long classNameId,
long classPK,
long structureId)
protected com.liferay.portlet.dynamicdatamapping.model.DDMStructureModel newDDMStructureModel(long groupId,
long classNameId,
java.lang.String structureKey,
java.lang.String xsd)
protected com.liferay.portlet.documentlibrary.model.DLFileEntryModel newDlFileEntryModel(com.liferay.portlet.documentlibrary.model.DLFolderModel dlFolerModel,
int index)
protected com.liferay.portlet.documentlibrary.model.DLFolderModel newDLFolderModel(long groupId,
long parentFolderId,
int index)
protected com.liferay.portal.model.GroupModel newGroupModel(long groupId,
long classNameId,
long classPK,
java.lang.String name,
boolean site)
throws java.lang.Exception
java.lang.Exceptionprotected com.liferay.portal.model.LayoutSetModel newLayoutSetModel(long groupId,
boolean privateLayout,
int pageCount)
protected com.liferay.portlet.messageboards.model.MBCategoryModel newMBCategoryModel(long groupId,
int index)
protected com.liferay.portlet.messageboards.model.MBMessageModel newMBMessageModel(long groupId,
long classNameId,
long classPK,
long categoryId,
long threadId,
long messageId,
long rootMessageId,
long parentMessageId,
java.lang.String subject,
java.lang.String body)
protected com.liferay.portlet.messageboards.model.MBThreadModel newMBThreadModel(long threadId,
long groupId,
long categoryId,
long rootMessageId,
int messageCount)
protected com.liferay.portal.model.PortletPreferencesModel newPortletPreferencesModel(long plid,
java.lang.String portletId,
java.lang.String preferences)
protected com.liferay.portal.model.ResourcePermissionModel newResourcePermissionModel(java.lang.String name,
java.lang.String primKey,
long roleId,
long ownerId)
protected java.util.List<com.liferay.portal.model.ResourcePermissionModel> newResourcePermissionModels(java.lang.String name,
java.lang.String primKey,
long ownerId)
protected com.liferay.portal.model.RoleModel newRoleModel(java.lang.String name,
int type)
protected com.liferay.portlet.social.model.SocialActivityModel newSocialActivityModel(long groupId,
long classNameId,
long classPK,
int type,
java.lang.String extraData)
protected com.liferay.portal.model.SubscriptionModel newSubscriptionModel(long classNameId,
long classPK)
protected com.liferay.portal.model.UserModel newUserModel(long userId,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String screenName,
boolean defaultUser)
protected com.liferay.portlet.wiki.model.WikiNodeModel newWikiNodeModel(long groupId,
int index)
protected com.liferay.portlet.wiki.model.WikiPageModel newWikiPageModel(com.liferay.portlet.wiki.model.WikiNodeModel wikiNodeModel,
int index)
protected java.lang.String nextDDLCustomFieldName(long groupId,
int customFieldIndex)
protected java.util.Date nextFutureDate()