/**
  * Constructor ..
  *
  * @param entIn to transfer
  * @param orgIn who we are viewing
  */
 public OrgEntitlementDto(Entitlement entIn, Org orgIn) {
   super(entIn, null);
   this.org = orgIn;
   ent = entIn;
   Long availEnts = EntitlementManager.getAvailableEntitlements(entIn, orgIn);
   this.setAvailbleEntitlements(availEnts);
 }
 public void testExecuteSubmit() throws Exception {
   user.getOrg().addRole(RoleFactory.SAT_ADMIN);
   user.addPermanentRole(RoleFactory.SAT_ADMIN);
   setRequestPathInfo("/admin/multiorg/OrgSystemSubscriptions");
   addRequestParameter(RequestContext.ORG_ID, user.getOrg().getId().toString());
   addRequestParameter(EntitlementManager.ENTERPRISE_ENTITLED, new Long(1).toString());
   addRequestParameter(EntitlementManager.MONITORING_ENTITLED, new Long(0).toString());
   addRequestParameter(EntitlementManager.PROVISIONING_ENTITLED, new Long(0).toString());
   addRequestParameter(EntitlementManager.VIRTUALIZATION_ENTITLED, new Long(0).toString());
   addRequestParameter(
       EntitlementManager.VIRTUALIZATION_PLATFORM_ENTITLED, new Long(0).toString());
   addSubmitted();
   actionPerform();
   assertTrue(getActualForward().contains("oid=" + user.getOrg().getId()));
   verifyActionMessage("org.entitlements.syssoft.success");
   assertEquals(
       1,
       EntitlementManager.getAvailableEntitlements(EntitlementManager.MANAGEMENT, user.getOrg())
           .longValue());
 }
 /** @return Long total of the available Entitlements in the default Org */
 public Long getSatelliteTotal() {
   Org defaultOrg = OrgFactory.getSatelliteOrg();
   return EntitlementManager.getAvailableEntitlements(this.getEntitlement(), defaultOrg);
 }