Age | Commit message (Collapse) | Author | Files | Lines |
|
Focusing on easy try-with-resources changes. Plus some other minor items.
I did not get all of them yet, as some have some heavy refactoring. These
try-with-resources seem to be fairly harmless.
* Utilize try-with-resources
* Remove unnecessary parenthesis
* Merging simple if statements
* Remove useless assignment
* Moving string literals to left hand side
Issue-ID: POLICY-482
Change-Id: If519ec8ea96f6b90bf82ac2676ffea9cd0cd2daf
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
|
|
Also enhanced JUnit tests to ensure this will work. Reduced code.
Issue-ID: POLICY-482
Change-Id: If07e17df274bdb709f7ca60078bd1fbd78d1aaaa
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
|
|
Mainly use StringBuilder() to improve speed
* Use StringBuilder
* Remove superflous exceptions in constructor
* Remove unnecessary casts
* Remove unnecessary toString()
* Combine return into one statement
* Move string literal to LHS
Issue-ID: POLICY-482
Change-Id: Id196728d92dda7fab7e83d6eea07633c5be37f7c
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
|
|
* Using booleans true and false
* Using already predefined static strings
* Adding private constructors to hide implicit
* Adding empty constructor comment to satisfy SONAR
* Using single quotes for indexOf to use faster method
* Preferred use of .isEmpty()
* Ordering of public static synchronized syntax
* Removing commented out code
* Using an already defined constant
* Unnecessary declaration of runtime exceptions
* Unnecessary casts
* Unused variables and imports
* Unnecessary use of toString()
* Just using return vs storing into a local var and returning that
* Extra semicolons
Issue-ID: POLICY-482
Change-Id: I6b9dcc5211dd52895a8787239b9df3059928fa45
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
|
|
Restrict file upload size in Policy Editory using a configurable value (in
bytes) set in xacml.admin.properties. Default value is 30MB.
Issue-ID: POLICY-538
Change-Id: I4d8539ab33320446aed250ea4fdc51de585d5f2a
Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
|
|
*Renamed the local variable to othername
Change-Id: I5f1e1b8b9140acf73de241f78b0437dc9e5805b5
Issue-ID: POLICY-336
Signed-off-by: SRINIVAS V <srinivasa.mohan@huawei.com>
|
|
*Moved the constructors after the variables
Change-Id: I099f75aea285f0bb845d464065d1e5f031d44a13
Issue-ID: POLICY-336
Signed-off-by: SRINIVAS V <srinivasa.mohan@huawei.com>
|
|
*Removed those useless parentheses
Change-Id: I19e9e027182dfd7dc2211d71fbb4acd8bf6b8be5
Issue-ID: POLICY-336
Signed-off-by: SRINIVAS V <srinivasa.mohan@huawei.com>
|
|
|
|
*Moved the constructors after the variables
Change-Id: I531a911570867e05d2eabca98d349f4f2f26d0f9
Issue-ID: POLICY-336
Signed-off-by: SRINIVAS V <srinivasa.mohan@huawei.com>
|
|
*no need to create seperate object, so optimized
Change-Id: I245d7fd26c0fabb26de6e9eb7c8bedf405d9d602
Issue-ID: POLICY-336
Signed-off-by: SRINIVAS V <srinivasa.mohan@huawei.com>
|
|
*Moved the constructors after the variables
*Deleted the commented code
Change-Id: I6afa9ae5b04fe5c8280fc9e08352aef699117567
Issue-ID: POLICY-336
Signed-off-by: SRINIVAS V <srinivasa.mohan@huawei.com>
|
|
|
|
Issue-ID: POLICY-440
Change-Id: I44d5304699da19bee7ae2997565802fc7d44cb0e
Signed-off-by: rb7147 <rb7147@att.com>
|
|
- pushPolicy defect fixes for POLICY-486
- Common Policy Validation feature for POLIYC-449
Change-Id: I8d54aa5a9b819c6eb4427dfa47c4ce963a21c2e0
Issue-ID: POLICY-449,POLICY-486
Signed-off-by: Michael Mokry <mm117s@att.com>
|
|
Upgraded latest ONAP SDK Code.
Change-Id: I669d6cfcefe068b1e4c078889d7d6c77ce788e2e
Issue-ID: POLICY-432
Signed-off-by: rb7147 <rb7147@att.com>
|
|
|
|
- Added modifications per Pam's review
Change-Id: I5d67ee529cbc5245e7d1f8dbec6f2f2d453ce299
Issue-ID: POLICY-486
Signed-off-by: Michael Mokry <mm117s@att.com>
|
|
Provides a common class to perform policy validation during
create/udpate of policies by the GUI and API for consistency.
Change-Id: Ied459e73d48517bb50064cd10d6a1c871b8311e5
Issue-ID: POLICY-449
Signed-off-by: Michael Mokry <mm117s@att.com>
|
|
Issue-ID: POLICY-411
Change-Id: I9579a1fa58a4b40aa6aa70a3007b3ce7c02f5ca2
Signed-off-by: rb7147 <rb7147@att.com>
|
|
|
|
Fixed TOSCA paring bugs and retuned error messages to front-end.
Issue-ID: POLICY-405
Change-Id: Idc6efd062360acbb4ceb143af8619b5f7def723a
Signed-off-by: guangxingwang <gw1218@att.com>
|
|
|
|
Modified the code of view and editor functions
Issue-ID: POLICY-403
Change-Id: I54c7454fd6beabfec7a24227310efa44c7dd1ec6
Signed-off-by: guangxingwang <gw1218@att.com>
|
|
Added the caching issue while uploading the model to db.
Issue-ID: POLICY-372
Change-Id: I10bfcead0a5cbcb1484858a79976b7c86fba3ece
Signed-off-by: rb7147 <rb7147@att.com>
|
|
Fixed the Refresh cache issue.
Fixed the Popup modal css issue.
Fixed the cosmetic issues.
Issue-Id: POLICY-310
Change-Id: Ib41713a6f9a6573667d7b4ae6836e411dc32c854
Signed-off-by: rb7147 <rb7147@att.com>
|
|
Fixing the rule params section to look for PapParams istead of Params.
This will be a temporary solution for now.
Issue-Id: POLICY-302
Change-Id: I4b6b415b3eacf121be374d2dfd50303049c35aba
Signed-off-by: Tej, Tarun <tt3868@att.com>
|
|
Added missing colon before the named parameters. Fixed a typo parameter
name. Fixed bad cast by setParameter.
This fixes issues encountered in the UI. Whenever a policy is moved,
renamed, or deleted it makes a db call and that db call fails on
setParameter method. This hibernate method is supposed to automatically
detect the type of the object for the named parameters but it fails with
type Long. It tries to convert to int and it fails. A check is now added
for type Long.
Issue-ID: POLICY-278
Change-Id: Idbb4067a5ec2cc9d9b040de9e574ba2564e1ee2c
Signed-off-by: Temoc Rodriguez <cr056n@att.com>
|
|
Added the MS Tosca template to db scripts and cleaned up old policies.
Issue-Id: POLICY-264
Change-Id: I0ee5cffbb78d1f7df0379b71fe0f3368587aa9a6
Signed-off-by: rb7147 <rb7147@att.com>
|
|
Used isEmpty instead of size method
Issue-ID: POLICY-239
Change-Id: I9007fa99b40e53000a972147079ec6db4ecc7a66
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
|
|
|
|
Issue-Id: POLICY-52
Change-Id: I439c95736f50fe9140e71cad5a598c5b5239161b
Signed-off-by: rb7147 <rb7147@att.com>
|
|
* changes:
String literal comparision on left side
Used isEmpty to check collection is empty or not
|
|
Issue-ID: POLICY-239
Change-Id: Iee03160b28ffadb296f3926c7d7c5ac98fac535e
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
|
|
Issue-ID: POLICY-239
Change-Id: I5c6a43ac0f66e02b4f2f6644f0936a846708e2a5
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
|
|
|
|
Moved the string literal on the left side of the actual string comparison.
Added the "@Override" annotation for method signature
Removed the useless assignment to local variables
Issue-ID: POLICY-239
Change-Id: I5fb84bb6109c03c8c0850100b69df095d865b404
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
|
|
Issue-Id: POLICY-52
Change-Id: Ic13cc5a6a32e65e301f1dcdc437f1de8ba6c00d8
Signed-off-by: rb7147 <rb7147@att.com>
|
|
|
|
Remove useless parentheses from CheckPDP.java
Issue-ID: POLICY-224
Change-Id: I8086a6fc1dc24719c3ffd3785a12c086ab453ae7
Signed-off-by: SwapnilPathak <SP00494485@techmahindra.com>
|
|
Adding Junits to Policy Engine Utils project, removed duplicates, fixed
few defects along the way and fixes to projects.
Issue-Id: POLICY-52
Change-Id: Ia0598300f9bd60f5372b9ef7d8984657478a1611
Signed-off-by: Tej, Tarun <tt3868@att.com>
|
|
Upgraded the dependency also. What was strange was the documentation that came up
did not match with the existing dependency code implementation.
Issue-ID: POLICY-113
Change-Id: Ide7830851cda6535ed335e89cdfc0e0a3964e3eb
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
|
|
Merge this if statement with the enclosing one
Change-Id: I8086a6fc1dc24719c3ffd3785a12c086ab453ae8
Issue-ID: POLICY-233
Signed-off-by: SwapnilPathak <SP00494485@techmahindra.com>
|
|
Issue-Id : POLICY-231
Change-Id: I917256637ae96c9c1ddf6e5c4e79c73d40d14d34
Signed-off-by: rb7147 <rb7147@att.com>
|
|
Resolved the time to leave date issue field to support all browsers.
Resolved Export and Import Policy Functionality.
Added few GUI cosmetic fixes.
Issue-Id : POLICY-221
Change-Id: I920a4d9c8e16ae1cffcd13df3319e109a992ba55
Signed-off-by: rb7147 <rb7147@att.com>
|
|
Fixes for sonar critical and blocker issues
Issue-Id: POLICY-113
Change-Id: I33bf28abfc52bf289401c58409beaac01b5c2fa6
Signed-off-by: Tej, Tarun <tt3868@att.com>
|
|
This enhancement excludes empty attributes and objects from creating MS
Json file.
Issure-Id: POLICY-193
Change-Id: I139012456fdc44b0ef6d58c208f1ee5db6bcf910
Signed-off-by: guangxingwang <gw1218@att.com>
|
|
Added license headers for files missing them.
Issue-Id: POLICY-205
Change-Id: If4124bbf0f7737df58b8289472e1f3c0d2bbf587
Signed-off-by: Tej, Tarun <tt3868@att.com>
|
|
Resolved POLICY-SDK-APP js blockers and critical issues
Issue-Id: POLICY-184
Change-Id: I2ec99b4d48fcc2f833c6fd6140fed6d926c3fd9e
Signed-off-by: rb7147 <rb7147@att.com>
|
|
Fixes for critical and blocker issues reported in sonar.
Issue-Id: POLICY-113
Change-Id: I50969fe93a94b0497f3fb30864a6c45e63208fe6
Signed-off-by: Tej, Tarun <tt3868@att.com>
|