com.retek.rsm.app.security.service.impl
Class SecurityAdminServiceEjb

java.lang.Object
  extended bycom.retek.rsm.app.common.service.AbstractRsmServiceEjb
      extended bycom.retek.rsm.app.security.service.impl.SecurityAdminServiceEjb
All Implemented Interfaces:
javax.ejb.EnterpriseBean, SecurityAdminService, java.io.Serializable, com.retek.platform.service.Service, javax.ejb.SessionBean

public class SecurityAdminServiceEjb
extends AbstractRsmServiceEjb
implements SecurityAdminService

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.retek.rsm.app.common.service.AbstractRsmServiceEjb
LOG
 
Fields inherited from interface com.retek.platform.service.Service
serialVersionUID
 
Constructor Summary
SecurityAdminServiceEjb()
           
 
Method Summary
 com.retek.platform.bo.IdentifiableReference createApplicationLaunchParameterReference(com.retek.platform.service.ClientContext context)
          Reads the next available application launch parameter reference.
 com.retek.platform.bo.IdentifiableReference createRoleNamedPermissionReference(com.retek.platform.service.ClientContext context)
          Reads the next available role permission reference.
 com.retek.platform.bo.IdentifiableReference createRoleReference(com.retek.platform.service.ClientContext context)
          Reads the next available role reference.
 com.retek.platform.bo.IdentifiableReference createUserRoleReference(com.retek.platform.service.ClientContext context)
          Reads the next available user role reference.
 void deleteApplicationLaunchParameters(com.retek.platform.service.ClientContext context, java.util.Set applicationLaunchParameterReferences)
          Deletes ApplicationLaunchParameter objects from the system.
 void deleteRoleNamedPermissions(com.retek.platform.service.ClientContext context, java.util.Set roleNamedPermissionReferences)
          Removes the RoleNamedPermissions by deleting all RoleNamedPermission objects by using the IdentifiableReference objects contained in the roleNamedPermissionReferences.
 void deleteRoles(com.retek.platform.service.ClientContext context, java.util.Set roleReferences)
          Deletes the roles from the system.
 void deleteUserRoles(com.retek.platform.service.ClientContext context, java.util.Set userRoleReferences)
          Removes the relationship between a User and Role.
 void ejbCreate()
           
 java.util.Set findApplicationLaunchParameters(com.retek.platform.service.ClientContext context, AppLaunchParameterSearchCriteria criteria, PublicKeyEncryptionStrategyVo publicEncryptionKey)
          Find a collection of ApplicationLaunchParameterVo(s).
 java.util.Set findNamedPermissions(com.retek.platform.service.ClientContext context, NamedPermissionSearchCriteria criteria)
          Find a collection of PermissionVos RoleNamedPermissionSearchCriteria.
 java.util.Set findRoleNamedPermissions(com.retek.platform.service.ClientContext context, RoleNamedPermissionSearchCriteria criteria)
          Find a collection of NamedPermissionVo NamedPermissionSearchCriteria.
 java.util.Set findRoleVos(com.retek.platform.service.ClientContext context, java.util.Set roles)
          Find a collection of RoleVo's based on a set of Role name descriptions (Strings)
 java.util.Set findUserRoleVos(com.retek.platform.service.ClientContext context, UserRoleSearchCriteria criteria)
           
 com.retek.platform.util.type.RDate getSystemTime(com.retek.platform.service.ClientContext context)
          Reads the current system vdate time.
 void saveRole(com.retek.platform.service.ClientContext context, RoleVo roleVo)
          Saves the role in the system.
 void saveRoleNamedPermissions(com.retek.platform.service.ClientContext context, com.retek.platform.bo.IdentifiableReference roleReference, java.util.Set roleNamedPermissionVos)
          Saves the role named permission in the system.
 void saveUserRoles(com.retek.platform.service.ClientContext context, java.util.Set userRoleVos)
          Establishes the relationship between a User and Role.
 void updateApplicationLaunchParameters(com.retek.platform.service.ClientContext context, java.util.Set updatedApplicationLaunchParameterVos)
          Update a collection of ApplicationLaunchParameterVo(s).
 
Methods inherited from class com.retek.rsm.app.common.service.AbstractRsmServiceEjb
attachFallbackHandler, deleteReferences, destroyServiceContext, discardServiceContext, ejbActivate, ejbPassivate, ejbRemove, getFactory, getLocal, getLocalHome, getNextReference, getRemote, getRemoteHome, getSessionContext, initServiceContext, setSessionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.retek.platform.service.Service
attachFallbackHandler
 

Constructor Detail

SecurityAdminServiceEjb

public SecurityAdminServiceEjb()
Method Detail

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

saveRole

public void saveRole(com.retek.platform.service.ClientContext context,
                     RoleVo roleVo)
              throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Saves the role in the system.

Specified by:
saveRole in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

deleteRoles

public void deleteRoles(com.retek.platform.service.ClientContext context,
                        java.util.Set roleReferences)
                 throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Deletes the roles from the system.

