com.cinecolombia.common.utilcomponents
Class Profile

java.lang.Object
  |
  +--com.cinecolombia.common.utilcomponents.Profile
All Implemented Interfaces:
java.io.Serializable

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

This class is an auxiliary class of ManejoPerfilesModel.

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

Field Summary
private  long idProfile
          Code of selected profile
private  java.util.ArrayList modules
          List of system modules
private  java.lang.String profileName
          Name of selected profile
 
Constructor Summary
Profile(long idProfile, java.lang.String profileName, java.util.ArrayList modules)
          constructor: initializes attributes
 
Method Summary
 long getIdProfile()
          get method for code of selected profile
 java.util.ArrayList getModules()
          Get method for list of system modules
 java.lang.String getProfileName()
          get method for name of selected profile
 java.lang.String toString()
          String representation of the model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

idProfile

private long idProfile
Code of selected profile


profileName

private java.lang.String profileName
Name of selected profile


modules

private java.util.ArrayList modules
List of system modules

Constructor Detail

Profile

public Profile(long idProfile,
               java.lang.String profileName,
               java.util.ArrayList modules)
constructor: initializes attributes

Parameters:
idProfile - Code of selected profile. This is -1 in case of an empty profile (needed to create a new profile)
profileName - Name of selected profile. This is " " in case of an empty profile (needed to create a new profile)
modules - Arraylist of system modules. When each element is a Module.
Method Detail

getIdProfile

public long getIdProfile()
get method for code of selected profile

Returns:
idProfile Code of selected profile

getProfileName

public java.lang.String getProfileName()
get method for name of selected profile

Returns:
idProfile Name of selected profile

getModules

public java.util.ArrayList getModules()
Get method for list of system modules

Returns:
systemProfiles List of system modules

toString

public java.lang.String toString()
String representation of the model

Overrides:
toString in class java.lang.Object
Returns:
text of value