Class VirtualHostLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService,CTService<VirtualHost>,PersistedModelLocalService,ServiceWrapper<VirtualHostLocalService>,VirtualHostLocalService
VirtualHostLocalService.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualHostLocalServiceWrapper(VirtualHostLocalService virtualHostLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddVirtualHost(VirtualHost virtualHost) Adds the virtual host to the database.createPersistedModel(Serializable primaryKeyObj) createVirtualHost(long virtualHostId) Creates a new virtual host with the primary key.deletePersistedModel(PersistedModel persistedModel) deleteVirtualHost(long virtualHostId) Deletes the virtual host with the primary key from the database.deleteVirtualHost(VirtualHost virtualHost) Deletes the virtual host from the database.<T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>dynamicQuery(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>dynamicQuery(DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.<T> List<T>dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchVirtualHost(long virtualHostId) fetchVirtualHost(long companyId, long layoutSetId) Deprecated.fetchVirtualHost(String hostname) Returns the OSGi service identifier.getPersistedModel(Serializable primaryKeyObj) getVirtualHost(long virtualHostId) Returns the virtual host with the primary key.getVirtualHost(long companyId, long layoutSetId) Deprecated.As of Mueller (7.2.x), replaced bygetVirtualHosts(long, long)getVirtualHost(String hostname) getVirtualHosts(int start, int end) Returns a range of all the virtual hosts.getVirtualHosts(long companyId) getVirtualHosts(long companyId, long layoutSetId) intReturns the number of virtual hosts.longgetVirtualHostsCount(long excludedLayoutSetId, String[] virtualHostNames) voidsetWrappedService(VirtualHostLocalService virtualHostLocalService) updateVirtualHost(long companyId, long layoutSetId, String hostname) Deprecated.As of Mueller (7.2.x), replaced byupdateVirtualHosts(long, long, TreeMap)updateVirtualHost(VirtualHost virtualHost) Updates the virtual host in the database or adds it if it does not yet exist.updateVirtualHosts(long companyId, long layoutSetId, TreeMap<String, String> hostnames) <R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<VirtualHost>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
VirtualHostLocalServiceWrapper
public VirtualHostLocalServiceWrapper() -
VirtualHostLocalServiceWrapper
-
-
Method Details
-
addVirtualHost
Adds the virtual host to the database. Also notifies the appropriate model listeners.Important: Inspect VirtualHostLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addVirtualHostin interfaceVirtualHostLocalService- Parameters:
virtualHost- the virtual host- Returns:
- the virtual host that was added
-
createPersistedModel
- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Specified by:
createPersistedModelin interfaceVirtualHostLocalService- Throws:
PortalExceptionPortalException
-
createVirtualHost
Creates a new virtual host with the primary key. Does not add the virtual host to the database.- Specified by:
createVirtualHostin interfaceVirtualHostLocalService- Parameters:
virtualHostId- the primary key for the new virtual host- Returns:
- the new virtual host
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Specified by:
deletePersistedModelin interfaceVirtualHostLocalService- Throws:
PortalExceptionPortalException
-
deleteVirtualHost
Deletes the virtual host with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect VirtualHostLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteVirtualHostin interfaceVirtualHostLocalService- Parameters:
virtualHostId- the primary key of the virtual host- Returns:
- the virtual host that was removed
- Throws:
PortalException- if a virtual host with the primary key could not be foundPortalException
-
deleteVirtualHost
Deletes the virtual host from the database. Also notifies the appropriate model listeners.Important: Inspect VirtualHostLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteVirtualHostin interfaceVirtualHostLocalService- Parameters:
virtualHost- the virtual host- Returns:
- the virtual host that was removed
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacePersistedModelLocalService- Specified by:
dslQueryin interfaceVirtualHostLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacePersistedModelLocalService- Specified by:
dslQueryCountin interfaceVirtualHostLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceVirtualHostLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceVirtualHostLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.VirtualHostModelImpl.- Specified by:
dynamicQueryin interfaceVirtualHostLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.VirtualHostModelImpl.- Specified by:
dynamicQueryin interfaceVirtualHostLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceVirtualHostLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceVirtualHostLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchVirtualHost
- Specified by:
fetchVirtualHostin interfaceVirtualHostLocalService
-
fetchVirtualHost
Deprecated.As of Mueller (7.2.x), replaced bygetVirtualHosts(long, long)- Specified by:
fetchVirtualHostin interfaceVirtualHostLocalService
-
fetchVirtualHost
- Specified by:
fetchVirtualHostin interfaceVirtualHostLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceVirtualHostLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceVirtualHostLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceVirtualHostLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Specified by:
getPersistedModelin interfaceVirtualHostLocalService- Throws:
PortalExceptionPortalException
-
getVirtualHost
Returns the virtual host with the primary key.- Specified by:
getVirtualHostin interfaceVirtualHostLocalService- Parameters:
virtualHostId- the primary key of the virtual host- Returns:
- the virtual host
- Throws:
PortalException- if a virtual host with the primary key could not be foundPortalException
-
getVirtualHost
@Deprecated public VirtualHost getVirtualHost(long companyId, long layoutSetId) throws PortalException Deprecated.As of Mueller (7.2.x), replaced bygetVirtualHosts(long, long)- Specified by:
getVirtualHostin interfaceVirtualHostLocalService- Throws:
PortalException
-
getVirtualHost
- Specified by:
getVirtualHostin interfaceVirtualHostLocalService- Throws:
PortalException
-
getVirtualHosts
Returns a range of all the virtual hosts.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.VirtualHostModelImpl.- Specified by:
getVirtualHostsin interfaceVirtualHostLocalService- Parameters:
start- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)- Returns:
- the range of virtual hosts
-
getVirtualHosts
- Specified by:
getVirtualHostsin interfaceVirtualHostLocalService
-
getVirtualHosts
- Specified by:
getVirtualHostsin interfaceVirtualHostLocalService
-
getVirtualHostsCount
public int getVirtualHostsCount()Returns the number of virtual hosts.- Specified by:
getVirtualHostsCountin interfaceVirtualHostLocalService- Returns:
- the number of virtual hosts
-
getVirtualHostsCount
- Specified by:
getVirtualHostsCountin interfaceVirtualHostLocalService
-
updateVirtualHost
Deprecated.As of Mueller (7.2.x), replaced byupdateVirtualHosts(long, long, TreeMap)- Specified by:
updateVirtualHostin interfaceVirtualHostLocalService
-
updateVirtualHost
Updates the virtual host in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect VirtualHostLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updateVirtualHostin interfaceVirtualHostLocalService- Parameters:
virtualHost- the virtual host- Returns:
- the virtual host that was updated
-
updateVirtualHosts
public List<VirtualHost> updateVirtualHosts(long companyId, long layoutSetId, TreeMap<String, String> hostnames) - Specified by:
updateVirtualHostsin interfaceVirtualHostLocalService
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCTService<VirtualHost>- Specified by:
getCTPersistencein interfaceVirtualHostLocalService
-
getModelClass
- Specified by:
getModelClassin interfaceCTService<VirtualHost>- Specified by:
getModelClassin interfaceVirtualHostLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<VirtualHost>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCTService<VirtualHost>- Specified by:
updateWithUnsafeFunctionin interfaceVirtualHostLocalService- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<VirtualHostLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<VirtualHostLocalService>
-
getVirtualHosts(long, long)