Specified by:
deleteRoles in interface SecurityAdminService
Parameters:
roleReferences - - Contains a Set of Role IdentifiableReferences to delete.
Throws:
com.retek.platform.exception.RetekBusinessException

findRoleVos

public java.util.Set findRoleVos(com.retek.platform.service.ClientContext context,
                                 java.util.Set roles)
                          throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Find a collection of RoleVo's based on a set of Role name descriptions (Strings)

Specified by:
findRoleVos in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

saveUserRoles

public void saveUserRoles(com.retek.platform.service.ClientContext context,
                          java.util.Set userRoleVos)
                   throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Establishes the relationship between a User and Role.

Specified by:
saveUserRoles in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

deleteUserRoles

public void deleteUserRoles(com.retek.platform.service.ClientContext context,
                            java.util.Set userRoleReferences)
                     throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Removes the relationship between a User and Role.

Specified by:
deleteUserRoles in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

createRoleReference

public com.retek.platform.bo.IdentifiableReference createRoleReference(com.retek.platform.service.ClientContext context)
                                                                throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Reads the next available role reference.

Specified by:
createRoleReference in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

createRoleNamedPermissionReference

public com.retek.platform.bo.IdentifiableReference createRoleNamedPermissionReference(com.retek.platform.service.ClientContext context)
                                                                               throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Reads the next available role permission reference.

Specified by:
createRoleNamedPermissionReference in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

createUserRoleReference

public com.retek.platform.bo.IdentifiableReference createUserRoleReference(com.retek.platform.service.ClientContext context)
                                                                    throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Reads the next available user role reference.

Specified by:
createUserRoleReference in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

findNamedPermissions

public java.util.Set findNamedPermissions(com.retek.platform.service.ClientContext context,
                                          NamedPermissionSearchCriteria criteria)
                                   throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Find a collection of PermissionVos RoleNamedPermissionSearchCriteria.

Specified by:
findNamedPermissions in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

findRoleNamedPermissions

public java.util.Set findRoleNamedPermissions(com.retek.platform.service.ClientContext context,
                                              RoleNamedPermissionSearchCriteria criteria)
                                       throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Find a collection of NamedPermissionVo NamedPermissionSearchCriteria.

Specified by:
findRoleNamedPermissions in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

findApplicationLaunchParameters

public java.util.Set findApplicationLaunchParameters(com.retek.platform.service.ClientContext context,
                                                     AppLaunchParameterSearchCriteria criteria,
                                                     PublicKeyEncryptionStrategyVo publicEncryptionKey)
                                              throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Find a collection of ApplicationLaunchParameterVo(s).

Specified by:
findApplicationLaunchParameters in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

updateApplicationLaunchParameters

public void updateApplicationLaunchParameters(com.retek.platform.service.ClientContext context,
                                              java.util.Set updatedApplicationLaunchParameterVos)
                                       throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Update a collection of ApplicationLaunchParameterVo(s).

Specified by:
updateApplicationLaunchParameters in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

deleteApplicationLaunchParameters

public void deleteApplicationLaunchParameters(com.retek.platform.service.ClientContext context,
                                              java.util.Set applicationLaunchParameterReferences)
                                       throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Deletes ApplicationLaunchParameter objects from the system.

Specified by:
deleteApplicationLaunchParameters in interface SecurityAdminService
Parameters:
context - - The client context of the calling app.
applicationLaunchParameterReferences - - Contains a Set of ApplicationLauchParameter IdentifiableReferences to delete.
Throws:
com.retek.platform.exception.RetekBusinessException

createApplicationLaunchParameterReference

public com.retek.platform.bo.IdentifiableReference createApplicationLaunchParameterReference(com.retek.platform.service.ClientContext context)
                                                                                      throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Reads the next available application launch parameter reference.

Specified by:
createApplicationLaunchParameterReference in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

deleteRoleNamedPermissions

public void deleteRoleNamedPermissions(com.retek.platform.service.ClientContext context,
                                       java.util.Set roleNamedPermissionReferences)
                                throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Removes the RoleNamedPermissions by deleting all RoleNamedPermission objects by using the IdentifiableReference objects contained in the roleNamedPermissionReferences.

Specified by:
deleteRoleNamedPermissions in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

saveRoleNamedPermissions

public void saveRoleNamedPermissions(com.retek.platform.service.ClientContext context,
                                     com.retek.platform.bo.IdentifiableReference roleReference,
                                     java.util.Set roleNamedPermissionVos)
                              throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Saves the role named permission in the system.

Specified by:
saveRoleNamedPermissions in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

findUserRoleVos

public java.util.Set findUserRoleVos(com.retek.platform.service.ClientContext context,
                                     UserRoleSearchCriteria criteria)
                              throws com.retek.platform.exception.RetekBusinessException
Specified by:
findUserRoleVos in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException

getSystemTime

public com.retek.platform.util.type.RDate getSystemTime(com.retek.platform.service.ClientContext context)
                                                 throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityAdminService
Reads the current system vdate time.

Specified by:
getSystemTime in interface SecurityAdminService
Throws:
com.retek.platform.exception.RetekBusinessException