org.equanda.test.dm.server
Class EquandaUserSelectorBean
java.lang.Object
org.equanda.test.dm.server.EquandaUserSelectorBean
- All Implemented Interfaces:
- Serializable, EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>, ExceptionCodes, EquandaUserConstants, EquandaUserSelectorEJB
public class EquandaUserSelectorBean
- extends Object
- implements EquandaUserSelectorEJB, ExceptionCodes, Serializable, EquandaUserConstants
EquandaUserSelector
Definition of a user for a GUI application.
- See Also:
- Serialized Form
| Fields inherited from interface org.equanda.persistence.ExceptionCodes |
CME_DATA_HAS_BEEN_ALREADY_CHANGED, ECV_CANNOT_ADD_NULL_TO_MULTIPLE_FIELD, ECV_COMPARE_CONSTRAINT_NOT_SATISFIED, ECV_COMPARE_TYPE_CONSTRAINT_NOT_SATISFIED, ECV_CONSTRAINT_VIOLATION, ECV_COULD_NOT_TEST_CHOICES_USING_CLASS, ECV_DOWNCAST_CREATE_ERROR, ECV_DOWNCAST_FAILED_CANNOT_DOWNCAST_ROOT, ECV_DOWNCAST_SELECTOR_ERROR, ECV_FAILED_TO_CREATE_INCLUDED_VALUE, ECV_FAILED_TO_UPDATE_VALUE, ECV_FIELD_IS_REQUIRED, ECV_FIELD_IS_UNIQUE, ECV_IMMUTABLE_IF_OTHER_FIELD_IS_SET, ECV_INCLUDE_VALUE_HAS_WRONG_TYPE, ECV_INTERNAL_ERROR_ON_CREATE_INCLUDED_VALUE, ECV_INVALID_TABLE_TYPE, ECV_OTHERSIDE_EMBEDDED_FIELD_IMMUTABLE_ONCE_SET, ECV_VALUE_IS_NOT_ONE_OF_THE_CHOICES, UONA_OPERATION_NOT_ALLOWED, UPE_AUTO_FIELD_PROBLEM, UPE_CANNOT_CREATE_LAZYCOLLECTION, UPE_CANNOT_CREATE_SESSION_FACADE, UPE_CANNOT_INIT_BEAN, UPE_CASCADE_KEEP, UPE_FAILED_PROXY_REMOVE, UPE_FAILED_TO_UPDATE_VALUE, UPE_NULL_UOID_INVALID, UPE_OBJECT_NOT_FOUND, UPE_PERSISTENCE_EXCEPTION, UPE_TRYING_TO_UPDATE_OBJECT_WITH_UOID_NULL, UPE_UOID_NOT_FOUND |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EquandaUserSelectorBean
public EquandaUserSelectorBean()
getEquandaName
public String getEquandaName()
- Specified by:
getEquandaName in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
equandaCreate
@PermitAll
public EquandaUser equandaCreate(String type)
- Specified by:
equandaCreate in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
selectId
@PermitAll
public EquandaUser selectId(Uoid uoid)
throws EquandaPersistenceException
- Specified by:
selectId in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
selectIdEJB
@PermitAll
public EquandaUserEJB selectIdEJB(Uoid uoid)
throws EquandaPersistenceException
- Specified by:
selectIdEJB in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
selectMultipleId
public EquandaUser[] selectMultipleId(Uoid[] arr)
throws EquandaPersistenceException
- Specified by:
selectMultipleId in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
selectEquanda
public List<EquandaUser> selectEquanda(EquandaQuery query)
throws EquandaPersistenceException
- Specified by:
selectEquanda in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
selectEquandaEJB
public List<EquandaUserEJB> selectEquandaEJB(EquandaQuery query)
throws EquandaPersistenceException
- Specified by:
selectEquandaEJB in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
equandaRunQueryId
public List<Uoid> equandaRunQueryId(EquandaQuery query)
throws EquandaPersistenceException
- Specified by:
equandaRunQueryId in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
equandaRunQueryEJB
public List<EquandaUserEJB> equandaRunQueryEJB(EquandaQuery query)
throws EquandaPersistenceException
- Specified by:
equandaRunQueryEJB in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
equandaRunQuery
public List<EquandaUser> equandaRunQuery(EquandaQuery query)
throws EquandaPersistenceException
- Specified by:
equandaRunQuery in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
equandaRunCountQuery
public long equandaRunCountQuery(EquandaQuery query)
throws EquandaPersistenceException
- Specified by:
equandaRunCountQuery in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
equandaRunUpdateQuery
public long equandaRunUpdateQuery(EquandaQuery query)
throws EquandaPersistenceException
- Specified by:
equandaRunUpdateQuery in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
selectEquandaSingle
public EquandaUser selectEquandaSingle(EquandaQuery query)
throws EquandaPersistenceException
- Specified by:
selectEquandaSingle in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
selectEquandaSingleEJB
public EquandaUserEJB selectEquandaSingleEJB(EquandaQuery query)
throws EquandaPersistenceException
- Specified by:
selectEquandaSingleEJB in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
selectFullNameEJB
@PermitAll
public List<EquandaUserEJB> selectFullNameEJB(String firstName,
String name)
throws EquandaPersistenceException
- Specified by:
selectFullNameEJB in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
selectFullName
@PermitAll
public List<EquandaUser> selectFullName(String firstName,
String name)
throws EquandaPersistenceException
- Specified by:
selectFullName in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
selectUserNameEJB
@PermitAll
public EquandaUserEJB selectUserNameEJB(String userName)
throws EquandaPersistenceException
- Specified by:
selectUserNameEJB in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
selectUserName
@PermitAll
public EquandaUser selectUserName(String userName)
throws EquandaPersistenceException
- Specified by:
selectUserName in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
selectUserPasswordEJB
@PermitAll
public EquandaUserEJB selectUserPasswordEJB(String userName,
String password)
throws EquandaPersistenceException
- Specified by:
selectUserPasswordEJB in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
selectUserPassword
@PermitAll
public EquandaUser selectUserPassword(String userName,
String password)
throws EquandaPersistenceException
- Specified by:
selectUserPassword in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
selectAllUsersEJB
@PermitAll
public List<EquandaUserEJB> selectAllUsersEJB()
throws EquandaPersistenceException
- Specified by:
selectAllUsersEJB in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
selectAllUsers
@PermitAll
public List<EquandaUser> selectAllUsers()
throws EquandaPersistenceException
- Specified by:
selectAllUsers in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
selectEquandaAllEJB
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public List<EquandaUserEJB> selectEquandaAllEJB()
throws EquandaPersistenceException
- Specified by:
selectEquandaAllEJB in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
selectEquandaAll
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public List<EquandaUser> selectEquandaAll()
throws EquandaPersistenceException
- Specified by:
selectEquandaAll in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
equandaUpdate
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public EquandaUser equandaUpdate(EquandaUser proxy)
throws EquandaPersistenceException
- Specified by:
equandaUpdate in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
equandaRefresh
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public EquandaUser equandaRefresh(Uoid uoid,
long version)
throws EquandaPersistenceException
- Specified by:
equandaRefresh in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>
- Throws:
EquandaPersistenceException
login
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public void login(Uoid uoid)
throws EquandaPersistenceException
- Specified by:
login in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
userNameLogin
@PermitAll
public void userNameLogin(String _fuserName)
throws EquandaPersistenceException
- Specified by:
userNameLogin in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
userPasswordLogin
@PermitAll
public void userPasswordLogin(String _fuserName,
String _fpassword)
throws EquandaPersistenceException
- Specified by:
userPasswordLogin in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
logout
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public void logout(Uoid uoid)
throws EquandaPersistenceException
- Specified by:
logout in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
userNameLogout
@PermitAll
public void userNameLogout(String _fuserName)
throws EquandaPersistenceException
- Specified by:
userNameLogout in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
userPasswordLogout
@PermitAll
public void userPasswordLogout(String _fuserName,
String _fpassword)
throws EquandaPersistenceException
- Specified by:
userPasswordLogout in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
removeEntityBean
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public void removeEntityBean(Uoid uoid)
throws EquandaPersistenceException
- Specified by:
removeEntityBean in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
remove
@PermitAll
public void remove()
- Specified by:
remove in interface EquandaSelector<Uoid,EquandaUser,EquandaUserEJB>- Specified by:
remove in interface EquandaUserSelectorEJB
getEquandaRoles
public Collection<EquandaRole> getEquandaRoles(Uoid uoid)
throws EquandaPersistenceException
- Description copied from interface:
EquandaUserSelectorEJB
- Grouping of security rights for this user
- Specified by:
getEquandaRoles in interface EquandaUserSelectorEJB
- Throws:
EquandaPersistenceException
Copyright © 2007-2008. All Rights Reserved.