com.cinecolombia.cinecolombia.manejoUsers.web
Class ManejoUsersTranslator

java.lang.Object
  |
  +--com.cinecolombia.cinecolombia.manejoUsers.web.ManejoUsersTranslator
All Implemented Interfaces:
java.io.Serializable

public class ManejoUsersTranslator
extends java.lang.Object
implements java.io.Serializable

manejoUsers usecase: helper class for the jsp of this usecase

Author:
CincoSOFT
See Also:
Serialized Form
Created:
Junio 2003

Field Summary
private  java.lang.String[] apellido
           
private  java.lang.String[] codigo
           
private  java.lang.String[] codigoOtroPerfilSistema
           
private  java.lang.String[] codigoPerfilUsuario
           
private  Debug debug
           
private  java.lang.String[] idUsuario
           
private  java.lang.String[] nombre
           
private  java.lang.String[] nombreOtroPerfilSistema
           
private  java.lang.String[] nombrePerfilUsuario
           
(package private)  java.util.ArrayList otherSystemProfiles
           
private  User selectedUser
           
private  java.lang.String todayString
           
private  java.util.ArrayList useCaseActions
           
 
Constructor Summary
ManejoUsersTranslator()
          Constructor
 
Method Summary
 java.lang.String getManejoUsersList(javax.servlet.http.HttpServletRequest request)
          Adds the loadManejoUsersList() javaScript method filling activeList array (of active users) accordingly to input data of the jsp
 java.lang.String getOtherSystemProfilesList(javax.servlet.http.HttpServletRequest request)
          Adds the loadOtherSystemProfiles() javaScript method filling otherSystemProfiles array accordingly to input data of the jsp
 User getSelectedUser()
           
 java.lang.String getTodayString()
           
 java.lang.String getUserProfilesList(javax.servlet.http.HttpServletRequest request)
          Adds the loadUserProfiles() javaScript method filling userProfiles array accordingly to input data of the jsp
 boolean isAllowed(java.lang.String action)
          determines if a action (HTLM element) is allowed for the user examining useCaseActions
 boolean isProfileIn(CodeDescription profile, java.util.ArrayList arrayProfiles)
          determines if a profile is in an ArrayList of profiles
 void setData(javax.servlet.http.HttpServletRequest request)
          gets data from request or session and creates input data for the jsp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useCaseActions

private java.util.ArrayList useCaseActions

idUsuario

private java.lang.String[] idUsuario

codigo

private java.lang.String[] codigo

apellido

private java.lang.String[] apellido

nombre

private java.lang.String[] nombre

selectedUser

private User selectedUser

codigoPerfilUsuario

private java.lang.String[] codigoPerfilUsuario

nombrePerfilUsuario

private java.lang.String[] nombrePerfilUsuario

otherSystemProfiles

java.util.ArrayList otherSystemProfiles

codigoOtroPerfilSistema

private java.lang.String[] codigoOtroPerfilSistema

nombreOtroPerfilSistema

private java.lang.String[] nombreOtroPerfilSistema

todayString

private java.lang.String todayString

debug

private Debug debug
Constructor Detail

ManejoUsersTranslator

public ManejoUsersTranslator()
Constructor

Method Detail

setData

public void setData(javax.servlet.http.HttpServletRequest request)
gets data from request or session and creates input data for the jsp

Parameters:
request - of MainServlet

isAllowed

public boolean isAllowed(java.lang.String action)
determines if a action (HTLM element) is allowed for the user examining useCaseActions

Parameters:
action - Description of the Parameter
Returns:
The allowed value

isProfileIn

public boolean isProfileIn(CodeDescription profile,
                           java.util.ArrayList arrayProfiles)
determines if a profile is in an ArrayList of profiles

Parameters:
profile - Description of the Parameter
arrayProfiles - Description of the Parameter
Returns:
The profileIn value

getTodayString

public java.lang.String getTodayString()

getSelectedUser

public User getSelectedUser()

getManejoUsersList

public java.lang.String getManejoUsersList(javax.servlet.http.HttpServletRequest request)
Adds the loadManejoUsersList() javaScript method filling activeList array (of active users) accordingly to input data of the jsp

Parameters:
request -
Returns:
String with the javaScript text of loadManejoUsersList()

getUserProfilesList

public java.lang.String getUserProfilesList(javax.servlet.http.HttpServletRequest request)
Adds the loadUserProfiles() javaScript method filling userProfiles array accordingly to input data of the jsp

Parameters:
request -
Returns:
String with the javaScript text of loadUserProfiles()

getOtherSystemProfilesList

public java.lang.String getOtherSystemProfilesList(javax.servlet.http.HttpServletRequest request)
Adds the loadOtherSystemProfiles() javaScript method filling otherSystemProfiles array accordingly to input data of the jsp

Parameters:
request -
Returns:
String with the javaScript text of loadOtherSystemProfiles()