Interface SystemService
- All Known Implementing Classes:
MockSystemService,SystemServiceImpl
public interface SystemService
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckAttributePermissionOn(String typeCode, String attributeQualifier, 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 uuidgetUsersByName(String name, String typecode) get a list of all user with a given namebooleanvoidset the language of the current session
-
Method Details
-
getAvailableLanguages
Set<LanguageModel> getAvailableLanguages()Returns all available hybris languages as beans. -
getAvailableLanguageIsos
Returns all available hybris languages iso codes. -
getAllReadableLanguages
Set<LanguageModel> getAllReadableLanguages()Returns all for the user readable hybris languages as beans. -
getAllReadableLanguageIsos
Returns all for the user readable available hybris languages iso codes. -
getAllWriteableLanguages
Set<LanguageModel> getAllWriteableLanguages()Returns all for the user writeable hybris languages as beans. -
getAllWriteableLanguageIsos
Returns all for the user writeable available hybris languages iso codes. -
getLanguageForLocale
Tries to find a matching hybris language for a given locale. If this fails the method returns the current hybris session language !- Parameters:
loc- the locale to find a hybris language for
-
getCurrentLanguage
LanguageModel getCurrentLanguage()get the current hybris session language- Returns:
- the current hybris session language
-
getUsersByName
get a list of all user with a given name- Parameters:
name- the name of the userstypecode- the typecode of the class representing a user, or null for classUser- Returns:
- the user list
-
getUserByUID
get the user with a given uuid- Parameters:
uid- the uuid- Returns:
- the user
-
getUserByName
get the first user with a given name- Parameters:
name- the username- Returns:
- the user
-
checkPermissionOn
check the type access rights for the current user- 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
-
setSessionLanguage
set the language of the current session- Parameters:
lang- the language
-
getCurrentUser
UserModel getCurrentUser()get the user from the current session- Returns:
- the user
-
getCatalogVersion
get the catalog version for passed typedObject- Parameters:
typedObject-- Returns:
- appropriate catalog version when found
-
itemExist
- Parameters:
pk- the pk of item- Returns:
- true if item exist, false if it was deleted.
-