Interface ContentTypeService
- All Known Implementing Classes:
ContentTypeServiceImpl
public interface ContentTypeService
- Author:
- Dejan Brkic
-
Method Summary
Modifier and TypeMethodDescriptionbooleanchangeContentType(String site, String path, String contentType) getAllContentTypes(String site, boolean searchable) getAllowedContentTypesForPath(String site, String relativePath) getContentType(String site, String type) get a content type by the given site and type namegetContentTypeByRelativePath(String site, String relativePath) getContentTypeForContent(String site, String path) get a content type by the given site and the content pathbooleanisUserAllowed(Set<String> userRoles, ContentTypeConfigTO item) check if the user is allowed to access the content type with the given user roles
-
Method Details
-
getContentTypeForContent
get a content type by the given site and the content path- Parameters:
site- site identifierpath- path of the content- Returns:
- content type
- Throws:
ServiceLayerException- general service error
-
isUserAllowed
check if the user is allowed to access the content type with the given user roles- Parameters:
userRoles- user rolesitem- content type- Returns:
- true if user has permissions to access the content type
-
getContentType
get a content type by the given site and type name- Parameters:
site- site identifiertype- content type name- Returns:
- content type
-
getContentTypeByRelativePath
ContentTypeConfigTO getContentTypeByRelativePath(String site, String relativePath) throws ServiceLayerException - Throws:
ServiceLayerException
-
getAllContentTypes
-
getAllowedContentTypesForPath
-
changeContentType
boolean changeContentType(String site, String path, String contentType) throws ServiceLayerException, UserNotFoundException -
getConfigPath
String getConfigPath()
-