public class CommunityCreator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_COMPANY_WEB_ID |
static String |
USERNAME |
Modifier | Constructor and Description |
---|---|
protected |
CommunityCreator() |
Modifier and Type | Method and Description |
---|---|
long |
associateLayout(com.liferay.portal.model.User currentUser,
com.liferay.portal.model.Group group,
String communityName,
String communityDesc,
long parentID)
Use this method for creating Site programmatically and associate a default layout to it
|
protected com.liferay.portal.model.Group |
createDefaultCommunity(javax.portlet.ActionRequest request)
Create the group in the database
|
static com.liferay.portal.model.Company |
getCompany()
return the companyId
|
String |
getDefaultCommunityName()
read tDefault Community name from a property file and returns it
|
static String |
getDefaultCompanyWebId() |
static CommunityCreator |
getInstance() |
public static final String DEFAULT_COMPANY_WEB_ID
public static final String USERNAME
public static CommunityCreator getInstance()
public static com.liferay.portal.model.Company getCompany() throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
webId
- .com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
- .com.liferay.portal.kernel.exception.SystemException
- .public static String getDefaultCompanyWebId()
protected com.liferay.portal.model.Group createDefaultCommunity(javax.portlet.ActionRequest request) throws Exception
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalException
Exception
public long associateLayout(com.liferay.portal.model.User currentUser, com.liferay.portal.model.Group group, String communityName, String communityDesc, long parentID) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
communityName
- -communityDesc
- -parentID
- -com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalException
public String getDefaultCommunityName()
Copyright © 2018. All Rights Reserved.