/** * Returns all the roles with the primary keys. * * @param roleIds the primary keys of the roles * @return the roles with the primary keys */ @Override public java.util.List<com.liferay.portal.kernel.model.Role> getRoles( long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException { return _roleLocalService.getRoles(roleIds); }
/** * Returns all the roles with the types. * * @param companyId the primary key of the company * @param types the role types (optionally <code>null</code>) * @return the roles with the types */ @Override public java.util.List<com.liferay.portal.kernel.model.Role> getRoles( long companyId, int[] types) { return _roleLocalService.getRoles(companyId, types); }
/** * Returns all the roles of the type and subtype. * * @param type the role's type (optionally <code>0</code>) * @param subtype the role's subtype (optionally <code>null</code>) * @return the roles of the type and subtype */ @Override public java.util.List<com.liferay.portal.kernel.model.Role> getRoles( int type, String subtype) { return _roleLocalService.getRoles(type, subtype); }
/** * Returns all the roles in the company. * * @param companyId the primary key of the company * @return the roles in the company */ @Override public java.util.List<com.liferay.portal.kernel.model.Role> getRoles( long companyId) { return _roleLocalService.getRoles(companyId); }
/** * Returns a range of all the roles. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.RoleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of roles */ @Override public java.util.List<com.liferay.portal.kernel.model.Role> getRoles( int start, int end) { return _roleLocalService.getRoles(start, end); }
/** * Returns all the roles of the type and subtype. * * @param type the role's type (optionally <code>0</code>) * @param subtype the role's subtype (optionally <code>null</code>) * @return the roles of the type and subtype */ public static java.util.List<com.liferay.portal.kernel.model.Role> getRoles( int type, String subtype) { return getService().getRoles(type, subtype); }
/** * Returns all the roles with the primary keys. * * @param roleIds the primary keys of the roles * @return the roles with the primary keys */ public static java.util.List<com.liferay.portal.kernel.model.Role> getRoles( long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException { return getService().getRoles(roleIds); }
/** * Returns all the roles in the company. * * @param companyId the primary key of the company * @return the roles in the company */ public static java.util.List<com.liferay.portal.kernel.model.Role> getRoles( long companyId) { return getService().getRoles(companyId); }
/** * Returns all the roles with the types. * * @param companyId the primary key of the company * @param types the role types (optionally <code>null</code>) * @return the roles with the types */ public static java.util.List<com.liferay.portal.kernel.model.Role> getRoles( long companyId, int[] types) { return getService().getRoles(companyId, types); }
/** * Returns a range of all the roles. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.RoleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of roles */ public static java.util.List<com.liferay.portal.kernel.model.Role> getRoles( int start, int end) { return getService().getRoles(start, end); }