/** * Returns all relations for the given resource matching the given filter.<p> * * @param dbc the current db context * @param resource the resource to retrieve the relations for * @param filter the filter to match the relation * * @return all {@link CmsRelation} objects for the given resource matching the given filter * * @throws CmsException if something goes wrong * * @see CmsSecurityManager#getRelationsForResource(CmsRequestContext, CmsResource, CmsRelationFilter) */ public List getRelationsForResource(CmsDbContext dbc, CmsResource resource, CmsRelationFilter filter) throws CmsException { CmsUUID projectId = getProjectIdForContext(dbc); return m_vfsDriver.readRelations(dbc, projectId, resource, filter); }
/** * Returns all relations for the given resource matching the given filter.<p> * * @param dbc the current db context * @param resource the resource to retrieve the relations for * @param filter the filter to match the relation * * @return all relations for the given resource matching the given filter * * @throws CmsException if something goes wrong * * @see CmsSecurityManager#getRelationsForResource(CmsRequestContext, CmsResource, CmsRelationFilter) */ public List<CmsRelation> getRelationsForResource(CmsDbContext dbc, CmsResource resource, CmsRelationFilter filter) throws CmsException { CmsUUID projectId = getProjectIdForContext(dbc); return getVfsDriver(dbc).readRelations(dbc, projectId, resource, filter); }
/** * Reads a resource from the VFS, using the specified resource filter.<p> * * @param dbc the current database context * @param structureID the structure id of the resource to read * @param filter the resource filter to use while reading * * @return the resource that was read * * @throws CmsDataAccessException if something goes wrong * * @see CmsObject#readResource(CmsUUID, CmsResourceFilter) * @see CmsObject#readResource(CmsUUID) */ public CmsResource readResource(CmsDbContext dbc, CmsUUID structureID, CmsResourceFilter filter) throws CmsDataAccessException { CmsUUID projectId = getProjectIdForContext(dbc); // please note: the filter will be applied in the security manager later CmsResource resource = m_vfsDriver.readResource(dbc, projectId, structureID, filter.includeDeleted()); // context dates need to be updated updateContextDates(dbc, resource); // return the resource return resource; }
/** * Reads a resource from the VFS, using the specified resource filter.<p> * * @param dbc the current database context * @param resourcePath the name of the resource to read (full path) * @param filter the resource filter to use while reading * * @return the resource that was read * * @throws CmsDataAccessException if something goes wrong * * @see CmsObject#readResource(String, CmsResourceFilter) * @see CmsObject#readResource(String) * @see CmsObject#readFile(CmsResource) */ public CmsResource readResource(CmsDbContext dbc, String resourcePath, CmsResourceFilter filter) throws CmsDataAccessException { CmsUUID projectId = getProjectIdForContext(dbc); // please note: the filter will be applied in the security manager later CmsResource resource = m_vfsDriver.readResource(dbc, projectId, resourcePath, filter.includeDeleted()); // context dates need to be updated updateContextDates(dbc, resource); // return the resource return resource; }
/** * Reads a resource from the VFS, using the specified resource filter.<p> * * @param dbc the current database context * @param structureID the structure id of the resource to read * @param filter the resource filter to use while reading * * @return the resource that was read * * @throws CmsDataAccessException if something goes wrong * * @see CmsObject#readResource(CmsUUID, CmsResourceFilter) * @see CmsObject#readResource(CmsUUID) */ public CmsResource readResource(CmsDbContext dbc, CmsUUID structureID, CmsResourceFilter filter) throws CmsDataAccessException { CmsUUID projectId = getProjectIdForContext(dbc); // please note: the filter will be applied in the security manager later CmsResource resource = getVfsDriver(dbc).readResource(dbc, projectId, structureID, filter.includeDeleted()); // context dates need to be updated updateContextDates(dbc, resource); // return the resource return resource; }
repairCategories(dbc, getProjectIdForContext(dbc), target);
/** * Reads a resource from the VFS, using the specified resource filter.<p> * * @param dbc the current database context * @param resourcePath the name of the resource to read (full path) * @param filter the resource filter to use while reading * * @return the resource that was read * * @throws CmsDataAccessException if something goes wrong * * @see CmsObject#readResource(String, CmsResourceFilter) * @see CmsObject#readResource(String) * @see CmsObject#readFile(CmsResource) */ public CmsResource readResource(CmsDbContext dbc, String resourcePath, CmsResourceFilter filter) throws CmsDataAccessException { CmsUUID projectId = getProjectIdForContext(dbc); // please note: the filter will be applied in the security manager later CmsResource resource = getVfsDriver(dbc).readResource(dbc, projectId, resourcePath, filter.includeDeleted()); // context dates need to be updated updateContextDates(dbc, resource); // return the resource return resource; }
repairCategories(dbc, getProjectIdForContext(dbc), target);
CmsUUID projectId = getProjectIdForContext(dbc);
CmsUUID projectId = getProjectIdForContext(dbc);
CmsUUID projectId = getProjectIdForContext(dbc); String cacheKey = getCacheKey(CACHE_ALL_PROPERTIES, search, projectId, resource.getRootPath());
CmsUUID projectId = getProjectIdForContext(dbc); String cacheKey = getCacheKey(CACHE_ALL_PROPERTIES, search, projectId, resource.getRootPath());