1packageorg.apache.jetspeed.om.security.turbine;
234import java.math.BigDecimal;
5import java.sql.Connection;
6import java.util.ArrayList;
7import java.util.Collections;
8import java.util.Date;
9import java.util.List;
1011import org.apache.commons.lang.ObjectUtils;
12import org.apache.torque.TorqueException;
13import org.apache.torque.om.BaseObject;
14import org.apache.torque.om.ComboKey;
15import org.apache.torque.om.DateKey;
16import org.apache.torque.om.NumberKey;
17import org.apache.torque.om.ObjectKey;
18import org.apache.torque.om.SimpleKey;
19import org.apache.torque.om.StringKey;
20import org.apache.torque.om.Persistent;
21import org.apache.torque.util.Criteria;
22import org.apache.torque.util.Transaction;
232425/***26 * This class was autogenerated by Torque on:27 *28 * [Thu Apr 22 23:12:36 EDT 2004]29 *30 * You should not use this class directly. It should not even be31 * extended all references should be to TurbineUser32 */33publicabstractclassBaseTurbineUserextends BaseObject
34 {
35/*** The Peer class */36privatestaticfinalTurbineUserPeer peer =
37newTurbineUserPeer();
383940/*** The value for the userId field */41privateint userId;
4243/*** The value for the loginName field */44private String loginName;
4546/*** The value for the passwordValue field */47private String passwordValue;
4849/*** The value for the firstName field */50private String firstName;
5152/*** The value for the lastName field */53private String lastName;
5455/*** The value for the email field */56private String email;
5758/*** The value for the confirmValue field */59private String confirmValue;
6061/*** The value for the modified field */62private Date modified;
6364/*** The value for the created field */65private Date created;
6667/*** The value for the lastLogin field */68private Date lastLogin;
6970/*** The value for the disabled field */71private String disabled;
7273/*** The value for the objectdata field */74private byte[] objectdata;
7576/*** The value for the passwordChanged field */77private Date passwordChanged;
787980/***81 * Get the UserId82 * @return int83 */84publicint getUserId()
85 {
86return userId;
87 }
888990/***91 * Set the value of UserId92 */93publicvoid setUserId(int v ) throws TorqueException
94 {
9596if (this.userId != v)
97 {
98this.userId = v;
99 setModified(true);
100 }
101102103104// update associated TurbineUserGroupRole105if (collTurbineUserGroupRoles != null )
106 {
107for (int i = 0; i < collTurbineUserGroupRoles.size(); i++)
108 {
109 ((TurbineUserGroupRole)collTurbineUserGroupRoles.get(i))
110 .setUserId(v);
111 }
112 }
113 }
114115116/***117 * Get the LoginName118 * @return String119 */120public String getLoginName()
121 {
122return loginName;
123 }
124125126/***127 * Set the value of LoginName128 */129publicvoid setLoginName(String v )
130 {
131132if (!ObjectUtils.equals(this.loginName, v))
133 {
134this.loginName = v;
135 setModified(true);
136 }
137138139 }
140141142/***143 * Get the PasswordValue144 * @return String145 */146public String getPasswordValue()
147 {
148return passwordValue;
149 }
150151152/***153 * Set the value of PasswordValue154 */155publicvoid setPasswordValue(String v )
156 {
157158if (!ObjectUtils.equals(this.passwordValue, v))
159 {
160this.passwordValue = v;
161 setModified(true);
162 }
163164165 }
166167168/***169 * Get the FirstName170 * @return String171 */172public String getFirstName()
173 {
174return firstName;
175 }
176177178/***179 * Set the value of FirstName180 */181publicvoid setFirstName(String v )
182 {
183184if (!ObjectUtils.equals(this.firstName, v))
185 {
186this.firstName = v;
187 setModified(true);
188 }
189190191 }
192193194/***195 * Get the LastName196 * @return String197 */198public String getLastName()
199 {
200return lastName;
201 }
202203204/***205 * Set the value of LastName206 */207publicvoid setLastName(String v )
208 {
209210if (!ObjectUtils.equals(this.lastName, v))
211 {
212this.lastName = v;
213 setModified(true);
214 }
215216217 }
218219220/***221 * Get the Email222 * @return String223 */224public String getEmail()
225 {
226return email;
227 }
228229230/***231 * Set the value of Email232 */233publicvoid setEmail(String v )
234 {
235236if (!ObjectUtils.equals(this.email, v))
237 {
238this.email = v;
239 setModified(true);
240 }
241242243 }
244245246/***247 * Get the ConfirmValue248 * @return String249 */250public String getConfirmValue()
251 {
252return confirmValue;
253 }
254255256/***257 * Set the value of ConfirmValue258 */259publicvoid setConfirmValue(String v )
260 {
261262if (!ObjectUtils.equals(this.confirmValue, v))
263 {
264this.confirmValue = v;
265 setModified(true);
266 }
267268269 }
270271272/***273 * Get the Modified274 * @return Date275 */276public Date getModified()
277 {
278return modified;
279 }
280281282/***283 * Set the value of Modified284 */285publicvoid setModified(Date v )
286 {
287288if (!ObjectUtils.equals(this.modified, v))
289 {
290this.modified = v;
291 setModified(true);
292 }
293294295 }
296297298/***299 * Get the Created300 * @return Date301 */302public Date getCreated()
303 {
304return created;
305 }
306307308/***309 * Set the value of Created310 */311publicvoid setCreated(Date v )
312 {
313314if (!ObjectUtils.equals(this.created, v))
315 {
316this.created = v;
317 setModified(true);
318 }
319320321 }
322323324/***325 * Get the LastLogin326 * @return Date327 */328public Date getLastLogin()
329 {
330return lastLogin;
331 }
332333334/***335 * Set the value of LastLogin336 */337publicvoid setLastLogin(Date v )
338 {
339340if (!ObjectUtils.equals(this.lastLogin, v))
341 {
342this.lastLogin = v;
343 setModified(true);
344 }
345346347 }
348349350/***351 * Get the Disabled352 * @return String353 */354public String getDisabled()
355 {
356return disabled;
357 }
358359360/***361 * Set the value of Disabled362 */363publicvoid setDisabled(String v )
364 {
365366if (!ObjectUtils.equals(this.disabled, v))
367 {
368this.disabled = v;
369 setModified(true);
370 }
371372373 }
374375376/***377 * Get the Objectdata378 * @return byte[]379 */380public byte[] getObjectdata()
381 {
382return objectdata;
383 }
384385386/***387 * Set the value of Objectdata388 */389publicvoid setObjectdata(byte[] v )
390 {
391392if (!ObjectUtils.equals(this.objectdata, v))
393 {
394this.objectdata = v;
395 setModified(true);
396 }
397398399 }
400401402/***403 * Get the PasswordChanged404 * @return Date405 */406public Date getPasswordChanged()
407 {
408return passwordChanged;
409 }
410411412/***413 * Set the value of PasswordChanged414 */415publicvoid setPasswordChanged(Date v )
416 {
417418if (!ObjectUtils.equals(this.passwordChanged, v))
419 {
420this.passwordChanged = v;
421 setModified(true);
422 }
423424425 }
426427428429430431/***432 * Collection to store aggregation of collTurbineUserGroupRoles433 */434protected List collTurbineUserGroupRoles;
435436/***437 * Temporary storage of collTurbineUserGroupRoles to save a possible db hit in438 * the event objects are add to the collection, but the439 * complete collection is never requested.440 */441protectedvoid initTurbineUserGroupRoles()
442 {
443if (collTurbineUserGroupRoles == null)
444 {
445 collTurbineUserGroupRoles = new ArrayList();
446 }
447 }
448449450/***451 * Method called to associate a TurbineUserGroupRole object to this object452 * through the TurbineUserGroupRole foreign key attribute453 *454 * @param TurbineUserGroupRole l455 */456publicvoid addTurbineUserGroupRole(TurbineUserGroupRole l) throws TorqueException
457 {
458 getTurbineUserGroupRoles().add(l);
459 l.setTurbineUser((TurbineUser)this);
460 }
461462/***463 * The criteria used to select the current contents of collTurbineUserGroupRoles464 */465private Criteria lastTurbineUserGroupRolesCriteria = null;
466467/***468 * If this collection has already been initialized, returns469 * the collection. Otherwise returns the results of470 * getTurbineUserGroupRoles(new Criteria())471 */472public List getTurbineUserGroupRoles() throws TorqueException
473 {
474if (collTurbineUserGroupRoles == null)
475 {
476 collTurbineUserGroupRoles = getTurbineUserGroupRoles(new Criteria(10));
477 }
478return collTurbineUserGroupRoles;
479 }
480481/***482 * If this collection has already been initialized with483 * an identical criteria, it returns the collection.484 * Otherwise if this TurbineUser has previously485 * been saved, it will retrieve related TurbineUserGroupRoles from storage.486 * If this TurbineUser is new, it will return487 * an empty collection or the current collection, the criteria488 * is ignored on a new object.489 */490public List getTurbineUserGroupRoles(Criteria criteria) throws TorqueException
491 {
492if (collTurbineUserGroupRoles == null)
493 {
494if (isNew())
495 {
496 collTurbineUserGroupRoles = new ArrayList();
497 }
498else499 {
500 criteria.add(TurbineUserGroupRolePeer.USER_ID, getUserId() );
501 collTurbineUserGroupRoles = TurbineUserGroupRolePeer.doSelect(criteria);
502 }
503 }
504else505 {
506// criteria has no effect for a new object507if (!isNew())
508 {
509// the following code is to determine if a new query is510// called for. If the criteria is the same as the last511// one, just return the collection.512 criteria.add(TurbineUserGroupRolePeer.USER_ID, getUserId() );
513if (!lastTurbineUserGroupRolesCriteria.equals(criteria))
514 {
515 collTurbineUserGroupRoles = TurbineUserGroupRolePeer.doSelect(criteria);
516 }
517 }
518 }
519 lastTurbineUserGroupRolesCriteria = criteria;
520521return collTurbineUserGroupRoles;
522 }
523524/***525 * If this collection has already been initialized, returns526 * the collection. Otherwise returns the results of527 * getTurbineUserGroupRoles(new Criteria(),Connection)528 * This method takes in the Connection also as input so that529 * referenced objects can also be obtained using a Connection530 * that is taken as input531 */532public List getTurbineUserGroupRoles(Connection con) throws TorqueException
533 {
534if (collTurbineUserGroupRoles == null)
535 {
536 collTurbineUserGroupRoles = getTurbineUserGroupRoles(new Criteria(10),con);
537 }
538return collTurbineUserGroupRoles;
539 }
540541/***542 * If this collection has already been initialized with543 * an identical criteria, it returns the collection.544 * Otherwise if this TurbineUser has previously545 * been saved, it will retrieve related TurbineUserGroupRoles from storage.546 * If this TurbineUser is new, it will return547 * an empty collection or the current collection, the criteria548 * is ignored on a new object.549 * This method takes in the Connection also as input so that550 * referenced objects can also be obtained using a Connection551 * that is taken as input552 */553public List getTurbineUserGroupRoles(Criteria criteria,Connection con) throws TorqueException
554 {
555if (collTurbineUserGroupRoles == null)
556 {
557if (isNew())
558 {
559 collTurbineUserGroupRoles = new ArrayList();
560 }
561else562 {
563 criteria.add(TurbineUserGroupRolePeer.USER_ID, getUserId() );
564 collTurbineUserGroupRoles = TurbineUserGroupRolePeer.doSelect(criteria,con);
565 }
566 }
567else568 {
569// criteria has no effect for a new object570if (!isNew())
571 {
572// the following code is to determine if a new query is573// called for. If the criteria is the same as the last574// one, just return the collection.575 criteria.add(TurbineUserGroupRolePeer.USER_ID, getUserId() );
576if (!lastTurbineUserGroupRolesCriteria.equals(criteria))
577 {
578 collTurbineUserGroupRoles = TurbineUserGroupRolePeer.doSelect(criteria,con);
579 }
580 }
581 }
582 lastTurbineUserGroupRolesCriteria = criteria;
583584return collTurbineUserGroupRoles;
585 }
586587588589590591592593594595596597598/***599 * If this collection has already been initialized with600 * an identical criteria, it returns the collection.601 * Otherwise if this TurbineUser is new, it will return602 * an empty collection; or if this TurbineUser has previously603 * been saved, it will retrieve related TurbineUserGroupRoles from storage.604 *605 * This method is protected by default in order to keep the public606 * api reasonable. You can provide public methods for those you607 * actually need in TurbineUser.608 */609protected List getTurbineUserGroupRolesJoinTurbineUser(Criteria criteria)
610 throws TorqueException
611 {
612if (collTurbineUserGroupRoles == null)
613 {
614if (isNew())
615 {
616 collTurbineUserGroupRoles = new ArrayList();
617 }
618else619 {
620 criteria.add(TurbineUserGroupRolePeer.USER_ID, getUserId() );
621 collTurbineUserGroupRoles = TurbineUserGroupRolePeer.doSelectJoinTurbineUser(criteria);
622 }
623 }
624else625 {
626// the following code is to determine if a new query is627// called for. If the criteria is the same as the last628// one, just return the collection.629boolean newCriteria = true;
630 criteria.add(TurbineUserGroupRolePeer.USER_ID, getUserId() );
631if (!lastTurbineUserGroupRolesCriteria.equals(criteria))
632 {
633 collTurbineUserGroupRoles = TurbineUserGroupRolePeer.doSelectJoinTurbineUser(criteria);
634 }
635 }
636 lastTurbineUserGroupRolesCriteria = criteria;
637638return collTurbineUserGroupRoles;
639 }
640641642643644645646647648649/***650 * If this collection has already been initialized with651 * an identical criteria, it returns the collection.652 * Otherwise if this TurbineUser is new, it will return653 * an empty collection; or if this TurbineUser has previously654 * been saved, it will retrieve related TurbineUserGroupRoles from storage.655 *656 * This method is protected by default in order to keep the public657 * api reasonable. You can provide public methods for those you658 * actually need in TurbineUser.659 */660protected List getTurbineUserGroupRolesJoinTurbineGroup(Criteria criteria)
661 throws TorqueException
662 {
663if (collTurbineUserGroupRoles == null)
664 {
665if (isNew())
666 {
667 collTurbineUserGroupRoles = new ArrayList();
668 }
669else670 {
671 criteria.add(TurbineUserGroupRolePeer.USER_ID, getUserId() );
672 collTurbineUserGroupRoles = TurbineUserGroupRolePeer.doSelectJoinTurbineGroup(criteria);
673 }
674 }
675else676 {
677// the following code is to determine if a new query is678// called for. If the criteria is the same as the last679// one, just return the collection.680boolean newCriteria = true;
681 criteria.add(TurbineUserGroupRolePeer.USER_ID, getUserId() );
682if (!lastTurbineUserGroupRolesCriteria.equals(criteria))
683 {
684 collTurbineUserGroupRoles = TurbineUserGroupRolePeer.doSelectJoinTurbineGroup(criteria);
685 }
686 }
687 lastTurbineUserGroupRolesCriteria = criteria;
688689return collTurbineUserGroupRoles;
690 }
691692693694695696697698699700/***701 * If this collection has already been initialized with702 * an identical criteria, it returns the collection.703 * Otherwise if this TurbineUser is new, it will return704 * an empty collection; or if this TurbineUser has previously705 * been saved, it will retrieve related TurbineUserGroupRoles from storage.706 *707 * This method is protected by default in order to keep the public708 * api reasonable. You can provide public methods for those you709 * actually need in TurbineUser.710 */711protected List getTurbineUserGroupRolesJoinTurbineRole(Criteria criteria)
712 throws TorqueException
713 {
714if (collTurbineUserGroupRoles == null)
715 {
716if (isNew())
717 {
718 collTurbineUserGroupRoles = new ArrayList();
719 }
720else721 {
722 criteria.add(TurbineUserGroupRolePeer.USER_ID, getUserId() );
723 collTurbineUserGroupRoles = TurbineUserGroupRolePeer.doSelectJoinTurbineRole(criteria);
724 }
725 }
726else727 {
728// the following code is to determine if a new query is729// called for. If the criteria is the same as the last730// one, just return the collection.731boolean newCriteria = true;
732 criteria.add(TurbineUserGroupRolePeer.USER_ID, getUserId() );
733if (!lastTurbineUserGroupRolesCriteria.equals(criteria))
734 {
735 collTurbineUserGroupRoles = TurbineUserGroupRolePeer.doSelectJoinTurbineRole(criteria);
736 }
737 }
738 lastTurbineUserGroupRolesCriteria = criteria;
739740return collTurbineUserGroupRoles;
741 }
742743744745746privatestatic List fieldNames = null;
747748/***749 * Generate a list of field names.750 */751publicstaticsynchronized List getFieldNames()
752 {
753if (fieldNames == null)
754 {
755 fieldNames = new ArrayList();
756 fieldNames.add("UserId");
757 fieldNames.add("LoginName");
758 fieldNames.add("PasswordValue");
759 fieldNames.add("FirstName");
760 fieldNames.add("LastName");
761 fieldNames.add("Email");
762 fieldNames.add("ConfirmValue");
763 fieldNames.add("Modified");
764 fieldNames.add("Created");
765 fieldNames.add("LastLogin");
766 fieldNames.add("Disabled");
767 fieldNames.add("Objectdata");
768 fieldNames.add("PasswordChanged");
769 fieldNames = Collections.unmodifiableList(fieldNames);
770 }
771return fieldNames;
772 }
773774/***775 * Retrieves a field from the object by name passed in776 * as a String.777 */778public Object getByName(String name)
779 {
780if (name.equals("UserId"))
781 {
782returnnew Integer(getUserId());
783 }
784if (name.equals("LoginName"))
785 {
786return getLoginName();
787 }
788if (name.equals("PasswordValue"))
789 {
790return getPasswordValue();
791 }
792if (name.equals("FirstName"))
793 {
794return getFirstName();
795 }
796if (name.equals("LastName"))
797 {
798return getLastName();
799 }
800if (name.equals("Email"))
801 {
802return getEmail();
803 }
804if (name.equals("ConfirmValue"))
805 {
806return getConfirmValue();
807 }
808if (name.equals("Modified"))
809 {
810return getModified();
811 }
812if (name.equals("Created"))
813 {
814return getCreated();
815 }
816if (name.equals("LastLogin"))
817 {
818return getLastLogin();
819 }
820if (name.equals("Disabled"))
821 {
822return getDisabled();
823 }
824if (name.equals("Objectdata"))
825 {
826return getObjectdata();
827 }
828if (name.equals("PasswordChanged"))
829 {
830return getPasswordChanged();
831 }
832returnnull;
833 }
834835/***836 * Retrieves a field from the object by name passed in837 * as a String. The String must be one of the static838 * Strings defined in this Class' Peer.839 */840public Object getByPeerName(String name)
841 {
842if (name.equals(TurbineUserPeer.USER_ID ))
843 {
844returnnew Integer(getUserId());
845 }
846if (name.equals(TurbineUserPeer.LOGIN_NAME ))
847 {
848return getLoginName();
849 }
850if (name.equals(TurbineUserPeer.PASSWORD_VALUE ))
851 {
852return getPasswordValue();
853 }
854if (name.equals(TurbineUserPeer.FIRST_NAME ))
855 {
856return getFirstName();
857 }
858if (name.equals(TurbineUserPeer.LAST_NAME ))
859 {
860return getLastName();
861 }
862if (name.equals(TurbineUserPeer.EMAIL ))
863 {
864return getEmail();
865 }
866if (name.equals(TurbineUserPeer.CONFIRM_VALUE ))
867 {
868return getConfirmValue();
869 }
870if (name.equals(TurbineUserPeer.MODIFIED ))
871 {
872return getModified();
873 }
874if (name.equals(TurbineUserPeer.CREATED ))
875 {
876return getCreated();
877 }
878if (name.equals(TurbineUserPeer.LAST_LOGIN ))
879 {
880return getLastLogin();
881 }
882if (name.equals(TurbineUserPeer.DISABLED ))
883 {
884return getDisabled();
885 }
886if (name.equals(TurbineUserPeer.OBJECTDATA ))
887 {
888return getObjectdata();
889 }
890if (name.equals(TurbineUserPeer.PASSWORD_CHANGED ))
891 {
892return getPasswordChanged();
893 }
894returnnull;
895 }
896897/***898 * Retrieves a field from the object by Position as specified899 * in the xml schema. Zero-based.900 */901public Object getByPosition(int pos)
902 {
903if ( pos == 0 )
904 {
905returnnew Integer(getUserId());
906 }
907if ( pos == 1 )
908 {
909return getLoginName();
910 }
911if ( pos == 2 )
912 {
913return getPasswordValue();
914 }
915if ( pos == 3 )
916 {
917return getFirstName();
918 }
919if ( pos == 4 )
920 {
921return getLastName();
922 }
923if ( pos == 5 )
924 {
925return getEmail();
926 }
927if ( pos == 6 )
928 {
929return getConfirmValue();
930 }
931if ( pos == 7 )
932 {
933return getModified();
934 }
935if ( pos == 8 )
936 {
937return getCreated();
938 }
939if ( pos == 9 )
940 {
941return getLastLogin();
942 }
943if ( pos == 10 )
944 {
945return getDisabled();
946 }
947if ( pos == 11 )
948 {
949return getObjectdata();
950 }
951if ( pos == 12 )
952 {
953return getPasswordChanged();
954 }
955returnnull;
956 }
957958/***959 * Stores the object in the database. If the object is new,960 * it inserts it; otherwise an update is performed.961 */962publicvoid save() throws Exception
963 {
964 save(TurbineUserPeer.getMapBuilder()
965 .getDatabaseMap().getName());
966 }
967968/***969 * Stores the object in the database. If the object is new,970 * it inserts it; otherwise an update is performed.971 * Note: this code is here because the method body is972 * auto-generated conditionally and therefore needs to be973 * in this file instead of in the super class, BaseObject.974 */975publicvoid save(String dbName) throws TorqueException
976 {
977 Connection con = null;
978try979 {
980 con = Transaction.begin(dbName);
981 save(con);
982 Transaction.commit(con);
983 }
984catch(TorqueException e)
985 {
986 Transaction.safeRollback(con);
987throw e;
988 }
989 }
990991/*** flag to prevent endless save loop, if this object is referenced992 by another object which falls in this transaction. */993privateboolean alreadyInSave = false;
994/***995 * Stores the object in the database. If the object is new,996 * it inserts it; otherwise an update is performed. This method997 * is meant to be used as part of a transaction, otherwise use998 * the save() method and the connection details will be handled999 * internally1000 */1001publicvoid save(Connection con) throws TorqueException
1002 {
1003if (!alreadyInSave)
1004 {
1005 alreadyInSave = true;
1006100710081009// If this object has been modified, then save it to the database.1010if (isModified())
1011 {
1012if (isNew())
1013 {
1014 TurbineUserPeer.doInsert((TurbineUser)this, con);
1015 setNew(false);
1016 }
1017else1018 {
1019 TurbineUserPeer.doUpdate((TurbineUser)this, con);
1020 }
10211022if (isCacheOnSave())
1023 {
1024 TurbineUserManager.putInstance(this);
1025 }
1026 }
102710281029if (collTurbineUserGroupRoles != null )
1030 {
1031for (int i = 0; i < collTurbineUserGroupRoles.size(); i++)
1032 {
1033 ((TurbineUserGroupRole)collTurbineUserGroupRoles.get(i)).save(con);
1034 }
1035 }
1036 alreadyInSave = false;
1037 }
1038 }
10391040/***1041 * Specify whether to cache the object after saving to the db.1042 * This method returns false1043 */1044protectedboolean isCacheOnSave()
1045 {
1046returntrue;
1047 }
104810491050/***1051 * Set the PrimaryKey using ObjectKey.1052 *1053 * @param ObjectKey userId1054 */1055publicvoid setPrimaryKey(ObjectKey userId)
1056 throws TorqueException {
1057 setUserId(((NumberKey)userId).intValue());
1058 }
10591060/***1061 * Set the PrimaryKey using a String.1062 */1063publicvoid setPrimaryKey(String key) throws TorqueException
1064 {
1065 setUserId(Integer.parseInt(key));
1066 }
106710681069/***1070 * returns an id that differentiates this object from others1071 * of its class.1072 */1073public ObjectKey getPrimaryKey()
1074 {
1075return SimpleKey.keyFor(getUserId());
1076 }
107710781079/***1080 * Makes a copy of this object.1081 * It creates a new object filling in the simple attributes.1082 * It then fills all the association collections.1083 */1084publicTurbineUser copy() throws TorqueException
1085 {
1086TurbineUser copyObj = newTurbineUser();
1087 copyObj.setUserId(userId);
1088 copyObj.setLoginName(loginName);
1089 copyObj.setPasswordValue(passwordValue);
1090 copyObj.setFirstName(firstName);
1091 copyObj.setLastName(lastName);
1092 copyObj.setEmail(email);
1093 copyObj.setConfirmValue(confirmValue);
1094 copyObj.setModified(modified);
1095 copyObj.setCreated(created);
1096 copyObj.setLastLogin(lastLogin);
1097 copyObj.setDisabled(disabled);
1098 copyObj.setObjectdata(objectdata);
1099 copyObj.setPasswordChanged(passwordChanged);
11001101 copyObj.setUserId(0);
1102110311041105 List v = getTurbineUserGroupRoles();
1106for (int i = 0; i < v.size(); i++)
1107 {
1108TurbineUserGroupRole obj = (TurbineUserGroupRole) v.get(i);
1109 copyObj.addTurbineUserGroupRole(obj.copy());
1110 }
1111return copyObj;
1112 }
11131114/***1115 * returns a peer instance associated with this om. Since Peer classes1116 * are not to have any instance attributes, this method returns the1117 * same instance for all member of this class. The method could therefore1118 * be static, but this would prevent one from overriding the behavior.1119 */1120publicTurbineUserPeer getPeer()
1121 {
1122return peer;
1123 }
1124 }