This repository has been archived by the owner on Apr 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
782 additions
and
204 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
oscm-database-unittests/javares/expected_02_08_14_to_02_08_15.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Copyright FUJITSU LIMITED 2016--> | ||
|
||
<dataset> | ||
<UserGroupToInvisibleProduct tkey="10000" version="0" product_tkey="1" usergroup_tkey="1" forallusers="TRUE" /> | ||
</dataset> |
14 changes: 14 additions & 0 deletions
14
oscm-database-unittests/javares/setup_02_08_14_to_02_08_15.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Copyright FUJITSU LIMITED 2016 --> | ||
|
||
<dataset> | ||
<Organization tkey="111" version="0" organizationid="SUPPLIER" name="TP1" registrationdate="0" locale="en" | ||
cutoffday="1" /> | ||
<Technicalproduct tkey="1" version="0" technicalproductid="tpid_1" organizationkey="111" | ||
provisioningurl="url" billingidentifier="NATIVE_BILLING" /> | ||
<Product tkey="1" template_tkey="[NULL]" targetcustomer_tkey="[NULL]" version="0" productid="pid_1" | ||
vendorkey="111" provisioningdate="0" status="ACTIVE" technicalproduct_tkey="1" type="TEMPLATE" /> | ||
<UserGroup tkey="1" version="0" name="default" description="Default Unit" isdefault="TRUE" | ||
organization_tkey="111" /> | ||
<UserGroupToInvisibleProduct tkey="10000" version="0" product_tkey="1" usergroup_tkey="1" /> | ||
</dataset> |
32 changes: 32 additions & 0 deletions
32
...atabase-unittests/javasrc-it/org/oscm/database/SchemaUpgrade_02_08_14_to_02_08_15_IT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/******************************************************************************* | ||
* | ||
* Copyright FUJITSU LIMITED 2016 | ||
* | ||
* Creation Date: 01.02.16 10:00 | ||
* | ||
******************************************************************************/ | ||
package org.oscm.database; | ||
|
||
import java.net.URL; | ||
|
||
import org.oscm.setup.DatabaseVersionInfo; | ||
|
||
public class SchemaUpgrade_02_08_14_to_02_08_15_IT extends | ||
SchemaUpgradeTestBase { | ||
|
||
public SchemaUpgrade_02_08_14_to_02_08_15_IT() { | ||
super(new DatabaseVersionInfo(2, 8, 14), new DatabaseVersionInfo(2, 8, | ||
15)); | ||
} | ||
|
||
@Override | ||
protected URL getSetupDataset() { | ||
return getClass().getResource("/setup_02_08_14_to_02_08_15.xml"); | ||
} | ||
|
||
@Override | ||
protected URL getExpectedDataset() { | ||
return getClass().getResource("/expected_02_08_14_to_02_08_15.xml"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- add new column forallusers to usergrouptoinvisibleproduct | ||
ALTER TABLE usergrouptoinvisibleproduct ADD COLUMN forallusers BOOLEAN NOT NULL DEFAULT TRUE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
...nal-interfaces/javasrc/org/oscm/internal/usergroupmgmt/POUserGroupToInvisibleProduct.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/******************************************************************************* | ||
* | ||
* Copyright FUJITSU LIMITED 2016 | ||
* | ||
* Creation Date: 29 lut 2016 | ||
* | ||
*******************************************************************************/ | ||
|
||
package org.oscm.internal.usergroupmgmt; | ||
|
||
import org.oscm.internal.base.BasePO; | ||
|
||
/** | ||
* This class is used to display the accessible services. | ||
* | ||
* @author BadziakP | ||
* | ||
*/ | ||
public class POUserGroupToInvisibleProduct extends BasePO { | ||
|
||
private static final long serialVersionUID = 5016720506043698384L; | ||
private boolean forAllUsers; | ||
private long serviceKey; | ||
|
||
/** | ||
* @return the forAllUsers | ||
*/ | ||
public boolean isForAllUsers() { | ||
return forAllUsers; | ||
} | ||
|
||
/** | ||
* @param forAllUsers | ||
* the forAllUsers to set | ||
*/ | ||
public void setForAllUsers(boolean forAllUsers) { | ||
this.forAllUsers = forAllUsers; | ||
} | ||
|
||
/** | ||
* @return the serviceKey | ||
*/ | ||
public long getServiceKey() { | ||
return serviceKey; | ||
} | ||
|
||
/** | ||
* @param serviceKey | ||
* the serviceKey to set | ||
*/ | ||
public void setServiceKey(long serviceKey) { | ||
this.serviceKey = serviceKey; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.