1 package hero.entity; 2 3 import hero.interfaces.BnUserLightValue; 4 import hero.interfaces.BnUserPK; 5 import hero.interfaces.BnUserValue; 6 import hero.interfaces.InvalidValueException; 7 import hero.util.BonitaServiceLocator; 8 import hero.util.BonitaServiceException; 9 10 import java.sql.Date ; 11 import java.util.Collection ; 12 13 import javax.ejb.CreateException ; 14 import javax.ejb.EJBException ; 15 import javax.ejb.EntityBean ; 16 import javax.ejb.EntityContext ; 17 import javax.ejb.RemoveException ; 18 19 79 80 public abstract class BnUserBean 81 implements EntityBean 82 { 83 84 88 public EntityContext mContext; 89 90 91 95 110 public abstract String getId(); 111 112 118 public abstract void setId( String pId ); 119 120 131 public abstract String getName(); 132 133 139 public abstract void setName( String uName ); 140 141 152 public abstract String getPassword(); 153 154 160 public abstract void setPassword( String pPassword ); 161 162 173 public abstract String getEmail(); 174 175 183 public abstract void setEmail( String pEmail ); 184 185 197 public abstract String getJabber(); 198 199 205 public abstract void setJabber( String pJabber ); 206 207 217 public abstract Date getCreationDate(); 218 219 226 public abstract void setCreationDate( Date pCreationDate ); 227 228 237 public abstract Date getModificationDate(); 238 239 246 public abstract void setModificationDate( Date pModificationDate ); 247 248 266 public abstract Collection getBnProjects() ; 267 268 269 275 public abstract void setBnProjects( Collection pProjects); 276 277 295 public abstract Collection getBnRoles() ; 296 297 303 public abstract void setBnRoles( Collection pRoles); 304 305 323 public abstract Collection getBnAuthRoles() ; 324 325 331 public abstract void setBnAuthRoles( Collection pRoles); 332 333 341 public abstract Collection getCreatedBnAgents() ; 342 343 349 public abstract void setCreatedBnAgents( Collection pAgents); 350 351 355 public abstract BnUserValue getBnUserValue(); 356 357 362 public abstract void setBnUserValue(BnUserValue v); 363 364 369 public abstract BnUserLightValue getBnUserLightValue(); 370 371 380 public abstract Collection getBnProperties(); 381 382 388 public abstract void setBnProperties(Collection pPrp); 389 390 391 392 393 397 413 public BnUserPK ejbCreate( BnUserValue pUser ) 414 throws 415 InvalidValueException, 416 EJBException , 417 CreateException 418 { 419 this.setBnUserValue(pUser); 421 this.setId(hero.interfaces.BnUserUtil.generateGUID(this)); 422 423 this.setCreationDate(new java.sql.Date (new java.util.Date ().getTime())); 424 this.setModificationDate(new java.sql.Date (new java.util.Date ().getTime() )); 425 return null; 426 } 427 428 public void ejbPostCreate( BnUserValue pUser ) 429 { 430 } 431 432 public void setEntityContext( EntityContext lContext ) 433 { 434 mContext = lContext; 435 } 436 437 public void unsetEntityContext() 438 { 439 mContext = null; 440 } 441 442 public void ejbActivate() 443 { 444 } 445 446 public void ejbPassivate() 447 { 448 } 449 450 public void ejbLoad() 451 { 452 } 453 454 public void ejbStore() 455 { 456 } 457 458 public void ejbRemove() 459 throws 460 RemoveException 461 { 462 } 463 } 464 | Popular Tags |