📄 iuseradminsessionlocal.java
字号:
* @param admin the adminsitrator performing the action * @param certserno the serno of certificate to revoke. * @param username the username to revoke. * @param reason the reason of revokation, one of the RevokedCertInfo.XX constants. */ public void revokeCert( org.ejbca.core.model.log.Admin admin,java.math.BigInteger certserno,java.lang.String issuerdn,java.lang.String username,int reason ) throws org.ejbca.core.model.authorization.AuthorizationDeniedException, javax.ejb.FinderException; /** * Reactivates the certificate with certificate serno. * @param admin the adminsitrator performing the action * @param certserno serial number of certificate to reactivate. * @param issuerdn the issuerdn of certificate to reactivate. * @param username the username joined to the certificate. */ public void unRevokeCert( org.ejbca.core.model.log.Admin admin,java.math.BigInteger certserno,java.lang.String issuerdn,java.lang.String username ) throws org.ejbca.core.model.authorization.AuthorizationDeniedException, javax.ejb.FinderException; /** * Finds a user. * @param admin the administrator performing the action * @param username username. * @return UserDataVO or null if the user is not found. */ public org.ejbca.core.model.ra.UserDataVO findUser( org.ejbca.core.model.log.Admin admin,java.lang.String username ) throws javax.ejb.FinderException, org.ejbca.core.model.authorization.AuthorizationDeniedException; /** * Finds a user by its subject and issuer DN. * @param admin * @param subjectdn * @param issuerdn * @return UserDataVO or null if the user is not found. */ public org.ejbca.core.model.ra.UserDataVO findUserBySubjectAndIssuerDN( org.ejbca.core.model.log.Admin admin,java.lang.String subjectdn,java.lang.String issuerdn ) throws org.ejbca.core.model.authorization.AuthorizationDeniedException; /** * Finds a user by its subject DN. * @param admin * @param subjectdn * @return UserDataVO or null if the user is not found. */ public org.ejbca.core.model.ra.UserDataVO findUserBySubjectDN( org.ejbca.core.model.log.Admin admin,java.lang.String subjectdn ) throws org.ejbca.core.model.authorization.AuthorizationDeniedException; /** * Finds a user by its Email. * @param email * @return UserDataVO or null if the user is not found. */ public java.util.Collection findUserByEmail( org.ejbca.core.model.log.Admin admin,java.lang.String email ) throws org.ejbca.core.model.authorization.AuthorizationDeniedException; /** * Method that checks if user with specified users certificate exists in database and is set as administrator. * @param subjectdn * @throws AuthorizationDeniedException if user isn't an administrator. */ public void checkIfCertificateBelongToAdmin( org.ejbca.core.model.log.Admin admin,java.math.BigInteger certificatesnr,java.lang.String issuerdn ) throws org.ejbca.core.model.authorization.AuthorizationDeniedException; /** * Finds all users with a specified status. * @param status the status to look for, from 'UserData'. * @return Collection of UserDataVO */ public java.util.Collection findAllUsersByStatus( org.ejbca.core.model.log.Admin admin,int status ) throws javax.ejb.FinderException; /** * Finds all users registered to a specified ca. * @param caid the caid of the CA, from 'UserData'. * @return Collection of UserDataVO */ public java.util.Collection findAllUsersByCaId( org.ejbca.core.model.log.Admin admin,int caid ) throws javax.ejb.FinderException; /** * Finds all users and returns the first MAXIMUM_QUERY_ROWCOUNT. * @return Collection of UserDataVO */ public java.util.Collection findAllUsersWithLimit( org.ejbca.core.model.log.Admin admin ) throws javax.ejb.FinderException; /** * Finds all users with a specified status and returns the first MAXIMUM_QUERY_ROWCOUNT. * @param status the new status, from 'UserData'. */ public java.util.Collection findAllUsersByStatusWithLimit( org.ejbca.core.model.log.Admin admin,int status,boolean onlybatchusers ) throws javax.ejb.FinderException; /** * Method to execute a customized query on the ra user data. The parameter query should be a legal Query object. * @param query a number of statments compiled by query class to a SQL 'WHERE'-clause statment. * @param caauthorizationstring is a string placed in the where clause of SQL query indication which CA:s the administrator is authorized to view. * @param endentityprofilestring is a string placed in the where clause of SQL query indication which endentityprofiles the administrator is authorized to view. * @param numberofrows the number of rows to fetch, use 0 for default UserAdminConstants.MAXIMUM_QUERY_ROWCOUNT * @return a collection of UserDataVO. Maximum size of Collection is defined i IUserAdminSessionRemote.MAXIMUM_QUERY_ROWCOUNT * @throws IllegalQueryException when query parameters internal rules isn't fullfilled. * @see se.anatom.ejbca.util.query.Query */ public java.util.Collection query( org.ejbca.core.model.log.Admin admin,org.ejbca.util.query.Query query,java.lang.String caauthorizationstring,java.lang.String endentityprofilestring,int numberofrows ) throws org.ejbca.util.query.IllegalQueryException; /** * Methods that checks if a user exists in the database having the given endentityprofileid. This function is mainly for avoiding desyncronisation when a end entity profile is deleted. * @param endentityprofileid the id of end entity profile to look for. * @return true if endentityprofileid exists in userdatabase. */ public boolean checkForEndEntityProfileId( org.ejbca.core.model.log.Admin admin,int endentityprofileid ) ; /** * Methods that checks if a user exists in the database having the given certificateprofileid. This function is mainly for avoiding desyncronisation when a certificateprofile is deleted. * @param certificateprofileid the id of certificateprofile to look for. * @return true if certificateproileid exists in userdatabase. */ public boolean checkForCertificateProfileId( org.ejbca.core.model.log.Admin admin,int certificateprofileid ) ; /** * Methods that checks if a user exists in the database having the given caid. This function is mainly for avoiding desyncronisation when a CAs is deleted. * @param caid the id of CA to look for. * @return true if caid exists in userdatabase. */ public boolean checkForCAId( org.ejbca.core.model.log.Admin admin,int caid ) ; /** * Methods that checks if a user exists in the database having the given hard token profile id. This function is mainly for avoiding desyncronisation when a hard token profile is deleted. * @param profileid of hardtokenprofile to look for. * @return true if proileid exists in userdatabase. */ public boolean checkForHardTokenProfileId( org.ejbca.core.model.log.Admin admin,int profileid ) ; /** * Method checking if username already exists in database. * @return true if username already exists. */ public boolean existsUser( org.ejbca.core.model.log.Admin admin,java.lang.String username ) ;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -