/** * Adds a company group if it does not exist. This method is typically used * when a virtual host is added. * * @param companyId the primary key of the company * @throws PortalException if a portal exception occurred */ public static void checkCompanyGroup(long companyId) throws com.liferay.portal.kernel.exception.PortalException { getService().checkCompanyGroup(companyId); }
/** * @throws PortalException */ public static java.util.List<com.liferay.portal.kernel.model.Group> getUserGroups( long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException { return getService().getUserGroups(userId, start, end, orderByComparator); }
/** * Returns all the groups related to the user groups. * * @param userGroups the user groups * @return the groups related to the user groups */ public static java.util.List<com.liferay.portal.kernel.model.Group> getUserGroupsRelatedGroups( java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) { return getService().getUserGroupsRelatedGroups(userGroups); }
/** * Returns the userIds of the users associated with the group. * * @param groupId the groupId of the group * @return long[] the userIds of users associated with the group */ public static long[] getUserPrimaryKeys(long groupId) { return getService().getUserPrimaryKeys(groupId); }
/** * Creates systems groups and other related data needed by the system on the * very first startup. Also takes care of creating the Control Panel groups * and layouts. * * @param companyId the primary key of the company * @throws PortalException if a portal exception occurred */ public static void checkSystemGroups(long companyId) throws com.liferay.portal.kernel.exception.PortalException { getService().checkSystemGroups(companyId); }
/** * Deletes the group with the primary key from the database. Also notifies the appropriate model listeners. * * @param groupId the primary key of the group * @return the group that was removed * @throws PortalException if a group with the primary key could not be found */ public static com.liferay.portal.kernel.model.Group deleteGroup( long groupId) throws com.liferay.portal.kernel.exception.PortalException { return getService().deleteGroup(groupId); }
/** * @throws PortalException */ public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException { return getService().deletePersistedModel(persistedModel); }
/** * Returns the number of rows matching the dynamic query. * * @param dynamicQuery the dynamic query * @param projection the projection to apply to the query * @return the number of rows matching the dynamic query */ public static long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) { return getService().dynamicQueryCount(dynamicQuery, projection); }
/** * Returns the groups with the matching primary keys. * * @param groupIds the primary keys of the groups * @return the groups with the primary keys * @throws PortalException if a portal exception occurred */ public static java.util.List<com.liferay.portal.kernel.model.Group> getGroups( long[] groupIds) throws com.liferay.portal.kernel.exception.PortalException { return getService().getGroups(groupIds); }
public static java.util.List<com.liferay.portal.kernel.model.Group> getOrganizationGroups( long organizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) { return getService() .getOrganizationGroups(organizationId, start, end, orderByComparator); }
/** * Returns the groups associated with the user groups. * * @param userGroups the user groups * @return the groups associated with the user groups * @throws PortalException if a portal exception occurred */ public static java.util.List<com.liferay.portal.kernel.model.Group> getUserGroupsGroups( java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) throws com.liferay.portal.kernel.exception.PortalException { return getService().getUserGroupsGroups(userGroups); }
/** * Returns <code>true</code> if the live group has a staging group. * * @param liveGroupId the primary key of the live group * @return <code>true</code> if the live group has a staging group; <code>false</code> otherwise */ public static boolean hasStagingGroup(long liveGroupId) { return getService().hasStagingGroup(liveGroupId); }
/** * Performs a dynamic query on the database and returns the matching rows. * * @param dynamicQuery the dynamic query * @return the matching rows */ public static <T> java.util.List<T> dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { return getService().dynamicQuery(dynamicQuery); }
/** * Returns the company group. * * @param companyId the primary key of the company * @return the group associated with the company * @throws PortalException if a portal exception occurred */ public static com.liferay.portal.kernel.model.Group getCompanyGroup( long companyId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getCompanyGroup(companyId); }
/** * Returns the group with the primary key. * * @param groupId the primary key of the group * @return the group * @throws PortalException if a group with the primary key could not be found */ public static com.liferay.portal.kernel.model.Group getGroup(long groupId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getGroup(groupId); }
/** * @deprecated As of Wilberforce (7.0.x), replaced by {@link Group#getDescriptiveName(Locale)} */ @Deprecated public static String getGroupDescriptiveName(long groupId, java.util.Locale locale) throws com.liferay.portal.kernel.exception.PortalException { return getService().getGroupDescriptiveName(groupId, locale); }
public static java.util.List<com.liferay.portal.kernel.model.Group> getGroups( long companyId, long parentGroupId, boolean site, boolean inheritContent) { return getService() .getGroups(companyId, parentGroupId, site, inheritContent); }
/** * Returns the staging group. * * @param liveGroupId the primary key of the live group * @return the staging group * @throws PortalException if a portal exception occurred */ public static com.liferay.portal.kernel.model.Group getStagingGroup( long liveGroupId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getStagingGroup(liveGroupId); }
/** * Returns the default user's personal site group. * * @param companyId the primary key of the company * @return the default user's personal site group * @throws PortalException if a portal exception occurred */ public static com.liferay.portal.kernel.model.Group getUserPersonalSiteGroup( long companyId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getUserPersonalSiteGroup(companyId); }
public static void validateRemote(long groupId, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId) throws com.liferay.portal.kernel.exception.PortalException { getService() .validateRemote(groupId, remoteAddress, remotePort, remotePathContext, secureConnection, remoteGroupId); }