public class AdminAdminService
extends org.youngmonkeys.ezyplatform.service.DefaultAdminService
| Constructor | Description |
|---|---|
AdminAdminService(org.youngmonkeys.ezyplatform.time.ClockProxy clock,
AdminAdminRoleService roleService,
AdminSettingService settingService,
AdminAdminMetaService adminMetaService,
AdminAdminAccessTokenService accessTokenService,
org.youngmonkeys.ezyplatform.manager.PasswordManager passwordManager,
AdminAdminRepository adminRepository,
AdminAdminAccessTokenRepository accessTokenRepository,
AdminEntityToModelConverter entityToModelConverter,
AdminModelToEntityConverter modelToEntityConverter,
AdminResultToModelConverter resultToModelConverter) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
activateAdmin(String username) |
|
org.youngmonkeys.ezyplatform.model.AdminModel |
addAdmin(AddAdminModel model) |
|
org.youngmonkeys.ezyplatform.model.AdminAccessTokenModel |
addAdminAndGetAccessToken(AddAdminModel adminModel) |
|
void |
archiveAdmin(String username,
boolean deleteBySuperAdmin) |
|
void |
blockAdmin(String username,
boolean deleteBySuperAdmin) |
|
boolean |
containsAdminById(long adminId) |
|
boolean |
containsAdminByUsername(String username) |
|
long |
countAllAdmins() |
|
void |
createNewResetPasswordToken(long adminId,
String token,
long tokenExpiredAt) |
|
void |
deleteAdmin(String username,
boolean deleteBySuperAdmin) |
|
org.youngmonkeys.ezyplatform.model.AdminAccessTokenModel |
getAccessTokenByAdminIdAndType(long adminId,
String tokenType) |
|
List<org.youngmonkeys.ezyplatform.model.AdminModel> |
getActiveSuperAdmins(int limit) |
|
List<org.youngmonkeys.ezyplatform.model.AdminModel> |
getAdmins() |
|
List<org.youngmonkeys.ezyplatform.model.AdminModel> |
getAdminsByRoleIds(Collection<Long> roleIds) |
|
List<org.youngmonkeys.ezyplatform.model.AdminModel> |
getAdminsByRoleNames(Collection<String> roleNames) |
|
Optional<org.youngmonkeys.ezyplatform.model.AdminModel> |
getFirstActiveSuperAdmin() |
|
org.youngmonkeys.ezyplatform.model.AdminAccessTokenModel |
getOrCreateAccessTokenByAdminId(long adminId) |
|
org.youngmonkeys.ezyplatform.model.AdminAccessTokenModel |
getOrCreateAccessTokenByAdminId(long adminId,
String tokenType) |
|
boolean |
isAllowAccessAllMedia(long adminId) |
|
boolean |
isAllowAccessAllMedia(long adminId,
org.youngmonkeys.ezyplatform.data.AdminRolesProxy adminRoles) |
|
boolean |
isEnable2FaByAdminId(long adminId) |
|
void |
removeAdminAccessToken(long adminId) |
|
void |
removeAdminAccessToken(long adminId,
String accessToken) |
|
void |
removeAdminAccessToken(String accessToken) |
|
org.youngmonkeys.ezyplatform.model.AdminAccessTokenModel |
renewAccessToken(String accessTokenValue) |
|
void |
setAllowAccessAllMedia(long adminId,
boolean allow) |
|
void |
setNewPassword(long adminId,
String newPassword) |
|
List<org.youngmonkeys.ezyplatform.model.AdminNameModel> |
simpleSearch(String keyword,
int limit) |
|
List<org.youngmonkeys.ezyplatform.model.AdminNameModel> |
simpleSearchByKeywordPrefix(String keywordPrefix,
int limit) |
|
List<org.youngmonkeys.ezyplatform.model.AdminNameModel> |
simpleSearchWithRoleIds(Collection<Long> roleIds,
String keyword,
int limit) |
|
List<org.youngmonkeys.ezyplatform.model.AdminNameModel> |
simpleSearchWithRoleIdsAndKeywordPrefix(Collection<Long> roleIds,
String keywordPrefix,
int limit) |
|
List<org.youngmonkeys.ezyplatform.model.AdminNameModel> |
simpleSearchWithRoleNames(Collection<String> roleNames,
String keyword,
int limit) |
|
List<org.youngmonkeys.ezyplatform.model.AdminNameModel> |
simpleSearchWithRoleNamesAndKeywordPrefix(Collection<String> roleNames,
String keywordPrefix,
int limit) |
|
void |
updateAdmin(long adminId,
UpdateAdminModel model) |
|
void |
updateAdmin(String username,
UpdateAdminModel model) |
|
void |
updateAvatar(long adminId,
long avatarId) |
|
void |
updateCoverImage(long adminId,
long coverImageId) |
|
void |
updateInactivateAdminStatus(String status,
String username,
boolean deleteBySuperAdmin) |
|
void |
updatePassword(long adminId,
String oldPassword,
String newPassword) |
|
void |
updatePassword(String username,
String newPassword) |
|
void |
updatePassword(String username,
String oldPassword,
String newPassword) |
|
void |
verifyResetPasswordToken(long adminId,
String token,
long tokenExpiredAt) |
getAccessTokenEntityOrThrowByAccessToken, getAdminAccessTokenByAccessToken, getAdminAccessTokenOrThrowByAccessToken, getAdminAvatarCoverImageIdsById, getAdminByAccessToken, getAdminByEmail, getAdminById, getAdminByIdOptional, getAdminByPhone, getAdminByUsername, getAdminByUsernameOptional, getAdminByUsernameOrEmail, getAdminByUuid, getAdminByUuidOptional, getAdminIdByAccessToken, getAdminIdByUuid, getAdminMapByUuids, getAdminNameById, getAdminNameMapByIds, getAdminsByIds, getAdminsByUuids, getAdminUuidNameById, getAdminUuidNameByUuid, getAdminUuidNameMapByIds, getAllAdminStatuses, validateAdminAccessTokenpublic AdminAdminService(org.youngmonkeys.ezyplatform.time.ClockProxy clock,
AdminAdminRoleService roleService,
AdminSettingService settingService,
AdminAdminMetaService adminMetaService,
AdminAdminAccessTokenService accessTokenService,
org.youngmonkeys.ezyplatform.manager.PasswordManager passwordManager,
AdminAdminRepository adminRepository,
AdminAdminAccessTokenRepository accessTokenRepository,
AdminEntityToModelConverter entityToModelConverter,
AdminModelToEntityConverter modelToEntityConverter,
AdminResultToModelConverter resultToModelConverter)
public List<org.youngmonkeys.ezyplatform.model.AdminModel> getAdmins()
public List<org.youngmonkeys.ezyplatform.model.AdminModel> getAdminsByRoleIds(Collection<Long> roleIds)
public List<org.youngmonkeys.ezyplatform.model.AdminModel> getAdminsByRoleNames(Collection<String> roleNames)
public Optional<org.youngmonkeys.ezyplatform.model.AdminModel> getFirstActiveSuperAdmin()
public List<org.youngmonkeys.ezyplatform.model.AdminModel> getActiveSuperAdmins(int limit)
public org.youngmonkeys.ezyplatform.model.AdminAccessTokenModel getAccessTokenByAdminIdAndType(long adminId,
String tokenType)
public org.youngmonkeys.ezyplatform.model.AdminAccessTokenModel getOrCreateAccessTokenByAdminId(long adminId)
public org.youngmonkeys.ezyplatform.model.AdminAccessTokenModel getOrCreateAccessTokenByAdminId(long adminId,
String tokenType)
public org.youngmonkeys.ezyplatform.model.AdminAccessTokenModel renewAccessToken(String accessTokenValue)
public boolean isEnable2FaByAdminId(long adminId)
public boolean containsAdminById(long adminId)
public boolean containsAdminByUsername(String username)
public List<org.youngmonkeys.ezyplatform.model.AdminNameModel> simpleSearch(String keyword, int limit)
public List<org.youngmonkeys.ezyplatform.model.AdminNameModel> simpleSearchByKeywordPrefix(String keywordPrefix, int limit)
public List<org.youngmonkeys.ezyplatform.model.AdminNameModel> simpleSearchWithRoleIds(Collection<Long> roleIds, String keyword, int limit)
public List<org.youngmonkeys.ezyplatform.model.AdminNameModel> simpleSearchWithRoleIdsAndKeywordPrefix(Collection<Long> roleIds, String keywordPrefix, int limit)
public List<org.youngmonkeys.ezyplatform.model.AdminNameModel> simpleSearchWithRoleNames(Collection<String> roleNames, String keyword, int limit)
public List<org.youngmonkeys.ezyplatform.model.AdminNameModel> simpleSearchWithRoleNamesAndKeywordPrefix(Collection<String> roleNames, String keywordPrefix, int limit)
public long countAllAdmins()
public org.youngmonkeys.ezyplatform.model.AdminModel addAdmin(AddAdminModel model)
public org.youngmonkeys.ezyplatform.model.AdminAccessTokenModel addAdminAndGetAccessToken(AddAdminModel adminModel)
public void updateAdmin(long adminId,
UpdateAdminModel model)
public void updateAdmin(String username, UpdateAdminModel model)
public void updateAvatar(long adminId,
long avatarId)
public void updateCoverImage(long adminId,
long coverImageId)
public void setNewPassword(long adminId,
String newPassword)
public void archiveAdmin(String username, boolean deleteBySuperAdmin)
public void blockAdmin(String username, boolean deleteBySuperAdmin)
public void deleteAdmin(String username, boolean deleteBySuperAdmin)
public void updateInactivateAdminStatus(String status, String username, boolean deleteBySuperAdmin)
public void activateAdmin(String username)
public void removeAdminAccessToken(long adminId)
public void removeAdminAccessToken(String accessToken)
public void removeAdminAccessToken(long adminId,
String accessToken)
public void createNewResetPasswordToken(long adminId,
String token,
long tokenExpiredAt)
public void verifyResetPasswordToken(long adminId,
String token,
long tokenExpiredAt)
public void setAllowAccessAllMedia(long adminId,
boolean allow)
public boolean isAllowAccessAllMedia(long adminId)
public boolean isAllowAccessAllMedia(long adminId,
org.youngmonkeys.ezyplatform.data.AdminRolesProxy adminRoles)
Copyright © 2026 Young Monkeys. All rights reserved.