| |
|
Line 41
|
Parallel
|
Line 41
|
Parallel
|
| 41 |
import com.dhyan.component.security.Node; |
41 |
import com.dhyan.component.security.Node; |
| 42 |
import com.dhyan.component.security.RoleConstants; |
42 |
import com.dhyan.component.security.RoleConstants; |
| 43 |
import com.dhyan.component.security.SecurityConstants; |
43 |
import com.dhyan.component.security.SecurityConstants; |
| 44 |
import com.dhyan.component.security.useradmin.ExpiryDetailsSingleton; |
|
|
| 45 |
import com.dhyan.component.security.useradmin.UserNameDetailer; |
44 |
import com.dhyan.component.security.useradmin.UserNameDetailer; |
| 46 |
import com.dhyan.component.security.useradmin.datamodel.Auditstatus; |
45 |
import com.dhyan.component.security.useradmin.datamodel.Auditstatus; |
| 47 |
import com.dhyan.component.security.useradmin.datamodel.Audittrails; |
46 |
import com.dhyan.component.security.useradmin.datamodel.Audittrails; |
| |
| |
|
Line 64
|
Parallel
|
Line 63
|
Parallel
|
| 64 |
import com.dhyan.nms.server.conf.DNMSServerDetailsUtility; |
63 |
import com.dhyan.nms.server.conf.DNMSServerDetailsUtility; |
| 65 |
import com.dhyan.nms.util.DBManager; |
64 |
import com.dhyan.nms.util.DBManager; |
| 66 |
import com.dhyan.nms.util.LocalLookupManager; |
65 |
import com.dhyan.nms.util.LocalLookupManager; |
| 67 |
import com.dnms.com.dhyan.component.security.useradmin.resources.expiryValidator.Validation; |
|
|
| 68 |
|
66 |
|
| 69 |
@Stateless(name = "SecurityFacadeBean") |
67 |
@Stateless(name = "SecurityFacadeBean") |
| 70 |
public class SecurityFacadeBean implements SecurityFacade, SecurityFacadeLocal |
68 |
public class SecurityFacadeBean implements SecurityFacade, SecurityFacadeLocal |
| |
| |
|
Line 101
|
Parallel
|
Line 99
|
Parallel
|
| 101 |
private static final String ADD_GROUP = "Add Group - "; |
99 |
private static final String ADD_GROUP = "Add Group - "; |
| 102 |
private static final String UPDATE_GROUP = "Update Group - "; |
100 |
private static final String UPDATE_GROUP = "Update Group - "; |
| 103 |
private static final String UPDATE = "UPDATE"; |
101 |
private static final String UPDATE = "UPDATE"; |
|
|
102 |
private static Date currentDate = new Date(); |
| 104 |
|
103 |
|
| 105 |
@PersistenceContext(unitName = "SEC-MAN-EJB3-ejbPU") |
104 |
@PersistenceContext(unitName = "SEC-MAN-EJB3-ejbPU") |
| 106 |
private EntityManager em; |
105 |
private EntityManager em; |
| |
| |
|
Line 125
|
Parallel
|
Line 124
|
Parallel
|
| 125 |
info.setUserstatusid(getUserstatusid(info.getStatus())); |
124 |
info.setUserstatusid(getUserstatusid(info.getStatus())); |
| 126 |
info.setUpdatedtime(cal.getTimeInMillis()); |
125 |
info.setUpdatedtime(cal.getTimeInMillis()); |
| 127 |
info.setCreatedtime(cal.getTimeInMillis()); |
126 |
info.setCreatedtime(cal.getTimeInMillis()); |
| 128 |
if (info.getAccountExpDate() > 0) |
127 |
if (info.getAccountage() > 0) |
| 129 |
{ |
128 |
{ |
| 130 |
info.setAccountExpDate(getmidnightTimeInLong(new Long(info.getAccountExpDate()).intValue())); |
129 |
Long aexp = getmidnightTimeInLong(new Long(info.getAccountage()).intValue()); |
|
|
130 |
info.setAccountExpDate(aexp); |
| 131 |
} |
131 |
} |
| 132 |
if (info.getPasswordExpDate() > 0) |
132 |
if (info.getPasswordage() > 0) |
| 133 |
{ |
133 |
{ |
| 134 |
info.setPasswordExpDate(getmidnightTimeInLong(new Long(info.getPasswordExpDate()).intValue())); |
134 |
|
|
|
135 |
Long pexp = getmidnightTimeInLong(new Long(info.getPasswordage()).intValue()); |
|
|
136 |
info.setPasswordExpDate(pexp); |
| 135 |
} |
137 |
} |
|
|
138 |
info.setUserstatusid(Integer.parseInt(info.getStatus())); |
| 136 |
em.persist(info); |
139 |
em.persist(info); |
| 137 |
if (superiorid != -1) |
140 |
if (superiorid != -1) |
| 138 |
{ |
141 |
{ |
| |
| |
|
Line 273
|
Parallel
|
Line 276
|
Parallel
|
| 273 |
Userdetails updateuserinfo = (Userdetails) uInfo; |
276 |
Userdetails updateuserinfo = (Userdetails) uInfo; |
| 274 |
Userhierarchy userhierarchy = null; |
277 |
Userhierarchy userhierarchy = null; |
| 275 |
Userhierarchy objUsrHierarchy = updateuserinfo.getUserhierarchyVo(); |
278 |
Userhierarchy objUsrHierarchy = updateuserinfo.getUserhierarchyVo(); |
| 276 |
String supName = new String(); |
279 |
int superiorid = -1; |
| 277 |
if (objUsrHierarchy != null) |
280 |
if (objUsrHierarchy != null) |
| 278 |
{ |
281 |
{ |
| 279 |
supName = objUsrHierarchy.getSuperiorName(); |
282 |
superiorid = getUserID(objUsrHierarchy.getSuperiorName()); |
| 280 |
} |
283 |
} |
| 281 |
int superiorid = getUserID(supName); |
|
|
| 282 |
try |
284 |
try |
| 283 |
{ |
285 |
{ |
| 284 |
userhierarchy = em.find(Userhierarchy.class, updateuserinfo.getUserid()); |
286 |
userhierarchy = em.find(Userhierarchy.class, updateuserinfo.getUserid()); |
| |
| |
|
Line 304
|
Parallel
|
Line 306
|
Parallel
|
| 304 |
} |
306 |
} |
| 305 |
Calendar cal = Calendar.getInstance(TimeZone.getDefault()); |
307 |
Calendar cal = Calendar.getInstance(TimeZone.getDefault()); |
| 306 |
updateuserinfo.setUpdatedtime(cal.getTimeInMillis()); |
308 |
updateuserinfo.setUpdatedtime(cal.getTimeInMillis()); |
| 307 |
|
309 |
if(updateuserinfo.getStatus() != null) |
| 308 |
if (updateuserinfo.getPasswordStatus() != null && updateuserinfo.getPasswordStatus().equalsIgnoreCase("Y")) |
|
|
| 309 |
{ |
310 |
{ |
| 310 |
updateuserinfo.setUserstatusid(SecurityConstants.ACTIVE); |
311 |
updateuserinfo.setUserstatusid(Integer.parseInt(updateuserinfo.getStatus())); |
| 311 |
} |
312 |
} |
| 312 |
else |
313 |
if (updateuserinfo.getAccountage() > 0 && updateuserinfo.getAccountExpDate() <= currentDate.getTime()) |
| 313 |
{ |
314 |
{ |
| 314 |
int tmp_user_status_id = getUserstatusid(updateuserinfo.getStatus()); |
315 |
updateuserinfo.setAccountExpDate(getmidnightTimeInLong(new Long(updateuserinfo.getAccountage()).intValue())); |
| 315 |
if (tmp_user_status_id > 0) |
|
|
| 316 |
{ |
|
|
| 317 |
updateuserinfo.setUserstatusid(tmp_user_status_id); |
|
|
| 318 |
} |
|
|
| 319 |
} |
316 |
} |
| 320 |
if (updateuserinfo.getAccountExpDate() > 0) |
317 |
if (updateuserinfo.getPasswordage() > 0) |
| 321 |
{ |
318 |
{ |
| 322 |
updateuserinfo.setAccountExpDate(getmidnightTimeInLong(new Long(updateuserinfo.getAccountExpDate()).intValue())); |
319 |
updateuserinfo.setPasswordExpDate(getmidnightTimeInLong(new Long(updateuserinfo.getPasswordage()).intValue())); |
| 323 |
} |
320 |
} |
| 324 |
if (updateuserinfo.getPasswordExpDate() > 0) |
|
|
| 325 |
{ |
|
|
| 326 |
updateuserinfo.setPasswordExpDate(getmidnightTimeInLong(new Long(updateuserinfo.getPasswordExpDate()).intValue())); |
|
|
| 327 |
} |
|
|
| 328 |
em.merge(updateuserinfo); |
321 |
em.merge(updateuserinfo); |
| 329 |
addSecurityAuditTrailInfo(RoleConstants.SEC_MOD_USER, UPDATE_USER + userName, RoleConstants.OPERATION_SUCCESS); |
322 |
addSecurityAuditTrailInfo(RoleConstants.SEC_MOD_USER, UPDATE_USER + userName, RoleConstants.OPERATION_SUCCESS); |
| 330 |
MessageObject securityMO = new MessageObject(NotificationConstants.NOTIFICATION_WEB_SECURITYUSER, userhierarchy); |
323 |
MessageObject securityMO = new MessageObject(NotificationConstants.NOTIFICATION_WEB_SECURITYUSER, userhierarchy); |
| |
| |
|
Line 386
|
Parallel
|
Line 379
|
Parallel
|
| 386 |
{ |
379 |
{ |
| 387 |
Userdetails userdetails = fetchUserDetailValue(userName); |
380 |
Userdetails userdetails = fetchUserDetailValue(userName); |
| 388 |
userdetails.setPassword(newPassword); |
381 |
userdetails.setPassword(newPassword); |
|
|
382 |
userdetails.setPasswordExpDate(getmidnightTimeInLong(new Long(userdetails.getPasswordage()).intValue())); |
| 389 |
em.merge(userdetails); |
383 |
em.merge(userdetails); |
| 390 |
String messagetonofity = "Your Password is changed by the Server"; |
384 |
String messagetonofity = "Your Password is changed by the Server"; |
| 391 |
if (notificationMessage != null) |
385 |
if (notificationMessage != null) |
| |
| |
|
Line 450
|
Parallel
|
Line 444
|
Parallel
|
| 450 |
uinfo.setPasswordStatus(receivedobj.getPasswordStatus()); |
444 |
uinfo.setPasswordStatus(receivedobj.getPasswordStatus()); |
| 451 |
} |
445 |
} |
| 452 |
uinfo.setUserstatusid(userStatus); |
446 |
uinfo.setUserstatusid(userStatus); |
| 453 |
// uinfo.setPasswordExpDate(new Long(-1)); |
447 |
if(uinfo.getPasswordage() > 0) |
|
|
448 |
{ |
|
|
449 |
uinfo.setPasswordExpDate(getmidnightTimeInLong(new Long(uinfo.getPasswordage()).intValue())); |
|
|
450 |
} |
| 454 |
em.merge(uinfo); |
451 |
em.merge(uinfo); |
| 455 |
MessageObject securityMO = new MessageObject(NotificationConstants.NOTIFICATION_WEB_SECURITYUSER, uinfo); |
452 |
MessageObject securityMO = new MessageObject(NotificationConstants.NOTIFICATION_WEB_SECURITYUSER, uinfo); |
| 456 |
try |
453 |
try |
| |
| |
|
Line 1678
|
Parallel
|
Line 1675
|
Parallel
|
| 1678 |
public void validateUsers() |
1675 |
public void validateUsers() |
| 1679 |
{ |
1676 |
{ |
| 1680 |
log.info("Validating user account(s) for expiry."); |
1677 |
log.info("Validating user account(s) for expiry."); |
| 1681 |
Validation validationDetails = null; |
|
|
| 1682 |
try |
1678 |
try |
| 1683 |
{ |
1679 |
{ |
| 1684 |
validationDetails = ExpiryDetailsSingleton.getInstance().getValidatorDetails(); |
|
|
| 1685 |
} |
|
|
| 1686 |
catch (Exception e) |
|
|
| 1687 |
{ |
|
|
| 1688 |
log.error("Could not read default expiry details from xml. Reason : " + e.getMessage()); |
|
|
| 1689 |
} |
|
|
| 1690 |
log.info("Validating account : " + validationDetails.getAccount()); |
|
|
| 1691 |
log.info("Validating idle : " + validationDetails.getIdletimeout()); |
|
|
| 1692 |
log.info("Validating Pass : " + validationDetails.getPassword()); |
|
|
| 1693 |
try |
|
|
| 1694 |
{ |
|
|
| 1695 |
List<Userdetails> usercollection = em.createNamedQuery(USERDETAILS_FINDALL).getResultList(); |
1680 |
List<Userdetails> usercollection = em.createNamedQuery(USERDETAILS_FINDALL).getResultList(); |
| 1696 |
for (Userdetails userdetails : usercollection) |
1681 |
for (Userdetails userdetails : usercollection) |
| 1697 |
{ |
1682 |
{ |
| 1698 |
if (userdetails.getPasswordExpDate() > 0 || userdetails.getAccountExpDate() > 0) |
1683 |
// do not do any expiry validation if the account is already in |
|
|
1684 |
// expired state |
|
|
1685 |
if (userdetails.getUserstatusid() != SecurityConstants.ACCEXPIRY) |
| 1699 |
{ |
1686 |
{ |
|
|
1687 |
log.info("Initializing expiry validation for user " + userdetails.getUsername()); |
| 1700 |
java.util.Date pexpdate = new java.util.Date(userdetails.getPasswordExpDate()); |
1688 |
java.util.Date pexpdate = new java.util.Date(userdetails.getPasswordExpDate()); |
| 1701 |
java.util.Date aexpdate = new java.util.Date(userdetails.getAccountExpDate()); |
1689 |
java.util.Date aexpdate = new java.util.Date(userdetails.getAccountExpDate()); |
| 1702 |
double diff = pexpdate.getTime() - new Date().getTime(); |
1690 |
int accountExpired = -1; |
| 1703 |
int pexpdays = (int) (diff / 86400000); |
1691 |
int passwordExpired = -1; |
| 1704 |
diff = aexpdate.getTime() - new Date().getTime(); |
1692 |
passwordExpired = currentDate.compareTo(pexpdate); |
| 1705 |
int aexpdays = (int) (diff / 86400000); |
1693 |
accountExpired = currentDate.compareTo(aexpdate); |
| 1706 |
// if the password or account expires, user status is |
1694 |
// if the password or account expires, user status is |
| 1707 |
// changed. |
1695 |
// changed. |
| 1708 |
log.info(userdetails.getUsername() + " password will expire in " + pexpdays + "days and account in +" + aexpdays); |
1696 |
if (userdetails.getAccountage() > 0 && accountExpired >= 0) |
| 1709 |
if (aexpdays <= 0) |
|
|
| 1710 |
{ |
1697 |
{ |
| 1711 |
log.info("Account has expired for user : " + userdetails.getUsername()); |
1698 |
log.info("Account has expired for user : " + userdetails.getUsername()); |
| 1712 |
if (userdetails.getUserstatusid() != SecurityConstants.ACCEXPIRY) |
1699 |
userdetails.setUserstatusid(SecurityConstants.ACCEXPIRY); |
| 1713 |
{ |
1700 |
userdetails.setUpdatedtime(new Long(System.currentTimeMillis())); |
| 1714 |
userdetails.setUserstatusid(SecurityConstants.ACCEXPIRY); |
1701 |
MessageObject securityGroupMO = new MessageObject(NotificationConstants.NOTIFICATION_SECURITY_KILLUSER, userdetails); |
| 1715 |
userdetails.setUpdatedtime(new Long(System.currentTimeMillis())); |
1702 |
PublisherManager.getInstance().sendMessage(NotificationConstants.NOTIFICATION_TOPIC_SECURITY_USER, securityGroupMO, |
| 1716 |
// Setting the expiry date calculated based on the |
1703 |
PublisherManager.NONDURABLETOPIC); |
| 1717 |
// default password age as in xml |
1704 |
|
| 1718 |
userdetails.setAccountExpDate(System.currentTimeMillis() + (86400000 * validationDetails.getPassword())); |
|
|
| 1719 |
MessageObject securityGroupMO = new MessageObject(NotificationConstants.NOTIFICATION_SECURITY_KILLUSER, userdetails); |
|
|
| 1720 |
PublisherManager.getInstance().sendMessage(NotificationConstants.NOTIFICATION_TOPIC_SECURITY_USER, securityGroupMO, |
|
|
| 1721 |
PublisherManager.NONDURABLETOPIC); |
|
|
| 1722 |
} |
|
|
| 1723 |
} |
1705 |
} |
| 1724 |
if (pexpdays <= 0) |
1706 |
else if (userdetails.getPasswordage() > 0 && passwordExpired >= 0) |
| 1725 |
{ |
1707 |
{ |
| 1726 |
log.info("Password has expired for user : " + userdetails.getUsername()); |
1708 |
|
| 1727 |
if (userdetails.getUserstatusid() != SecurityConstants.PWDEXPIRY) |
1709 |
if (userdetails.getUserstatusid() != SecurityConstants.PWDEXPIRY) |
| 1728 |
{ |
1710 |
{ |
|
|
1711 |
log.info("Password has expired for user : " + userdetails.getUsername()); |
| 1729 |
userdetails.setUserstatusid(SecurityConstants.PWDEXPIRY); |
1712 |
userdetails.setUserstatusid(SecurityConstants.PWDEXPIRY); |
| 1730 |
userdetails.setUpdatedtime(new Long(System.currentTimeMillis())); |
1713 |
userdetails.setUpdatedtime(new Long(System.currentTimeMillis())); |
| 1731 |
// Setting the expiry date calculated based on the |
|
|
| 1732 |
// default account age as in xml |
|
|
| 1733 |
userdetails.setPasswordExpDate(System.currentTimeMillis() + (86400000 * validationDetails.getAccount())); |
|
|
| 1734 |
} |
1714 |
} |
| 1735 |
} |
1715 |
} |
| 1736 |
em.merge(userdetails); |
1716 |
em.merge(userdetails); |
| |
| |
|
Line 2483
|
Parallel
|
Line 2463
|
Parallel
|
| 2483 |
*/ |
2463 |
*/ |
| 2484 |
private long getmidnightTimeInLong(final int numberOfDaysFromPresent) |
2464 |
private long getmidnightTimeInLong(final int numberOfDaysFromPresent) |
| 2485 |
{ |
2465 |
{ |
| 2486 |
Long numberOfDays = new Long(numberOfDaysFromPresent); |
2466 |
Long targetDateInLong = new Long(System.currentTimeMillis()+(numberOfDaysFromPresent*86400000)); |
| 2487 |
Calendar myCal = Calendar.getInstance(); |
2467 |
Calendar myCal = Calendar.getInstance(); |
|
|
2468 |
myCal.setTimeInMillis(targetDateInLong - 1); |
| 2488 |
Calendar temp = Calendar.getInstance(); |
2469 |
Calendar temp = Calendar.getInstance(); |
| 2489 |
temp.setLenient(true); |
2470 |
temp.setLenient(true); |
| 2490 |
temp.set(myCal.get(Calendar.YEAR), myCal.get(Calendar.MONTH), myCal.get(Calendar.DATE) + numberOfDays.intValue() + 1, 0, 0, 0); |
2471 |
temp.set(myCal.get(Calendar.YEAR), myCal.get(Calendar.MONTH), myCal.get(Calendar.DATE) + 0, 0, 0, 0); |
| 2491 |
temp.set(Calendar.MILLISECOND, 0); |
2472 |
temp.set(Calendar.MILLISECOND, 0); |
| 2492 |
return temp.getTimeInMillis() - 1; |
2473 |
return temp.getTimeInMillis(); |
| 2493 |
} |
2474 |
} |
| 2494 |
|
2475 |
|
| 2495 |
/* |
2476 |
/* |
| |
| |
|
Line 2499
|
Parallel
|
Line 2480
|
Parallel
|
| 2499 |
private long getmidnightTimeInLong(final long timeInMillis) |
2480 |
private long getmidnightTimeInLong(final long timeInMillis) |
| 2500 |
{ |
2481 |
{ |
| 2501 |
Calendar myCal = Calendar.getInstance(); |
2482 |
Calendar myCal = Calendar.getInstance(); |
| 2502 |
myCal.setTimeInMillis(timeInMillis); |
2483 |
myCal.setTimeInMillis(timeInMillis-1); |
| 2503 |
Calendar temp = Calendar.getInstance(); |
2484 |
Calendar temp = Calendar.getInstance(); |
| 2504 |
temp.setLenient(true); |
2485 |
temp.setLenient(true); |
| 2505 |
temp.set(myCal.get(Calendar.YEAR), myCal.get(Calendar.MONTH), myCal.get(Calendar.DATE) + 0, 0, 0, 0); |
2486 |
temp.set(myCal.get(Calendar.YEAR), myCal.get(Calendar.MONTH), myCal.get(Calendar.DATE) + 0, 0, 0, 0); |
| |
| |
|
Line 3
|
Parallel
|
Line 3
|
Parallel
|
| 3 |
id - the id of this element |
3 |
id - the id of this element |
| 4 |
type - The orientation type of the separator ( horizontal / vertical ) |
4 |
type - The orientation type of the separator ( horizontal / vertical ) |
| 5 |
parentDiv - the parent component in which the divider component should be added |
5 |
parentDiv - the parent component in which the divider component should be added |
| 6 |
|
6 |
|
| 7 |
leftChild - the element to be placed in left ( top in case of vertical type ) side of the divider |
7 |
leftChild - the element to be placed in left ( top in case of vertical type ) side of the divider |
| 8 |
rightChild - the element to be placed in right ( bottom in case of vertical type ) side of the divider |
8 |
rightChild - the element to be placed in right ( bottom in case of vertical type ) side of the divider |
| 9 |
ratio - the initial split up of layouts Left:Right |
9 |
ratio - the initial split up of layouts Left:Right |
| 10 |
|
10 |
|
| 11 |
**/ |
11 |
**/ |
| 12 |
|
12 |
|
| 13 |
var Divider = Class.create(); |
13 |
var Divider = Class.create(); |
| |
| |
|
Line 17
|
Parallel
|
Line 17
|
Parallel
|
| 17 |
|
17 |
|
| 18 |
Divider.prototype = { |
18 |
Divider.prototype = { |
| 19 |
initialize: function(params) { |
19 |
initialize: function(params) { |
| 20 |
|
20 |
|
| 21 |
// To initialize |
21 |
// To initialize |
| 22 |
this.isMouseDown = false; |
22 |
this.isMouseDown = false; |
| 23 |
this.seperator_position = 0; |
23 |
this.seperator_position = 0; |
| 24 |
this.leftchild_size = 0; |
24 |
this.leftchild_size = 0; |
| 25 |
this.layoutIntialised = false; |
25 |
this.layoutIntialised = false; |
| 26 |
this.browserAdjustableWidth = 0; |
26 |
this.browserAdjustableWidth = 0; |
| 27 |
|
27 |
this.left_min_size = 0; |
|
|
28 |
this.right_min_size = 0; |
| 28 |
this.id = params.id; |
29 |
this.id = params.id; |
| 29 |
this.type = params.type; |
30 |
this.type = params.type; |
| 30 |
this.parent = $(params.parent); |
31 |
this.parent = $(params.parent); |
| |
| |
|
Line 34
|
Parallel
|
Line 35
|
Parallel
|
| 34 |
this.canDrag = true; |
35 |
this.canDrag = true; |
| 35 |
if( params.ratio != null ){ |
36 |
if( params.ratio != null ){ |
| 36 |
this.ratio = params.ratio; |
37 |
this.ratio = params.ratio; |
| 37 |
} |
38 |
} |
| 38 |
|
39 |
|
| 39 |
this.resizer = document.createElement('div'); |
40 |
this.resizer = document.createElement('div'); |
| 40 |
// alert( " Creating resizer div for type "+this.type ); |
41 |
// alert( " Creating resizer div for type "+this.type ); |
| 41 |
Element.extend ( this.parent ); |
42 |
Element.extend ( this.parent ); |
| 42 |
Element.extend ( this.leftChild ); |
43 |
Element.extend ( this.leftChild ); |
| 43 |
Element.extend ( this.rightChild ); |
44 |
Element.extend ( this.rightChild ); |
| 44 |
Element.extend ( this.resizer ); |
45 |
Element.extend ( this.resizer ); |
| 45 |
|
46 |
|
| 46 |
if ( navigator.appName != null && navigator.appName.indexOf("Microsoft") != -1 );{ |
47 |
if ( navigator.appName != null && navigator.appName.indexOf("Microsoft") != -1 );{ |
| 47 |
this.browserAdjustableWidth = 5; |
48 |
this.browserAdjustableWidth = 5; |
| 48 |
} |
49 |
} |
| 49 |
this.createLayout(); |
50 |
this.createLayout(); |
| 50 |
this.setLayoutStyles(); |
51 |
this.setLayoutStyles(); |
| 51 |
}, |
52 |
}, |
| 52 |
toString : function() { |
53 |
toString : function() { |
| 53 |
return " Divider Object { id:"+this.id+", type :" + this.type + ", parent: " +this.parent+ ", leftChild : " |
54 |
return " Divider Object { id:"+this.id+", type :" + this.type + ", parent: " +this.parent+ ", leftChild : " |
| 54 |
+ this.leftChild+ ", rightChild: "+this.rightChild +" } "; |
55 |
+ this.leftChild+ ", rightChild: "+this.rightChild +" } "; |
| 55 |
}, |
56 |
}, |
| 56 |
|
57 |
|
|
|
58 |
setOnResizeHandler: |
|
|
59 |
function(paramHandler) |
|
|
60 |
{ |
|
|
61 |
this.onResizeHandler = paramHandler; |
|
|
62 |
}, |
|
|
63 |
|
|
|
64 |
setLeftMinSize: |
|
|
65 |
function(paramValue) |
|
|
66 |
{ |
|
|
67 |
this.left_min_size = paramValue; |
|
|
68 |
}, |
|
|
69 |
|
|
|
70 |
setRightMinSize: |
|
|
71 |
function(paramValue) |
|
|
72 |
{ |
|
|
73 |
this.right_min_size = paramValue; |
|
|
74 |
}, |
|
|
75 |
|
| 57 |
draggable: function(canDrag) |
76 |
draggable: function(canDrag) |
| 58 |
{ |
77 |
{ |
| 59 |
this.canDrag = canDrag; |
78 |
this.canDrag = canDrag; |
| |
| |
|
Line 66
|
Parallel
|
Line 85
|
Parallel
|
| 66 |
this.resizer.style.cursor = "col-resize"; |
85 |
this.resizer.style.cursor = "col-resize"; |
| 67 |
} |
86 |
} |
| 68 |
}, |
87 |
}, |
| 69 |
|
88 |
|
| 70 |
createLayout: function(){ |
89 |
createLayout: function(){ |
| 71 |
this.setLayoutStyles(); |
90 |
this.setLayoutStyles(); |
| 72 |
this.parent.appendChild(this.leftChild); |
91 |
this.parent.appendChild(this.leftChild); |
| 73 |
this.parent.appendChild(this.resizer); |
92 |
this.parent.appendChild(this.resizer); |
| 74 |
this.parent.appendChild(this.rightChild); |
93 |
this.parent.appendChild(this.rightChild); |
| 75 |
|
94 |
|
| 76 |
this.seperatorMouseDownEvent = this.seperatorMouseDown.bindAsEventListener(this); |
95 |
this.seperatorMouseDownEvent = this.seperatorMouseDown.bindAsEventListener(this); |
| 77 |
this.seperatorMouseUpEvent = this.seperatorMouseUp.bindAsEventListener(this); |
96 |
this.seperatorMouseUpEvent = this.seperatorMouseUp.bindAsEventListener(this); |
| 78 |
this.dividerMouseMoveEvent = this.dividerMouseMove.bindAsEventListener(this); |
97 |
this.dividerMouseMoveEvent = this.dividerMouseMove.bindAsEventListener(this); |
| 79 |
this.dividerMouseUpEvent = this.dividerMouseUp.bindAsEventListener(this); |
98 |
this.dividerMouseUpEvent = this.dividerMouseUp.bindAsEventListener(this); |
| 80 |
|
99 |
|
| 81 |
Event.observe(this.resizer, "mousedown", this.seperatorMouseDownEvent); |
100 |
Event.observe(this.resizer, "mousedown", this.seperatorMouseDownEvent); |
| 82 |
Event.observe(this.resizer, "mouseup", this.seperatorMouseUpEvent); |
101 |
Event.observe(this.resizer, "mouseup", this.seperatorMouseUpEvent); |
| 83 |
Event.observe(this.parent, "mousemove", this.dividerMouseMoveEvent); |
102 |
Event.observe(this.parent, "mousemove", this.dividerMouseMoveEvent); |
| 84 |
Event.observe(this.parent, "mouseup", this.dividerMouseUpEvent); |
103 |
Event.observe(this.parent, "mouseup", this.dividerMouseUpEvent); |
| 85 |
}, |
104 |
}, |
| 86 |
|
105 |
|
| 87 |
setLayoutStyles : function () { |
106 |
setLayoutStyles : function () { |
| 88 |
|
107 |
|
| 89 |
this.parent.addClassName("DNMSDivider_parent").show(); |
108 |
this.parent.addClassName("DNMSDivider_parent").show(); |
| 90 |
var leftRatio = parseInt( this.ratio.split(":")[0] ); |
109 |
var leftRatio = parseInt( this.ratio.split(":")[0] ); |
| 91 |
var rightRatio = parseInt( this.ratio.split(":")[1] ); |
110 |
var rightRatio = parseInt( this.ratio.split(":")[1] ); |
| 92 |
|
111 |
|
| 93 |
if ( this.type == Divider.TYPE_HORIZONTAL ) { |
112 |
if ( this.type == Divider.TYPE_HORIZONTAL ) { |
| 94 |
|
113 |
|
| 95 |
this.leftChild.addClassName("DNMSDivider_topchild").show(); |
114 |
this.leftChild.addClassName("DNMSDivider_topchild").show(); |
| 96 |
if (Prototype.Browser.IE) { |
115 |
if (Prototype.Browser.IE) { |
| 97 |
this.resizer.addClassName('DNMSDivider_horizantal_resizer').show(); |
116 |
this.resizer.addClassName('DNMSDivider_horizantal_resizer').show(); |
| 98 |
} |
117 |
} |
| |
| |
|
Line 103
|
Parallel
|
Line 122
|
Parallel
|
| 103 |
this.rightChild.addClassName("DNMSDivider_bottomchild").show(); |
122 |
this.rightChild.addClassName("DNMSDivider_bottomchild").show(); |
| 104 |
this.rightChild.style.height = (( this.parent.getHeight() * ( rightRatio / ( leftRatio + rightRatio ))) - this.resizer.getHeight()- 20 ) + 'px'; |
123 |
this.rightChild.style.height = (( this.parent.getHeight() * ( rightRatio / ( leftRatio + rightRatio ))) - this.resizer.getHeight()- 20 ) + 'px'; |
| 105 |
this.leftChild.style.height = ( this.parent.getHeight() * ( leftRatio / ( leftRatio + rightRatio ) )) + 'px'; |
124 |
this.leftChild.style.height = ( this.parent.getHeight() * ( leftRatio / ( leftRatio + rightRatio ) )) + 'px'; |
| 106 |
|
125 |
|
| 107 |
}else { |
126 |
}else { |
| 108 |
|
127 |
|
| 109 |
this.leftChild.addClassName("DNMSDivider_leftchild").show(); |
128 |
this.leftChild.addClassName("DNMSDivider_leftchild").show(); |
| 110 |
this.resizer.addClassName('DNMSDivider_vertical_resizer').show(); |
129 |
this.resizer.addClassName('DNMSDivider_vertical_resizer').show(); |
| 111 |
this.rightChild.addClassName("DNMSDivider_rightchild").show(); |
130 |
this.rightChild.addClassName("DNMSDivider_rightchild").show(); |
| 112 |
this.rightChild.style.width = (( this.parent.getWidth() * ( rightRatio /( leftRatio + rightRatio ) )) - this.resizer.getWidth() - this.browserAdjustableWidth )+'px'; |
131 |
this.rightChild.style.width = (( this.parent.getWidth() * ( rightRatio /( leftRatio + rightRatio ) )) - this.resizer.getWidth() - this.browserAdjustableWidth )+'px'; |
| 113 |
this.leftChild.style.width = ( this.parent.getWidth() * ( leftRatio / ( leftRatio + rightRatio ) ))+'px'; |
132 |
this.leftChild.style.width = ( this.parent.getWidth() * ( leftRatio / ( leftRatio + rightRatio ) ))+'px'; |
| 114 |
} |
133 |
} |
| 115 |
}, |
134 |
}, |
| 116 |
|
135 |
|
| 117 |
seperatorMouseDown : function ( mouse ){ |
136 |
seperatorMouseDown : function ( mouse ){ |
| 118 |
this.isMouseDown = true; |
137 |
this.isMouseDown = true; |
| 119 |
this.seperator_position = ( this.type == Divider.TYPE_HORIZONTAL ) ? mouse.clientY : mouse.clientX; |
138 |
this.seperator_position = ( this.type == Divider.TYPE_HORIZONTAL ) ? mouse.clientY : mouse.clientX; |
| 120 |
this.leftchild_size = ( this.type == Divider.TYPE_HORIZONTAL ) ? this.leftChild.getHeight() : this.leftChild.getWidth(); |
139 |
this.leftchild_size = ( this.type == Divider.TYPE_HORIZONTAL ) ? this.leftChild.getHeight() : this.leftChild.getWidth(); |
| 121 |
if ( mouse.preventDefault != null ){ |
140 |
if ( mouse.preventDefault != null ){ |
| 122 |
mouse.preventDefault(); |
141 |
mouse.preventDefault(); |
| 123 |
} |
142 |
} |
| 124 |
return false; |
143 |
return false; |
| 125 |
}, |
144 |
}, |
| 126 |
|
145 |
|
| 127 |
seperatorMouseUp : function ( mouse ){ |
146 |
seperatorMouseUp : function ( mouse ){ |
| 128 |
this.isMouseDown= false; |
147 |
this.isMouseDown= false; |
| 129 |
this.seperator_position = ( this.type == Divider.TYPE_HORIZONTAL ) ? mouse.clientY : mouse.clientX; |
148 |
this.seperator_position = ( this.type == Divider.TYPE_HORIZONTAL ) ? mouse.clientY : mouse.clientX; |
| 130 |
}, |
149 |
}, |
| 131 |
dividerMouseUp : function ( mouse ){ |
150 |
dividerMouseUp : function ( mouse ){ |
| 132 |
this.isMouseDown= false; |
151 |
this.isMouseDown= false; |
|
|
152 |
if (this.onResizeHandler != null) this.onResizeHandler(); |
| 133 |
}, |
153 |
}, |
| 134 |
dividerMouseMove : function ( mouse ){ |
154 |
dividerMouseMove : function ( mouse ){ |
| 135 |
// this is to initialize the layout.. |
155 |
// this is to initialize the layout.. |
| |
| |
|
Line 137
|
Parallel
|
Line 157
|
Parallel
|
| 137 |
this.layoutIntialised = true; |
157 |
this.layoutIntialised = true; |
| 138 |
this.setLayoutStyles(); |
158 |
this.setLayoutStyles(); |
| 139 |
return; |
159 |
return; |
| 140 |
} |
160 |
} |
| 141 |
if ( this.isMouseDown == true && this.canDrag) { |
161 |
if ( this.isMouseDown == true && this.canDrag) { |
| 142 |
var current_mouse_pos = ( this.type == Divider.TYPE_HORIZONTAL ) ? mouse.clientY : mouse.clientX; |
162 |
var current_mouse_pos = ( this.type == Divider.TYPE_HORIZONTAL ) ? mouse.clientY : mouse.clientX; |
| 143 |
var newSize = parseInt( this.leftchild_size + ( current_mouse_pos - this.seperator_position ) ); |
163 |
var newSize = parseInt( this.leftchild_size + ( current_mouse_pos - this.seperator_position ) ); |
| 144 |
var parentSize = parseInt( ( this.type == Divider.TYPE_HORIZONTAL ) ? this.parent.getHeight() : this.parent.getWidth() ); |
164 |
var parentSize = parseInt( ( this.type == Divider.TYPE_HORIZONTAL ) ? this.parent.getHeight() : this.parent.getWidth() ); |
| 145 |
if ( newSize < 15 ){ |
165 |
if ( newSize < 15 ){ |
| 146 |
newSize = 15; |
166 |
newSize = 15; |
| |
| |
|
Line 150
|
Parallel
|
Line 170
|
Parallel
|
| 150 |
this.isMouseDown = false; |
170 |
this.isMouseDown = false; |
| 151 |
} |
171 |
} |
| 152 |
if ( this.type == Divider.TYPE_HORIZONTAL ) { |
172 |
if ( this.type == Divider.TYPE_HORIZONTAL ) { |
| 153 |
this.rightChild.style.height = parseInt( this.parent.getHeight() - newSize - this.resizer.getHeight() - this.browserAdjustableWidth ) +'px'; |
173 |
var rightSize = parseInt( this.parent.getHeight() - newSize - this.resizer.getHeight() - this.browserAdjustableWidth ); |
| 154 |
this.leftChild.style.height = newSize +'px'; |
174 |
if (rightSize < this.right_min_size) |
|
|
175 |
{ |
|
|
176 |
Event.stop(mouse); |
|
|
177 |
return; |
|
|
178 |
} |
|
|
179 |
this.rightChild.style.height = rightSize +'px'; |
|
|
180 |
if (newSize < this.left_min_size) |
|
|
181 |
{ |
|
|
182 |
Event.stop(mouse); |
|
|
183 |
return; |
|
|
184 |
} |
|
|
185 |
this.leftChild.style.height = newSize +'px'; |
| 155 |
} else { |
186 |
} else { |
| 156 |
this.rightChild.style.width = parseInt( this.parent.getWidth() - newSize - this.resizer.getWidth() - this.browserAdjustableWidth ) +'px'; |
187 |
this.rightChild.style.width = parseInt( this.parent.getWidth() - newSize - this.resizer.getWidth() - this.browserAdjustableWidth ) +'px'; |
| 157 |
this.leftChild.style.width = newSize +'px'; |
188 |
this.leftChild.style.width = newSize +'px'; |
| 158 |
} |
189 |
} |
| 159 |
} |
190 |
} |
| 160 |
} |
191 |
} |
| 161 |
|
192 |
|
| 162 |
|
193 |
|
| 163 |
|
194 |
|
| 164 |
|
195 |
|
| 165 |
}; |
196 |
}; |
| |
| |
|
Line 171
|
Parallel
|
Line 171
|
Parallel
|
| 171 |
*/ |
171 |
*/ |
| 172 |
_setUpParentLinks : function (records, parentId) |
172 |
_setUpParentLinks : function (records, parentId) |
| 173 |
{ |
173 |
{ |
|
|
174 |
if (records) |
| 174 |
for (var i = 0; i < records.length ; i++) |
175 |
for (var i = 0; i < records.length ; i++) |
| 175 |
{ |
176 |
{ |
| 176 |
var record = records[i]; |
177 |
var record = records[i]; |
| |
| |
|
Line 188
|
Parallel
|
Line 189
|
Parallel
|
| 188 |
} |
189 |
} |
| 189 |
}, |
190 |
}, |
| 190 |
|
191 |
|
| 191 |
_createLayout : function () |
192 |
_createLayout_old : function () |
| 192 |
{ |
193 |
{ |
| 193 |
|
194 |
|
| 194 |
this.baseContainer = document.createElement('div'); |
195 |
this.baseContainer = document.createElement('div'); |
| |
| |
|
Line 214
|
Parallel
|
Line 215
|
Parallel
|
| 214 |
|
215 |
|
| 215 |
}, |
216 |
}, |
| 216 |
|
217 |
|
|
|
218 |
_createLayout : function () |
|
|
219 |
{ |
|
|
220 |
|
|
|
221 |
this.baseContainer = document.createElement('div'); |
|
|
222 |
this.baseContainer.className = 'treegrid_basecontainer'; |
|
|
223 |
this.treeBody = document.createElement('div'); |
|
|
224 |
this.treeBody.className = "tree_grid_scroller"; |
|
|
225 |
if(this.renderTo) this.renderTo.appendChild(this.baseContainer); |
|
|
226 |
/* Creates the header bar renderTo. Used for both title bar and header bar */ |
|
|
227 |
this.headerContainer = document.createElement('div'); |
|
|
228 |
this.baseContainer.appendChild(this.headerContainer); |
|
|
229 |
this.resizeDiv = this.baseContainer.appendChild(document.createElement('div')); |
|
|
230 |
this.resizeDiv.className = 'treegrid_resize_proxy'; |
|
|
231 |
Event.observe(this.treeBody, "scroll", this._onScroll.bindAsEventListener(this, this.treeBody), false); |
|
|
232 |
this.baseContainer.appendChild(this.treeBody); |
|
|
233 |
this.sizeDivs(); |
|
|
234 |
this._initHeaderLayout(); |
|
|
235 |
}, |
|
|
236 |
|
|
|
237 |
|
|
|
238 |
sizeDivs : function() |
|
|
239 |
{ |
|
|
240 |
this.baseContainer.style.width = this._getWidth() + TreeGrid._$pixelSuffix; |
|
|
241 |
this.baseContainer.style.height = this._getHeight() + TreeGrid._$pixelSuffix; |
|
|
242 |
var proxyDivHeight = this.title ? Element.getDimensions(this.baseContainer).height - 20 : Element.getDimensions(this.baseContainer).height; |
|
|
243 |
proxyDivHeight -= Prototype.Browser.IE ? 0 : 2; |
|
|
244 |
this.resizeDiv.style.height = proxyDivHeight + TreeGrid._$pixelSuffix; |
|
|
245 |
this.treeBody.style.width = this._getWidth() - 2 + TreeGrid._$pixelSuffix; |
|
|
246 |
this.treeBody.style.height = (this._getHeight() - Element.getDimensions(this.headerContainer).height - 2) + TreeGrid._$pixelSuffix; |
|
|
247 |
}, |
|
|
248 |
|
|
|
249 |
resizeGrid: function() |
|
|
250 |
{ |
|
|
251 |
this.containerHeight = null; |
|
|
252 |
this.containerWidth = null; |
|
|
253 |
this.sizeDivs(); |
|
|
254 |
}, |
|
|
255 |
|
| 217 |
_initHeaderLayout : function () |
256 |
_initHeaderLayout : function () |
| 218 |
{ |
257 |
{ |
| 219 |
if(this.title){ |
258 |
if(this.title){ |
| |
| |
|
Line 229
|
Parallel
|
Line 268
|
Parallel
|
| 229 |
headerBar.className = 'treegrid_header_bg'; |
268 |
headerBar.className = 'treegrid_header_bg'; |
| 230 |
this.headerOffsetDiv.className = 'treegrid_header_offset treegrid_header_bg'; |
269 |
this.headerOffsetDiv.className = 'treegrid_header_offset treegrid_header_bg'; |
| 231 |
headerBar.appendChild(this.headerOffsetDiv); |
270 |
headerBar.appendChild(this.headerOffsetDiv); |
| 232 |
var dirtyBlock = headerBar.appendChild(document.createElement('div')); |
271 |
/*var dirtyBlock = headerBar.appendChild(document.createElement('div')); |
|
|
272 |
dirtyBlock.style.border = "1px solid red"; |
| 233 |
dirtyBlock.className = 'treegrid_header_bg'; |
273 |
dirtyBlock.className = 'treegrid_header_bg'; |
| 234 |
dirtyBlock.style.width = this.scrollBarWidth + TreeGrid._$pixelSuffix; |
274 |
dirtyBlock.style.width = this.scrollBarWidth + TreeGrid._$pixelSuffix; |
| 235 |
dirtyBlock.style.height = this.headerBarHeight+ TreeGrid._$pixelSuffix; |
275 |
dirtyBlock.style.height = this.headerBarHeight+ TreeGrid._$pixelSuffix; |
| 236 |
dirtyBlock.style.left = this._getWidth() - this.scrollBarWidth + 1 + TreeGrid._$pixelSuffix; |
276 |
dirtyBlock.style.left = this._getWidth() - this.scrollBarWidth + 1 + TreeGrid._$pixelSuffix; |
| 237 |
dirtyBlock.style.top = this.title ? Prototype.Browser.IE ? 24 : 25 : 1; |
277 |
dirtyBlock.style.top = this.title ? Prototype.Browser.IE ? 24 : 25 : 1; |
| 238 |
dirtyBlock.style.position = 'absolute'; |
278 |
dirtyBlock.style.position = 'absolute';*/ |
| 239 |
|
279 |
|
| 240 |
var headerTable = document.createElement('table'); |
280 |
var headerTable = document.createElement('table'); |
| 241 |
headerTable.setAttribute("cellPadding", 0); |
281 |
headerTable.setAttribute("cellPadding", 0); |
| |
| |
|
Line 319
|
Parallel
|
Line 359
|
Parallel
|
| 319 |
}, |
359 |
}, |
| 320 |
_getHeight : function () |
360 |
_getHeight : function () |
| 321 |
{ |
361 |
{ |
| 322 |
|
362 |
var _temp_moz_height_fix = 0; |
|
|
363 |
if(!Prototype.Browser.IE) _temp_moz_height_fix = 25; |
| 323 |
var height_adjust_diff = this.title ? this.titleBarHeight : this.titleBarHeight + this.headerBarHeight; |
364 |
var height_adjust_diff = this.title ? this.titleBarHeight : this.titleBarHeight + this.headerBarHeight; |
| 324 |
if(Prototype.Browser.IE)height_adjust_diff -=2; |
365 |
if(Prototype.Browser.IE)height_adjust_diff -=2; |
| 325 |
if (this.height) |
366 |
if (this.height) |
| |
| |
|
Line 353
|
Parallel
|
Line 394
|
Parallel
|
| 353 |
this.containerHeight = Math.max(20, this.renderTo.offsetHeight - height_adjust_diff); |
394 |
this.containerHeight = Math.max(20, this.renderTo.offsetHeight - height_adjust_diff); |
| 354 |
} |
395 |
} |
| 355 |
} |
396 |
} |
| 356 |
else this.containerHeight = Math.max(20, calcHeight - height_adjust_diff); |
397 |
else this.containerHeight = Math.max(20, calcHeight - height_adjust_diff + _temp_moz_height_fix); |
| 357 |
} |
398 |
} |
| 358 |
return this.containerHeight; |
399 |
return this.containerHeight; |
| 359 |
}, |
400 |
}, |
| |
| |
|
Line 263
|
Parallel
|
Line 263
|
Parallel
|
| 263 |
AlarmBrowserUtil.alarmBrowserToolBar = new DNMSToolBar('AlarmBrowser', paramToolBarContainer, false); |
263 |
AlarmBrowserUtil.alarmBrowserToolBar = new DNMSToolBar('AlarmBrowser', paramToolBarContainer, false); |
| 264 |
|
264 |
|
| 265 |
AlarmBrowserUtil.editButton = new DNMSToolBarButton('Edit', '/webresource/webbase/styles/css/images/edit.gif', AlarmBrowserUtil.alarmWindow, alarmsLocale.getText("alarms.tooltip.name.alarmDetails")); |
265 |
AlarmBrowserUtil.editButton = new DNMSToolBarButton('Edit', '/webresource/webbase/styles/css/images/edit.gif', AlarmBrowserUtil.alarmWindow, alarmsLocale.getText("alarms.tooltip.name.alarmDetails")); |
|
|
266 |
AlarmBrowserUtil.assignOwnerButton = new DNMSToolBarButton('Assign_Owner', '/webresource/fault/styles/css/images/alarm_assign.gif', AlarmBrowserUtil.assignAlarmOwner, alarmsLocale.getText("alarms.tooltip.name.assignOwner")); |
| 266 |
AlarmBrowserUtil.ackButton = new DNMSToolBarButton('Ack', '/webresource/webbase/styles/css/images/acknowledge.gif', AlarmBrowserUtil.ack, alarmsLocale.getText("alarms.tooltip.name.acknowledge")); |
267 |
AlarmBrowserUtil.ackButton = new DNMSToolBarButton('Ack', '/webresource/webbase/styles/css/images/acknowledge.gif', AlarmBrowserUtil.ack, alarmsLocale.getText("alarms.tooltip.name.acknowledge")); |
| 267 |
AlarmBrowserUtil.clearButton = new DNMSToolBarButton('clear', '/webresource/webbase/styles/css/images/clear.gif', AlarmBrowserUtil.clear, alarmsLocale.getText("alarms.tooltip.name.clear")); |
268 |
AlarmBrowserUtil.clearButton = new DNMSToolBarButton('clear', '/webresource/webbase/styles/css/images/clear.gif', AlarmBrowserUtil.clear, alarmsLocale.getText("alarms.tooltip.name.clear")); |
| 268 |
AlarmBrowserUtil.deleteButton = new DNMSToolBarButton('del', '/webresource/webbase/styles/css/images/delete.gif', AlarmBrowserUtil.del, alarmsLocale.getText("alarms.tooltip.name.delete")); |
269 |
AlarmBrowserUtil.deleteButton = new DNMSToolBarButton('del', '/webresource/webbase/styles/css/images/delete.gif', AlarmBrowserUtil.del, alarmsLocale.getText("alarms.tooltip.name.delete")); |
| |
| |
|
Line 276
|
Parallel
|
Line 277
|
Parallel
|
| 276 |
FaultBrowserUtil.showClearedAlarm = "true"; |
277 |
FaultBrowserUtil.showClearedAlarm = "true"; |
| 277 |
|
278 |
|
| 278 |
AlarmBrowserUtil.alarmBrowserToolBar.insertToolBarItem(AlarmBrowserUtil.editButton, null, true); |
279 |
AlarmBrowserUtil.alarmBrowserToolBar.insertToolBarItem(AlarmBrowserUtil.editButton, null, true); |
|
|
280 |
AlarmBrowserUtil.alarmBrowserToolBar.insertToolBarItem(AlarmBrowserUtil.assignOwnerButton, null, true); |
| 279 |
AlarmBrowserUtil.alarmBrowserToolBar.insertToolBarItem(AlarmBrowserUtil.ackButton, null, true); |
281 |
AlarmBrowserUtil.alarmBrowserToolBar.insertToolBarItem(AlarmBrowserUtil.ackButton, null, true); |
| 280 |
AlarmBrowserUtil.alarmBrowserToolBar.insertToolBarItem(AlarmBrowserUtil.clearButton, null, true); |
282 |
AlarmBrowserUtil.alarmBrowserToolBar.insertToolBarItem(AlarmBrowserUtil.clearButton, null, true); |
| 281 |
AlarmBrowserUtil.alarmBrowserToolBar.insertToolBarItem(AlarmBrowserUtil.deleteButton, null, true); |
283 |
AlarmBrowserUtil.alarmBrowserToolBar.insertToolBarItem(AlarmBrowserUtil.deleteButton, null, true); |
| |
| |
|
Line 291
|
Parallel
|
Line 293
|
Parallel
|
| 291 |
AlarmBrowserUtil.alarmBrowserToolBar.insertToolBarItem(AlarmBrowserUtil.alarmBrowserColumnPropertyButton, null, true); |
293 |
AlarmBrowserUtil.alarmBrowserToolBar.insertToolBarItem(AlarmBrowserUtil.alarmBrowserColumnPropertyButton, null, true); |
| 292 |
|
294 |
|
| 293 |
AlarmBrowserUtil.editButton.disable(); |
295 |
AlarmBrowserUtil.editButton.disable(); |
|
|
296 |
AlarmBrowserUtil.assignOwnerButton.disable(); |
| 294 |
AlarmBrowserUtil.ackButton.disable(); |
297 |
AlarmBrowserUtil.ackButton.disable(); |
| 295 |
AlarmBrowserUtil.clearButton.disable(); |
298 |
AlarmBrowserUtil.clearButton.disable(); |
| 296 |
AlarmBrowserUtil.deleteButton.disable(); |
299 |
AlarmBrowserUtil.deleteButton.disable(); |
| |
| |
|
Line 356
|
Parallel
|
Line 359
|
Parallel
|
| 356 |
maximizable: false, |
359 |
maximizable: false, |
| 357 |
minimizable: false, |
360 |
minimizable: false, |
| 358 |
resizable: false, |
361 |
resizable: false, |
| 359 |
iconURL:"/webresource/webbase/styles/css/images/hide_cleared_alarms.gif", |
362 |
iconURL:"/webresource/fault/styles/css/images/alarm_assign.gif", |
| 360 |
hasButton:true, |
363 |
hasButton:true, |
| 361 |
onContentLoad:AlarmBrowserUtil.loadAssignAlarmWindowButton |
364 |
onContentLoad:AlarmBrowserUtil.loadAssignAlarmWindowButton |
| 362 |
}) |
365 |
}) |
| |
| |
|
Line 454
|
Parallel
|
Line 457
|
Parallel
|
| 454 |
&& AlarmBrowserUtil.alarm_grid.grid.buffer != null) |
457 |
&& AlarmBrowserUtil.alarm_grid.grid.buffer != null) |
| 455 |
AlarmBrowserUtil.alarm_grid.grid.buffer.refresh(); |
458 |
AlarmBrowserUtil.alarm_grid.grid.buffer.refresh(); |
| 456 |
AlarmBrowserUtil.editButton.disable(); |
459 |
AlarmBrowserUtil.editButton.disable(); |
|
|
460 |
AlarmBrowserUtil.assignOwnerButton.disable(); |
| 457 |
AlarmBrowserUtil.ackButton.disable(); |
461 |
AlarmBrowserUtil.ackButton.disable(); |
| 458 |
AlarmBrowserUtil.clearButton.disable(); |
462 |
AlarmBrowserUtil.clearButton.disable(); |
| 459 |
AlarmBrowserUtil.deleteButton.disable(); |
463 |
AlarmBrowserUtil.deleteButton.disable(); |
| |
| |
|
Line 729
|
Parallel
|
Line 733
|
Parallel
|
| 729 |
AlarmBrowserUtil.deleteButton.disable(); |
733 |
AlarmBrowserUtil.deleteButton.disable(); |
| 730 |
} |
734 |
} |
| 731 |
AlarmBrowserUtil.editButton.enable(); |
735 |
AlarmBrowserUtil.editButton.enable(); |
|
|
736 |
AlarmBrowserUtil.assignOwnerButton.enable(); |
| 732 |
if (AlarmBrowserUtil.alarm_grid['grid'].getSelectedRowsJSON().rows.length > 1) |
737 |
if (AlarmBrowserUtil.alarm_grid['grid'].getSelectedRowsJSON().rows.length > 1) |
| 733 |
{ |
738 |
{ |
| 734 |
AlarmBrowserUtil.editButton.disable(); |
739 |
AlarmBrowserUtil.editButton.disable(); |
|
|
740 |
AlarmBrowserUtil.assignOwnerButton.disable(); |
| 735 |
} |
741 |
} |
| 736 |
}, |
742 |
}, |
| 737 |
|
743 |
|
| |
| |
|
Line 746
|
Parallel
|
Line 752
|
Parallel
|
| 746 |
else |
752 |
else |
| 747 |
{ |
753 |
{ |
| 748 |
AlarmBrowserUtil.editButton.disable(); |
754 |
AlarmBrowserUtil.editButton.disable(); |
|
|
755 |
AlarmBrowserUtil.assignOwnerButton.disable(); |
| 749 |
AlarmBrowserUtil.ackButton.disable(); |
756 |
AlarmBrowserUtil.ackButton.disable(); |
| 750 |
AlarmBrowserUtil.clearButton.disable(); |
757 |
AlarmBrowserUtil.clearButton.disable(); |
| 751 |
AlarmBrowserUtil.deleteButton.disable(); |
758 |
AlarmBrowserUtil.deleteButton.disable(); |
| |
| |
|
Line 7
|
Parallel
|
Line 7
|
Parallel
|
| 7 |
import java.util.HashMap; |
7 |
import java.util.HashMap; |
| 8 |
import java.util.Iterator; |
8 |
import java.util.Iterator; |
| 9 |
import java.util.Properties; |
9 |
import java.util.Properties; |
| 10 |
import java.util.TimeZone; |
|
|
| 11 |
import java.util.TreeMap; |
10 |
import java.util.TreeMap; |
| 12 |
import java.util.Vector; |
11 |
import java.util.Vector; |
| 13 |
|
12 |
|
| |
| |
|
Line 1017
|
Parallel
|
Line 1016
|
Parallel
|
| 1017 |
*/ |
1016 |
*/ |
| 1018 |
public String subscribeGroupForNotification() throws Exception |
1017 |
public String subscribeGroupForNotification() throws Exception |
| 1019 |
{ |
1018 |
{ |
| 1020 |
LOGGER.info("Inside subscribeGroupForNotification<<<<<<<<<<<<<<<<<<<<<<<<<" + NotificationConstants.NOTIFICATION_TOPIC_SECURITY_GROUP); |
1019 |
LOGGER.info("Inside subscribeGroupForNotification.................." + NotificationConstants.NOTIFICATION_TOPIC_SECURITY_GROUP); |
| 1021 |
SubscriberDetails subDetails = new SubscriberDetails(); |
1020 |
SubscriberDetails subDetails = new SubscriberDetails(); |
| 1022 |
subDetails.setDataProcessorClass(new SecurityGroupNotificationProcessor()); |
1021 |
subDetails.setDataProcessorClass(new SecurityGroupNotificationProcessor()); |
| 1023 |
subDetails.setTopicName(NotificationConstants.NOTIFICATION_TOPIC_SECURITY_GROUP); |
1022 |
subDetails.setTopicName(NotificationConstants.NOTIFICATION_TOPIC_SECURITY_GROUP); |
| |
| |
|
Line 1025
|
Parallel
|
Line 1024
|
Parallel
|
| 1025 |
subDetails.setSessionId(request.getSession().getId()); |
1024 |
subDetails.setSessionId(request.getSession().getId()); |
| 1026 |
subDetails.setSubscriberKey(NotificationConstants.NOTIFICATION_TOPIC_SECURITY_GROUP + "_Subscriber"); |
1025 |
subDetails.setSubscriberKey(NotificationConstants.NOTIFICATION_TOPIC_SECURITY_GROUP + "_Subscriber"); |
| 1027 |
SubscriberManager.getInstance().subscribe(subDetails); |
1026 |
SubscriberManager.getInstance().subscribe(subDetails); |
| 1028 |
LOGGER.info("subscribed succesfully subscribeGroupForNotification<<<<<<<<<<<<<<<<<<<<<<<<<"); |
1027 |
LOGGER.info("subscribeGroupForNotification subscribed succesfully ................."); |
| 1029 |
response.getWriter().write(RESULT_SUCCESS); |
1028 |
response.getWriter().write(RESULT_SUCCESS); |
| 1030 |
return null; |
1029 |
return null; |
| 1031 |
} |
1030 |
} |
| |
| |
|
Line 1390
|
Parallel
|
Line 1389
|
Parallel
|
| 1390 |
setAvailableGroupsList(group_coll); |
1389 |
setAvailableGroupsList(group_coll); |
| 1391 |
} |
1390 |
} |
| 1392 |
setTimeOut(new Long(idletimeout)); |
1391 |
setTimeOut(new Long(idletimeout)); |
| 1393 |
setPwordExpires(new Long(0)); |
|
|
| 1394 |
setAcctExpires(new Long(0)); |
|
|
| 1395 |
setMode("add"); |
1392 |
setMode("add"); |
| 1396 |
setRolesFlag(true); |
1393 |
setRolesFlag(true); |
| 1397 |
setAuditStatusFlag(true); |
1394 |
setAuditStatusFlag(true); |
| |
| |
|
Line 1417
|
Parallel
|
Line 1414
|
Parallel
|
| 1417 |
setUserName(getUserName()); |
1414 |
setUserName(getUserName()); |
| 1418 |
setUserVersion(info.getVersion()); |
1415 |
setUserVersion(info.getVersion()); |
| 1419 |
setUserStatusId(info.getUserstatusid()); |
1416 |
setUserStatusId(info.getUserstatusid()); |
| 1420 |
if(info.getAccountExpDate() > 0) |
1417 |
setAcctExpires(info.getAccountage()); |
| 1421 |
{ |
1418 |
setPwordExpires(info.getPasswordage()); |
| 1422 |
Calendar cal = Calendar.getInstance(TimeZone.getDefault()); |
|
|
| 1423 |
setAcctExpires((info.getAccountExpDate()-cal.getTimeInMillis())/86400000); |
|
|
| 1424 |
} |
|
|
| 1425 |
else |
|
|
| 1426 |
{ |
|
|
| 1427 |
setAcctExpires(info.getAccountExpDate()); |
|
|
| 1428 |
} |
|
|
| 1429 |
if(info.getPasswordExpDate() > 0) |
|
|
| 1430 |
{ |
|
|
| 1431 |
Calendar cal = Calendar.getInstance(TimeZone.getDefault()); |
|
|
| 1432 |
setPwordExpires((info.getPasswordExpDate()-cal.getTimeInMillis())/86400000); |
|
|
| 1433 |
} |
|
|
| 1434 |
else |
|
|
| 1435 |
{ |
|
|
| 1436 |
setPwordExpires(info.getPasswordExpDate()); |
|
|
| 1437 |
} |
|
|
| 1438 |
setTimeOut(info.getIdleTimeOut()); |
1419 |
setTimeOut(info.getIdleTimeOut()); |
| 1439 |
setExAcctExpires(info.getAccountExpDate()); |
1420 |
setExAcctExpires(info.getAccountExpDate()); |
| 1440 |
setExIdleTimeout(info.getIdleTimeOut()); |
1421 |
setExIdleTimeout(info.getIdleTimeOut()); |
| |
| |
|
Line 1443
|
Parallel
|
Line 1424
|
Parallel
|
| 1443 |
setMobile(info.getMobile()); |
1424 |
setMobile(info.getMobile()); |
| 1444 |
setPager(info.getPager()); |
1425 |
setPager(info.getPager()); |
| 1445 |
setSuperior(info.getUserhierarchyVo().getSuperiorid()); |
1426 |
setSuperior(info.getUserhierarchyVo().getSuperiorid()); |
| 1446 |
setUserStatusName(info.getStatus()); |
1427 |
setUserStatusId(info.getUserstatusid()); |
| 1447 |
setDescription(info.getDescription()); |
1428 |
setDescription(info.getDescription()); |
| 1448 |
if(info.getPasswordStatus().equals("Y")) |
1429 |
if(info.getPasswordStatus().equals("Y")) |
| 1449 |
{ |
1430 |
{ |
| |
| |
|
Line 1505
|
Parallel
|
Line 1486
|
Parallel
|
| 1505 |
} |
1486 |
} |
| 1506 |
} |
1487 |
} |
| 1507 |
setUserName(this.getUserName()); |
1488 |
setUserName(this.getUserName()); |
| 1508 |
if(info.getAccountExpDate() > 0) |
1489 |
setAcctExpires(info.getAccountage()); |
| 1509 |
{ |
1490 |
setPwordExpires(info.getPasswordage()); |
| 1510 |
Calendar cal = Calendar.getInstance(TimeZone.getDefault()); |
|
|
| 1511 |
setAcctExpires((info.getAccountExpDate()-cal.getTimeInMillis())/86400000); |
|
|
| 1512 |
} |
|
|
| 1513 |
else |
|
|
| 1514 |
{ |
|
|
| 1515 |
setAcctExpires(info.getAccountExpDate()); |
|
|
| 1516 |
} |
|
|
| 1517 |
if(info.getPasswordExpDate() > 0) |
|
|
| 1518 |
{ |
|
|
| 1519 |
Calendar cal = Calendar.getInstance(TimeZone.getDefault()); |
|
|
| 1520 |
setPwordExpires((info.getPasswordExpDate()-cal.getTimeInMillis())/86400000); |
|
|
| 1521 |
} |
|
|
| 1522 |
else |
|
|
| 1523 |
{ |
|
|
| 1524 |
setPwordExpires(info.getPasswordExpDate()); |
|
|
| 1525 |
} |
|
|
| 1526 |
setTimeOut(info.getIdleTimeOut()); |
1491 |
setTimeOut(info.getIdleTimeOut()); |
| 1527 |
setEmail(info.getEmail()); |
1492 |
setEmail(info.getEmail()); |
| 1528 |
setMobile(info.getMobile()); |
1493 |
setMobile(info.getMobile()); |
| |
| |
|
Line 1549
|
Parallel
|
Line 1514
|
Parallel
|
| 1549 |
*/ |
1514 |
*/ |
| 1550 |
public String addUserDetails() throws Exception |
1515 |
public String addUserDetails() throws Exception |
| 1551 |
{ |
1516 |
{ |
| 1552 |
LOGGER.info("Entering into adduserDetails method of SecurityManagerAction Class. "); |
|
|
| 1553 |
try |
1517 |
try |
| 1554 |
{ |
1518 |
{ |
| 1555 |
SecurityFacadeLocal security_facade = (SecurityFacadeLocal) LocalLookupManager.getLocalObject(SecurityFacadeLocal.class); |
1519 |
SecurityFacadeLocal security_facade = (SecurityFacadeLocal) LocalLookupManager.getLocalObject(SecurityFacadeLocal.class); |
| |
| |
|
Line 1646
|
Parallel
|
Line 1610
|
Parallel
|
| 1646 |
} |
1610 |
} |
| 1647 |
if (getPwordExpires() != null) |
1611 |
if (getPwordExpires() != null) |
| 1648 |
{ |
1612 |
{ |
| 1649 |
info.setPasswordExpDate(getPwordExpires()); |
1613 |
info.setPasswordage(getPwordExpires()); |
| 1650 |
} |
1614 |
} |
| 1651 |
if (getAcctExpires() != null) |
1615 |
if (getAcctExpires() != null) |
| 1652 |
{ |
1616 |
{ |
| 1653 |
info.setAccountExpDate(getAcctExpires()); |
1617 |
info.setAccountage(getAcctExpires()); |
| 1654 |
} |
1618 |
} |
| 1655 |
if (getTimeOut() != null) |
1619 |
if (getTimeOut() != null) |
| 1656 |
{ |
1620 |
{ |
| |
| |
|
Line 1708
|
Parallel
|
Line 1672
|
Parallel
|
| 1708 |
info.setUserid(getUserId()); |
1672 |
info.setUserid(getUserId()); |
| 1709 |
info.setUserstatusid(getUserStatusId()); |
1673 |
info.setUserstatusid(getUserStatusId()); |
| 1710 |
info.setVersion(getUserVersion()); |
1674 |
info.setVersion(getUserVersion()); |
|
|
1675 |
if(getUserStatusId() == SecurityConstants.ACTIVE && info.getUserstatusid() == SecurityConstants.ACCEXPIRY) |
|
|
1676 |
{ |
|
|
1677 |
info.setAccountExpDate(getmidnightTimeInLong(new Long(getAcctExpires()).intValue())); |
|
|
1678 |
} |
| 1711 |
security_facade.updateUser(info, this.getUserName()[0]); |
1679 |
security_facade.updateUser(info, this.getUserName()[0]); |
| 1712 |
if (getAssignedGroups().size() > 0) |
1680 |
if (getAssignedGroups().size() > 0) |
| 1713 |
{ |
1681 |
{ |
| |
| |
|
Line 2195
|
Parallel
|
Line 2163
|
Parallel
|
| 2195 |
{ |
2163 |
{ |
| 2196 |
this.loggedInUserList = paramLoggedInUserList; |
2164 |
this.loggedInUserList = paramLoggedInUserList; |
| 2197 |
} |
2165 |
} |
|
|
2166 |
|
|
|
2167 |
/* |
|
|
2168 |
* Given the number of days from present the expiry date will be calculated |
|
|
2169 |
* as midnight of that day |
|
|
2170 |
*/ |
|
|
2171 |
private long getmidnightTimeInLong(final int numberOfDaysFromPresent) |
|
|
2172 |
{ |
|
|
2173 |
Long targetDateInLong = new Long(System.currentTimeMillis()+(numberOfDaysFromPresent*86400000)); |
|
|
2174 |
Calendar myCal = Calendar.getInstance(); |
|
|
2175 |
myCal.setTimeInMillis(targetDateInLong - 1); |
|
|
2176 |
Calendar temp = Calendar.getInstance(); |
|
|
2177 |
temp.setLenient(true); |
|
|
2178 |
temp.set(myCal.get(Calendar.YEAR), myCal.get(Calendar.MONTH), myCal.get(Calendar.DATE) + 0, 0, 0, 0); |
|
|
2179 |
temp.set(Calendar.MILLISECOND, 0); |
|
|
2180 |
return temp.getTimeInMillis(); |
|
|
2181 |
} |
| 2198 |
} |
2182 |
} |
| |
| |
|
Line 1000
|
Parallel
|
Line 1000
|
Parallel
|
| 1000 |
INSERT INTO USERSTATUS VALUES(6,'Account Locked',1); |
1000 |
INSERT INTO USERSTATUS VALUES(6,'Account Locked',1); |
| 1001 |
INSERT INTO USERSTATUS VALUES(7,'Change Password On Login',1); |
1001 |
INSERT INTO USERSTATUS VALUES(7,'Change Password On Login',1); |
| 1002 |
|
1002 |
|
| 1003 |
INSERT INTO USERDETAILS VALUES(1,'admin','+GW1NiOxIf007lQmx5Llwzr4wic=',0,0,15,null,null,null,1,1,'Y',-1,-1,null,1); |
1003 |
INSERT INTO USERDETAILS VALUES(1,'admin','+GW1NiOxIf007lQmx5Llwzr4wic=',0,0,15,0,0,null,null,null,1,1,'Y',-1,-1,null,1); |
| 1004 |
|
1004 |
|
| 1005 |
INSERT INTO GROUPDETAILS VALUES(1,'Default','default user',1,1); |
1005 |
INSERT INTO GROUPDETAILS VALUES(1,'Default','default user',1,1); |
| 1006 |
INSERT INTO GROUPDETAILS VALUES(2,'Administrator','Administrator',1,1); |
1006 |
INSERT INTO GROUPDETAILS VALUES(2,'Administrator','Administrator',1,1); |
| |
| |
|
Line 2042
|
Parallel
|
Line 2042
|
Parallel
|
| 2042 |
INSERT INTO DASHBOARDSLOTS VALUES (34, 12, 'MTBF', 3, 4, 28, 1); |
2042 |
INSERT INTO DASHBOARDSLOTS VALUES (34, 12, 'MTBF', 3, 4, 28, 1); |
| 2043 |
|
2043 |
|
| 2044 |
-- PMStats Historical category description |
2044 |
-- PMStats Historical category description |
| 2045 |
INSERT INTO DASHBOARDHISTORICALSLOT values(1,1,1,1,5,1,1,1); |
2045 |
INSERT INTO DASHBOARDHISTORICALSLOT values(1,1,3,1,5,1,1,1); |
| 2046 |
INSERT INTO DASHBOARDHISTORICALSLOT values(2,2,1,1,5,1,2,1); |
2046 |
INSERT INTO DASHBOARDHISTORICALSLOT values(2,2,3,1,5,1,2,1); |
| 2047 |
|
2047 |
|
| 2048 |
INSERT INTO DASHBOARDHISTORICALSLOT values(3,3,1,1,5,1,3,1); |
2048 |
INSERT INTO DASHBOARDHISTORICALSLOT values(3,3,3,1,5,1,3,1); |
| 2049 |
INSERT INTO DASHBOARDHISTORICALSLOT values(4,4,1,1,5,1,3,1); |
2049 |
INSERT INTO DASHBOARDHISTORICALSLOT values(4,4,3,1,5,1,3,1); |
| 2050 |
|
2050 |
|
| 2051 |
INSERT INTO DASHBOARDHISTORICALSLOT values(5,5,1,1,5,1,3,1); |
2051 |
INSERT INTO DASHBOARDHISTORICALSLOT values(5,5,3,1,5,1,3,1); |
| 2052 |
INSERT INTO DASHBOARDHISTORICALSLOT values(6,6,1,1,5,1,3,1); |
2052 |
INSERT INTO DASHBOARDHISTORICALSLOT values(6,6,3,1,5,1,3,1); |
| 2053 |
|
2053 |
|
| 2054 |
INSERT INTO DASHBOARDHISTORICALSLOT values(7,7,1,1,5,1,3,1); |
2054 |
INSERT INTO DASHBOARDHISTORICALSLOT values(7,7,3,1,5,1,3,1); |
| 2055 |
INSERT INTO DASHBOARDHISTORICALSLOT values(8,8,1,1,5,1,3,1); |
2055 |
INSERT INTO DASHBOARDHISTORICALSLOT values(8,8,3,1,5,1,3,1); |
| 2056 |
|
2056 |
|
| 2057 |
INSERT INTO DASHBOARDHISTORICALSLOT values(9,9,1,1,5,1,3,1); |
2057 |
INSERT INTO DASHBOARDHISTORICALSLOT values(9,9,3,1,5,1,3,1); |
| 2058 |
INSERT INTO DASHBOARDHISTORICALSLOT values(10,10,1,1,5,1,3,1); |
2058 |
INSERT INTO DASHBOARDHISTORICALSLOT values(10,10,3,1,5,1,3,1); |
| 2059 |
|
2059 |
|
| 2060 |
-- Availability Historical category description |
2060 |
-- Availability Historical category description |
| 2061 |
INSERT INTO DASHBOARDHISTORICALSLOT values(11,11,1,1,5,1,1,1); |
2061 |
INSERT INTO DASHBOARDHISTORICALSLOT values(11,11,3,1,5,1,1,1); |
| 2062 |
INSERT INTO DASHBOARDHISTORICALSLOT values(12,12,1,1,5,1,2,1); |
2062 |
INSERT INTO DASHBOARDHISTORICALSLOT values(12,12,3,1,5,1,2,1); |
| 2063 |
INSERT INTO DASHBOARDHISTORICALSLOT values(13,13,1,1,5,1,3,1); |
2063 |
INSERT INTO DASHBOARDHISTORICALSLOT values(13,13,3,1,5,1,3,1); |
| 2064 |
INSERT INTO DASHBOARDHISTORICALSLOT values(14,14,1,1,5,1,3,1); |
2064 |
INSERT INTO DASHBOARDHISTORICALSLOT values(14,14,3,1,5,1,3,1); |
| 2065 |
|
2065 |
|
| 2066 |
INSERT INTO DASHBOARDHISTORICALSLOT values(15,15,1,1,5,1,1,1); |
2066 |
INSERT INTO DASHBOARDHISTORICALSLOT values(15,15,3,1,5,1,1,1); |
| 2067 |
INSERT INTO DASHBOARDHISTORICALSLOT values(16,16,1,1,5,1,2,1); |
2067 |
INSERT INTO DASHBOARDHISTORICALSLOT values(16,16,3,1,5,1,2,1); |
| 2068 |
INSERT INTO DASHBOARDHISTORICALSLOT values(17,17,1,1,5,1,3,1); |
2068 |
INSERT INTO DASHBOARDHISTORICALSLOT values(17,17,3,1,5,1,3,1); |
| 2069 |
INSERT INTO DASHBOARDHISTORICALSLOT values(18,18,1,1,5,1,3,1); |
2069 |
INSERT INTO DASHBOARDHISTORICALSLOT values(18,18,3,1,5,1,3,1); |
| 2070 |
|
2070 |
|
| 2071 |
INSERT INTO DASHBOARDHISTORICALSLOT values(19,19,1,1,5,1,1,1); |
2071 |
INSERT INTO DASHBOARDHISTORICALSLOT values(19,19,3,1,5,1,1,1); |
| 2072 |
INSERT INTO DASHBOARDHISTORICALSLOT values(20,20,1,1,5,1,2,1); |
2072 |
INSERT INTO DASHBOARDHISTORICALSLOT values(20,20,3,1,5,1,2,1); |
| 2073 |
INSERT INTO DASHBOARDHISTORICALSLOT values(21,21,1,1,5,1,3,1); |
2073 |
INSERT INTO DASHBOARDHISTORICALSLOT values(21,21,3,1,5,1,3,1); |
| 2074 |
INSERT INTO DASHBOARDHISTORICALSLOT values(22,22,1,1,5,1,3,1); |
2074 |
INSERT INTO DASHBOARDHISTORICALSLOT values(22,22,3,1,5,1,3,1); |
| 2075 |
|
2075 |
|
| 2076 |
INSERT INTO DASHBOARDHISTORICALSLOT values(23,23,1,1,5,1,1,1); |
2076 |
INSERT INTO DASHBOARDHISTORICALSLOT values(23,23,3,1,5,1,1,1); |
| 2077 |
INSERT INTO DASHBOARDHISTORICALSLOT values(24,24,1,1,5,1,2,1); |
2077 |
INSERT INTO DASHBOARDHISTORICALSLOT values(24,24,3,1,5,1,2,1); |
| 2078 |
INSERT INTO DASHBOARDHISTORICALSLOT values(25,25,1,1,5,1,3,1); |
2078 |
INSERT INTO DASHBOARDHISTORICALSLOT values(25,25,3,1,5,1,3,1); |
| 2079 |
INSERT INTO DASHBOARDHISTORICALSLOT values(26,26,1,1,5,1,3,1); |
2079 |
INSERT INTO DASHBOARDHISTORICALSLOT values(26,26,3,1,5,1,3,1); |
| 2080 |
|
2080 |
|
| 2081 |
INSERT INTO DASHBOARDHISTORICALSLOT values(27,27,1,1,5,1,1,1); |
2081 |
INSERT INTO DASHBOARDHISTORICALSLOT values(27,27,3,1,5,1,1,1); |
| 2082 |
INSERT INTO DASHBOARDHISTORICALSLOT values(28,28,1,1,5,1,2,1); |
2082 |
INSERT INTO DASHBOARDHISTORICALSLOT values(28,28,3,1,5,1,2,1); |
| 2083 |
INSERT INTO DASHBOARDHISTORICALSLOT values(29,29,1,1,5,1,3,1); |
2083 |
INSERT INTO DASHBOARDHISTORICALSLOT values(29,29,3,1,5,1,3,1); |
| 2084 |
INSERT INTO DASHBOARDHISTORICALSLOT values(30,30,1,1,5,1,3,1); |
2084 |
INSERT INTO DASHBOARDHISTORICALSLOT values(30,30,3,1,5,1,3,1); |
| 2085 |
|
2085 |
|
| 2086 |
INSERT INTO DASHBOARDHISTORICALSLOT values(31,31,1,1,5,1,1,1); |
2086 |
INSERT INTO DASHBOARDHISTORICALSLOT values(31,31,3,1,5,1,1,1); |
| 2087 |
INSERT INTO DASHBOARDHISTORICALSLOT values(32,32,1,1,5,1,2,1); |
2087 |
INSERT INTO DASHBOARDHISTORICALSLOT values(32,32,3,1,5,1,2,1); |
| 2088 |
INSERT INTO DASHBOARDHISTORICALSLOT values(33,33,1,1,5,1,3,1); |
2088 |
INSERT INTO DASHBOARDHISTORICALSLOT values(33,33,3,1,5,1,3,1); |
| 2089 |
INSERT INTO DASHBOARDHISTORICALSLOT values(34,34,1,1,5,1,3,1); |
2089 |
INSERT INTO DASHBOARDHISTORICALSLOT values(34,34,3,1,5,1,3,1); |
| 2090 |
|
2090 |
|
| 2091 |
|
2091 |
|
| 2092 |
-- Add SNMP performance metric level map |
2092 |
-- Add SNMP performance metric level map |
| |
| |
|
Line 1800
|
Parallel
|
Line 1800
|
Parallel
|
| 1800 |
INSERT INTO DASHBOARDSLOTS VALUES (1, 1, 'sytemUtilization', 1,6,5,1); |
1800 |
INSERT INTO DASHBOARDSLOTS VALUES (1, 1, 'sytemUtilization', 1,6,5,1); |
| 1801 |
INSERT INTO DASHBOARDSLOTS VALUES (2, 1, 'IfOutOctets', 2,7,5,1); |
1801 |
INSERT INTO DASHBOARDSLOTS VALUES (2, 1, 'IfOutOctets', 2,7,5,1); |
| 1802 |
|
1802 |
|
| 1803 |
INSERT INTO DASHBOARDHISTORICALSLOT values(1,1,1,2,1,0,1); |
1803 |
INSERT INTO DASHBOARDHISTORICALSLOT values(1,1,3,2,1,0,1); |
| 1804 |
INSERT INTO DASHBOARDHISTORICALSLOT values(2,2,1,2,1,0,1); |
1804 |
INSERT INTO DASHBOARDHISTORICALSLOT values(2,2,3,2,1,0,1); |
| 1805 |
|
1805 |
|
| 1806 |
INSERT INTO DASHBOARDSLOTS VALUES (3, 2, 'IfInOctets', 2, 6, 5, 1); |
1806 |
INSERT INTO DASHBOARDSLOTS VALUES (3, 2, 'IfInOctets', 2, 6, 5, 1); |
| 1807 |
INSERT INTO DASHBOARDSLOTS VALUES (4, 2, 'sytemUtilization', 1, 7, 5, 1); |
1807 |
INSERT INTO DASHBOARDSLOTS VALUES (4, 2, 'sytemUtilization', 1, 7, 5, 1); |
| 1808 |
|
1808 |
|
| 1809 |
INSERT INTO DASHBOARDHISTORICALSLOT values(3,3,1,2,1,0,1); |
1809 |
INSERT INTO DASHBOARDHISTORICALSLOT values(3,3,3,2,1,0,1); |
| 1810 |
INSERT INTO DASHBOARDHISTORICALSLOT values(4,4,1,2,1,0,1); |
1810 |
INSERT INTO DASHBOARDHISTORICALSLOT values(4,4,3,2,1,0,1); |
| 1811 |
|
1811 |
|
| 1812 |
INSERT INTO DASHBOARDSLOTS VALUES (5, 3, 'IfInOctets', 3, 6, 5, 1); |
1812 |
INSERT INTO DASHBOARDSLOTS VALUES (5, 3, 'IfInOctets', 3, 6, 5, 1); |
| 1813 |
INSERT INTO DASHBOARDSLOTS VALUES (6, 3, 'IfOutOctets', 2, 7, 5, 1); |
1813 |
INSERT INTO DASHBOARDSLOTS VALUES (6, 3, 'IfOutOctets', 2, 7, 5, 1); |
| 1814 |
|
1814 |
|
| 1815 |
INSERT INTO DASHBOARDHISTORICALSLOT values(5,5,1,2,1,0,1); |
1815 |
INSERT INTO DASHBOARDHISTORICALSLOT values(5,5,3,2,1,0,1); |
| 1816 |
INSERT INTO DASHBOARDHISTORICALSLOT values(6,6,1,2,1,0,1); |
1816 |
INSERT INTO DASHBOARDHISTORICALSLOT values(6,6,3,2,1,0,1); |
| 1817 |
|
1817 |
|
| 1818 |
INSERT INTO DASHBOARDSLOTS VALUES (7, 4, 'IfInOctets', 3, 6, 5, 1); |
1818 |
INSERT INTO DASHBOARDSLOTS VALUES (7, 4, 'IfInOctets', 3, 6, 5, 1); |
| 1819 |
INSERT INTO DASHBOARDSLOTS VALUES (8, 4, 'IfOutOctets', 2, 7, 5, 1); |
1819 |
INSERT INTO DASHBOARDSLOTS VALUES (8, 4, 'IfOutOctets', 2, 7, 5, 1); |
| 1820 |
|
1820 |
|
| 1821 |
INSERT INTO DASHBOARDHISTORICALSLOT values(7,7,1,2,1,0,1); |
1821 |
INSERT INTO DASHBOARDHISTORICALSLOT values(7,7,3,2,1,0,1); |
| 1822 |
INSERT INTO DASHBOARDHISTORICALSLOT values(8,8,1,2,1,0,1); |
1822 |
INSERT INTO DASHBOARDHISTORICALSLOT values(8,8,3,2,1,0,1); |
| 1823 |
|
1823 |
|
| 1824 |
INSERT INTO DASHBOARDSLOTS VALUES (9, 5, 'IfInOctets', 3, 6, 5, 1); |
1824 |
INSERT INTO DASHBOARDSLOTS VALUES (9, 5, 'IfInOctets', 3, 6, 5, 1); |
| 1825 |
INSERT INTO DASHBOARDSLOTS VALUES (10, 5, 'IfOutOctets', 2, 7, 5, 1); |
1825 |
INSERT INTO DASHBOARDSLOTS VALUES (10, 5, 'IfOutOctets', 2, 7, 5, 1); |
| 1826 |
|
1826 |
|
| 1827 |
INSERT INTO DASHBOARDHISTORICALSLOT values(9,9,1,2,1,0,1); |
1827 |
INSERT INTO DASHBOARDHISTORICALSLOT values(9,9,3,2,1,0,1); |
| 1828 |
INSERT INTO DASHBOARDHISTORICALSLOT values(10,10,1,2,1,0,1); |
1828 |
INSERT INTO DASHBOARDHISTORICALSLOT values(10,10,3,2,1,0,1); |
| 1829 |
|
1829 |
|
| 1830 |
INSERT INTO DASHBOARDSLOTS VALUES (11, 6, 'IfInOctets', 3, 6, 5, 1); |
1830 |
INSERT INTO DASHBOARDSLOTS VALUES (11, 6, 'IfInOctets', 3, 6, 5, 1); |
| 1831 |
INSERT INTO DASHBOARDSLOTS VALUES (12, 6, 'IfOutOctets', 2, 7, 5, 1); |
1831 |
INSERT INTO DASHBOARDSLOTS VALUES (12, 6, 'IfOutOctets', 2, 7, 5, 1); |
| 1832 |
|
1832 |
|
| 1833 |
INSERT INTO DASHBOARDHISTORICALSLOT values(11,11,1,2,1,0,1); |
1833 |
INSERT INTO DASHBOARDHISTORICALSLOT values(11,11,3,2,1,0,1); |
| 1834 |
INSERT INTO DASHBOARDHISTORICALSLOT values(12,12,1,2,1,0,1); |
1834 |
INSERT INTO DASHBOARDHISTORICALSLOT values(12,12,3,2,1,0,1); |
| 1835 |
|
1835 |
|
| 1836 |
INSERT INTO DASHBOARDSLOTS VALUES (13, 7, 'IfInOctets', 3, 6, 5, 1); |
1836 |
INSERT INTO DASHBOARDSLOTS VALUES (13, 7, 'IfInOctets', 3, 6, 5, 1); |
| 1837 |
INSERT INTO DASHBOARDSLOTS VALUES (14, 7, 'IfOutOctets', 2, 7, 5, 1); |
1837 |
INSERT INTO DASHBOARDSLOTS VALUES (14, 7, 'IfOutOctets', 2, 7, 5, 1); |
| 1838 |
|
1838 |
|
| 1839 |
INSERT INTO DASHBOARDHISTORICALSLOT values(13,13,1,2,1,0,1); |
1839 |
INSERT INTO DASHBOARDHISTORICALSLOT values(13,13,3,2,1,0,1); |
| 1840 |
INSERT INTO DASHBOARDHISTORICALSLOT values(14,14,1,2,1,0,1); |
1840 |
INSERT INTO DASHBOARDHISTORICALSLOT values(14,14,3,2,1,0,1); |
| 1841 |
|
1841 |
|
| 1842 |
INSERT INTO DASHBOARDSLOTS VALUES (15, 8, 'IfInOctets', 3, 6, 5, 1); |
1842 |
INSERT INTO DASHBOARDSLOTS VALUES (15, 8, 'IfInOctets', 3, 6, 5, 1); |
| 1843 |
INSERT INTO DASHBOARDSLOTS VALUES (16, 8, 'IfOutOctets', 2, 7, 5, 1); |
1843 |
INSERT INTO DASHBOARDSLOTS VALUES (16, 8, 'IfOutOctets', 2, 7, 5, 1); |
| 1844 |
|
1844 |
|
| 1845 |
INSERT INTO DASHBOARDHISTORICALSLOT values(15,15,1,2,1,0,1); |
1845 |
INSERT INTO DASHBOARDHISTORICALSLOT values(15,15,3,2,1,0,1); |
| 1846 |
INSERT INTO DASHBOARDHISTORICALSLOT values(16,16,1,2,1,0,1); |
1846 |
INSERT INTO DASHBOARDHISTORICALSLOT values(16,16,3,2,1,0,1); |
| 1847 |
|
1847 |
|
| 1848 |
INSERT INTO DASHBOARDSLOTS VALUES (17, 9, 'IfInOctets', 3, 6, 5, 1); |
1848 |
INSERT INTO DASHBOARDSLOTS VALUES (17, 9, 'IfInOctets', 3, 6, 5, 1); |
| 1849 |
INSERT INTO DASHBOARDSLOTS VALUES (18, 9, 'IfOutOctets', 2, 7, 5, 1); |
1849 |
INSERT INTO DASHBOARDSLOTS VALUES (18, 9, 'IfOutOctets', 2, 7, 5, 1); |
| 1850 |
|
1850 |
|
| 1851 |
INSERT INTO DASHBOARDHISTORICALSLOT values(17,17,1,2,1,0,1); |
1851 |
INSERT INTO DASHBOARDHISTORICALSLOT values(17,17,3,2,1,0,1); |
| 1852 |
INSERT INTO DASHBOARDHISTORICALSLOT values(18,18,1,2,1,0,1); |
1852 |
INSERT INTO DASHBOARDHISTORICALSLOT values(18,18,3,2,1,0,1); |
| 1853 |
|
1853 |
|
| 1854 |
INSERT INTO DASHBOARDSLOTS VALUES (19, 10, 'IfInOctets', 3, 6, 5, 1); |
1854 |
INSERT INTO DASHBOARDSLOTS VALUES (19, 10, 'IfInOctets', 3, 6, 5, 1); |
| 1855 |
INSERT INTO DASHBOARDSLOTS VALUES (20, 10, 'IfOutOctets', 2, 7, 5, 1); |
1855 |
INSERT INTO DASHBOARDSLOTS VALUES (20, 10, 'IfOutOctets', 2, 7, 5, 1); |
| 1856 |
|
1856 |
|
| 1857 |
INSERT INTO DASHBOARDHISTORICALSLOT values(19,19,1,2,1,0,1); |
1857 |
INSERT INTO DASHBOARDHISTORICALSLOT values(19,19,3,2,1,0,1); |
| 1858 |
INSERT INTO DASHBOARDHISTORICALSLOT values(20,20,1,2,1,0,1); |
1858 |
INSERT INTO DASHBOARDHISTORICALSLOT values(20,20,3,2,1,0,1); |
| 1859 |
|
1859 |
|
| 1860 |
INSERT INTO DASHBOARDSLOTS VALUES (21, 11, 'IfInOctets', 3, 6, 5, 1); |
1860 |
INSERT INTO DASHBOARDSLOTS VALUES (21, 11, 'IfInOctets', 3, 6, 5, 1); |
| 1861 |
INSERT INTO DASHBOARDSLOTS VALUES (22, 11, 'IfOutOctets', 2, 7, 5, 1); |
1861 |
INSERT INTO DASHBOARDSLOTS VALUES (22, 11, 'IfOutOctets', 2, 7, 5, 1); |
| 1862 |
|
1862 |
|
| 1863 |
INSERT INTO DASHBOARDHISTORICALSLOT values(21,21,1,2,1,0,1); |
1863 |
INSERT INTO DASHBOARDHISTORICALSLOT values(21,21,3,2,1,0,1); |
| 1864 |
INSERT INTO DASHBOARDHISTORICALSLOT values(22,22,1,2,1,0,1); |
1864 |
INSERT INTO DASHBOARDHISTORICALSLOT values(22,22,3,2,1,0,1); |
| |
| |
|
Line 1000
|
Parallel
|
Line 1000
|
Parallel
|
| 1000 |
INSERT INTO USERSTATUS VALUES(6,'Account Locked',1); |
1000 |
INSERT INTO USERSTATUS VALUES(6,'Account Locked',1); |
| 1001 |
INSERT INTO USERSTATUS VALUES(7,'Change Password On Login',1); |
1001 |
INSERT INTO USERSTATUS VALUES(7,'Change Password On Login',1); |
| 1002 |
|
1002 |
|
| 1003 |
INSERT INTO USERDETAILS VALUES(1,'admin','+GW1NiOxIf007lQmx5Llwzr4wic=',0,0,15,null,null,null,1,1,'Y',-1,-1,null,1); |
1003 |
INSERT INTO USERDETAILS VALUES(1,'admin','+GW1NiOxIf007lQmx5Llwzr4wic=',0,0,15,0,0,null,null,null,1,1,'Y',-1,-1,null,1); |
| 1004 |
|
1004 |
|
| 1005 |
INSERT INTO GROUPDETAILS VALUES(1,'Default','default user',1,1); |
1005 |
INSERT INTO GROUPDETAILS VALUES(1,'Default','default user',1,1); |
| 1006 |
INSERT INTO GROUPDETAILS VALUES(2,'Administrator','Administrator',1,1); |
1006 |
INSERT INTO GROUPDETAILS VALUES(2,'Administrator','Administrator',1,1); |
| |
| |
|
Line 2042
|
Parallel
|
Line 2042
|
Parallel
|
| 2042 |
INSERT INTO DASHBOARDSLOTS VALUES (34, 12, 'MTBF', 3, 4, 28, 1); |
2042 |
INSERT INTO DASHBOARDSLOTS VALUES (34, 12, 'MTBF', 3, 4, 28, 1); |
| 2043 |
|
2043 |
|
| 2044 |
-- PMStats Historical category description |
2044 |
-- PMStats Historical category description |
| 2045 |
INSERT INTO DASHBOARDHISTORICALSLOT values(1,1,1,1,5,1,1,1); |
2045 |
INSERT INTO DASHBOARDHISTORICALSLOT values(1,1,3,1,5,1,1,1); |
| 2046 |
INSERT INTO DASHBOARDHISTORICALSLOT values(2,2,1,1,5,1,2,1); |
2046 |
INSERT INTO DASHBOARDHISTORICALSLOT values(2,2,3,1,5,1,2,1); |
| 2047 |
|
2047 |
|
| 2048 |
INSERT INTO DASHBOARDHISTORICALSLOT values(3,3,1,1,5,1,3,1); |
2048 |
INSERT INTO DASHBOARDHISTORICALSLOT values(3,3,3,1,5,1,3,1); |
| 2049 |
INSERT INTO DASHBOARDHISTORICALSLOT values(4,4,1,1,5,1,3,1); |
2049 |
INSERT INTO DASHBOARDHISTORICALSLOT values(4,4,3,1,5,1,3,1); |
| 2050 |
|
2050 |
|
| 2051 |
INSERT INTO DASHBOARDHISTORICALSLOT values(5,5,1,1,5,1,3,1); |
2051 |
INSERT INTO DASHBOARDHISTORICALSLOT values(5,5,3,1,5,1,3,1); |
| 2052 |
INSERT INTO DASHBOARDHISTORICALSLOT values(6,6,1,1,5,1,3,1); |
2052 |
INSERT INTO DASHBOARDHISTORICALSLOT values(6,6,3,1,5,1,3,1); |
| 2053 |
|
2053 |
|
| 2054 |
INSERT INTO DASHBOARDHISTORICALSLOT values(7,7,1,1,5,1,3,1); |
2054 |
INSERT INTO DASHBOARDHISTORICALSLOT values(7,7,3,1,5,1,3,1); |
| 2055 |
INSERT INTO DASHBOARDHISTORICALSLOT values(8,8,1,1,5,1,3,1); |
2055 |
INSERT INTO DASHBOARDHISTORICALSLOT values(8,8,3,1,5,1,3,1); |
| 2056 |
|
2056 |
|
| 2057 |
INSERT INTO DASHBOARDHISTORICALSLOT values(9,9,1,1,5,1,3,1); |
2057 |
INSERT INTO DASHBOARDHISTORICALSLOT values(9,9,3,1,5,1,3,1); |
| 2058 |
INSERT INTO DASHBOARDHISTORICALSLOT values(10,10,1,1,5,1,3,1); |
2058 |
INSERT INTO DASHBOARDHISTORICALSLOT values(10,10,3,1,5,1,3,1); |
| 2059 |
|
2059 |
|
| 2060 |
-- Availability Historical category description |
2060 |
-- Availability Historical category description |
| 2061 |
INSERT INTO DASHBOARDHISTORICALSLOT values(11,11,1,1,5,1,1,1); |
2061 |
INSERT INTO DASHBOARDHISTORICALSLOT values(11,11,3,1,5,1,1,1); |
| 2062 |
INSERT INTO DASHBOARDHISTORICALSLOT values(12,12,1,1,5,1,2,1); |
2062 |
INSERT INTO DASHBOARDHISTORICALSLOT values(12,12,3,1,5,1,2,1); |
| 2063 |
INSERT INTO DASHBOARDHISTORICALSLOT values(13,13,1,1,5,1,3,1); |
2063 |
INSERT INTO DASHBOARDHISTORICALSLOT values(13,13,3,1,5,1,3,1); |
| 2064 |
INSERT INTO DASHBOARDHISTORICALSLOT values(14,14,1,1,5,1,3,1); |
2064 |
INSERT INTO DASHBOARDHISTORICALSLOT values(14,14,3,1,5,1,3,1); |
| 2065 |
|
2065 |
|
| 2066 |
INSERT INTO DASHBOARDHISTORICALSLOT values(15,15,1,1,5,1,1,1); |
2066 |
INSERT INTO DASHBOARDHISTORICALSLOT values(15,15,3,1,5,1, |