|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--businesslogic.DefectPolicy
Singleton class that enforces the policies of the business objects of the BugTracker application. This involves primarily the creation and modification of Defects and Users. Implements the _DefectPolicyIntfOperations interface used by the tie class generated by javatoidl
Constructor Summary | |
DefectPolicy()
|
Method Summary | |
boolean |
canAdminister(java.lang.String userid)
Determines if the specified user holds administrative privileges for the BugTracker application |
boolean |
canAssign(java.lang.String userid)
Determines if the specified user holds privileges for assigning defects |
boolean |
canPrioritize(java.lang.String userid)
Determines if the specified user holds privileges for prioritizing defects |
boolean |
canResolve(java.lang.String userid)
Determines if the specified user holds privileges for marking defects as fixed |
boolean |
canVerify(java.lang.String userid)
Determines if the specified user holds privileges for marking fixed defects as "verified" |
DefectIntf |
createNewDefect(java.lang.String uid)
creates a new defect object. |
UserIntf |
createNewUser(java.lang.String requestor,
java.lang.String userid)
Provides a factory method for creating new User objects. |
int |
getNextDefectID()
Returns the next sequential defect number. |
void |
implConnect(org.omg.CORBA.Object obj)
|
void |
implDisconnect(org.omg.CORBA.Object obj)
|
void |
securityCheck(PersistentDefect defect,
java.lang.String username)
this method checks to ensure that changes made to the defect are permitted by the defect change policies |
void |
securityCheck(PersistentUser user,
java.lang.String username)
|
void |
setOrb(org.omg.CORBA.ORB orb)
|
void |
statusChanged(_DefectIntfOperations theDefect)
when the defect has changed, the policy object will notify the list of addressees (in the changedMailList member of the defect) that the defect has changed, and include the updated defect. |
boolean |
TestUnit()
Method for supporting the TestHarness |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DefectPolicy()
Method Detail |
public DefectIntf createNewDefect(java.lang.String uid)
uid
- users identifierpublic UserIntf createNewUser(java.lang.String requestor, java.lang.String userid) throws AlreadyExistsException, AppSecurityException
requestor
- id of the user making the request to create a new useruserid
- identification for the new user. This must be unique; otherwise this method will throw an AlreadyExistsExceptionpublic void statusChanged(_DefectIntfOperations theDefect) throws java.lang.SecurityException
public boolean canAssign(java.lang.String userid)
userid
- id of the userpublic boolean canPrioritize(java.lang.String userid)
userid
- id of the userpublic boolean canVerify(java.lang.String userid)
userid
- id of the userpublic boolean canResolve(java.lang.String userid)
userid
- id of the userpublic boolean canAdminister(java.lang.String userid)
userid
- id of the userpublic int getNextDefectID()
public void setOrb(org.omg.CORBA.ORB orb)
public void implConnect(org.omg.CORBA.Object obj)
public void implDisconnect(org.omg.CORBA.Object obj)
public void securityCheck(PersistentUser user, java.lang.String username) throws AppSecurityException
username
- id of user making the changespublic void securityCheck(PersistentDefect defect, java.lang.String username) throws AppSecurityException
defect
- a referece to the user to be changedusername
- id of user making the changespublic boolean TestUnit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |