Class SystemServiceImpl
java.lang.Object
de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
de.hybris.platform.cockpit.services.impl.SystemServiceImpl
- All Implemented Interfaces:
SystemService
- Direct Known Subclasses:
MockSystemService
-
Field Summary
FieldsFields inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
modelService, typeService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddUserRightToCache(PK relatedObject, String right, boolean value) booleancheckAttributePermissionOn(String typeCode, String attributeQualifier, String permissionCode) booleancheckPermissionOn(UserModel user, String typeCode, String permissionCode) booleancheckPermissionOn(String typeCode, String permissionCode) check the type access rights for the current userReturns all for the user readable available hybris languages iso codes.Returns all for the user readable hybris languages as beans.Returns all for the user writeable available hybris languages iso codes.Returns all for the user writeable hybris languages as beans.Returns all available hybris languages iso codes.Returns all available hybris languages as beans.getCatalogVersion(TypedObject typedObject) get the catalog version for passed typedObjectget the current hybris session languageget the user from the current sessionTries to find a matching hybris language for a given locale.getUserByName(String name) get the first user with a given namegetUserByUID(String uid) get the user with a given uuidprotected BooleangetUserRightFromCache(PK relatedObject, String right) getUsersByName(String name, String typecode) get a list of all user with a given namebooleanvoidset the language of the current sessionvoidsetUserRightsCache(UserRightsCache urCache) voidsetUserService(UserService userService) Methods inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelService
-
Field Details
-
urCache
-
-
Constructor Details
-
SystemServiceImpl
public SystemServiceImpl()
-
-
Method Details
-
getAvailableLanguages
Description copied from interface:SystemServiceReturns all available hybris languages as beans.- Specified by:
getAvailableLanguagesin interfaceSystemService
-
getAvailableLanguageIsos
Description copied from interface:SystemServiceReturns all available hybris languages iso codes.- Specified by:
getAvailableLanguageIsosin interfaceSystemService
-
getAllReadableLanguages
Description copied from interface:SystemServiceReturns all for the user readable hybris languages as beans.- Specified by:
getAllReadableLanguagesin interfaceSystemService
-
getAllReadableLanguageIsos
Description copied from interface:SystemServiceReturns all for the user readable available hybris languages iso codes.- Specified by:
getAllReadableLanguageIsosin interfaceSystemService
-
getAllWriteableLanguages
Description copied from interface:SystemServiceReturns all for the user writeable hybris languages as beans.- Specified by:
getAllWriteableLanguagesin interfaceSystemService
-
getAllWriteableLanguageIsos
Description copied from interface:SystemServiceReturns all for the user writeable available hybris languages iso codes.- Specified by:
getAllWriteableLanguageIsosin interfaceSystemService
-
getLanguageForLocale
Description copied from interface:SystemServiceTries to find a matching hybris language for a given locale. If this fails the method returns the current hybris session language !- Specified by:
getLanguageForLocalein interfaceSystemService- Parameters:
loc- the locale to find a hybris language for
-
getCurrentLanguage
Description copied from interface:SystemServiceget the current hybris session language- Specified by:
getCurrentLanguagein interfaceSystemService- Returns:
- the current hybris session language
-
getCurrentUser
Description copied from interface:SystemServiceget the user from the current session- Specified by:
getCurrentUserin interfaceSystemService- Returns:
- the user
-
getUserByUID
Description copied from interface:SystemServiceget the user with a given uuid- Specified by:
getUserByUIDin interfaceSystemService- Parameters:
uid- the uuid- Returns:
- the user
-
getUsersByName
Description copied from interface:SystemServiceget a list of all user with a given name- Specified by:
getUsersByNamein interfaceSystemService- Parameters:
name- the name of the userstypecode- the typecode of the class representing a user, or null for classUser- Returns:
- the user list
-
getUserByName
Description copied from interface:SystemServiceget the first user with a given name- Specified by:
getUserByNamein interfaceSystemService- Parameters:
name- the username- Returns:
- the user
-
setSessionLanguage
Description copied from interface:SystemServiceset the language of the current session- Specified by:
setSessionLanguagein interfaceSystemService- Parameters:
lang- the language
-
checkPermissionOn
-
checkPermissionOn
Description copied from interface:SystemServicecheck the type access rights for the current user- Specified by:
checkPermissionOnin interfaceSystemService- Parameters:
typeCode- the code of the type to checkpermissionCode- the code of the right to check, seeAccessManager- Returns:
- true, if the current user has the specified access right, false otherwise
-
checkAttributePermissionOn
public boolean checkAttributePermissionOn(String typeCode, String attributeQualifier, String permissionCode) - Specified by:
checkAttributePermissionOnin interfaceSystemService
-
getCatalogVersion
Description copied from interface:SystemServiceget the catalog version for passed typedObject- Specified by:
getCatalogVersionin interfaceSystemService- Returns:
- appropriate catalog version when found
-
setUserRightsCache
-
getUserRightFromCache
-
addUserRightToCache
-
setUserService
-
getUserService
-
itemExist
- Specified by:
itemExistin interfaceSystemService- Parameters:
pk- the pk of item- Returns:
- true if item exist, false if it was deleted.
-