diff --git a/src/main/java/org/gluu/oxtrust/action/CompAuthMode.java b/src/main/java/org/gluu/oxtrust/action/CompAuthMode.java deleted file mode 100644 index 6e882e62f..000000000 --- a/src/main/java/org/gluu/oxtrust/action/CompAuthMode.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.gluu.oxtrust.action; - -import java.io.Serializable; - -import org.gluu.oxtrust.ldap.service.OrganizationService; -import org.gluu.oxtrust.model.GluuOrganization; -import org.jboss.seam.ScopeType; -import org.jboss.seam.annotations.Logger; -import org.jboss.seam.annotations.Name; -import org.jboss.seam.annotations.Scope; -import org.jboss.seam.log.Log; - -/** - * Components Authorization Mode Action - * - * @author Reda Zerrad Date: 05.18.2012 - */ -@Scope(ScopeType.STATELESS) -@Name("compAuthMode") -public class CompAuthMode implements Serializable { - - /** - * - */ - private static final long serialVersionUID = 6411825264007429787L; - - @Logger - private Log log; - - public String confAuthMode() { - try { - log.info(" Request received "); - OrganizationService orgService; - orgService = OrganizationService.instance(); - - GluuOrganization org = orgService.getOrganization(); - - if (org.getScimAuthMode().equalsIgnoreCase("bearer")) { - - return "bearer"; - } else if (org.getScimAuthMode().equalsIgnoreCase("basic")) { - - return "basic"; - } - return "Error"; - } catch (Exception ex) { - log.error("Could not get ScimAuthMode : ", ex); - - return "Error"; - } - } - -} diff --git a/src/main/java/org/gluu/oxtrust/action/ScimConfigurationAction.java b/src/main/java/org/gluu/oxtrust/action/ScimConfigurationAction.java deleted file mode 100644 index ba7fc9e1b..000000000 --- a/src/main/java/org/gluu/oxtrust/action/ScimConfigurationAction.java +++ /dev/null @@ -1,140 +0,0 @@ -package org.gluu.oxtrust.action; - -import java.io.Serializable; - -import org.gluu.oxtrust.ldap.service.GroupService; -import org.gluu.oxtrust.ldap.service.OrganizationService; -import org.gluu.oxtrust.model.GluuGroup; -import org.gluu.oxtrust.model.GluuOrganization; -import org.gluu.oxtrust.util.OxTrustConstants; -import org.gluu.site.ldap.persistence.exception.LdapMappingException; -import org.jboss.seam.ScopeType; -import org.jboss.seam.annotations.In; -import org.jboss.seam.annotations.Logger; -import org.jboss.seam.annotations.Name; -import org.jboss.seam.annotations.Scope; -import org.jboss.seam.annotations.security.Restrict; -import org.jboss.seam.log.Log; -import org.xdi.ldap.model.GluuStatus; -import org.xdi.util.StringHelper; - -/** - * SCIM Access Token retriever Action - * - * @author Yuriy Movchan Date: 08/05/2013 - */ -@Scope(ScopeType.CONVERSATION) -@Name("scimConfigurationAction") -@Restrict("#{identity.loggedIn}") -public class ScimConfigurationAction implements Serializable { - - private static final long serialVersionUID = 6356638577562487737L; - - @Logger - private Log log; - - @In - private OrganizationService organizationService; - - @In - private GroupService groupService; - - private boolean initialized; - - private GluuOrganization organization; - - private GluuGroup scimGroup; - - @Restrict("#{s:hasPermission('scim', 'access')}") - public String init() { - if (this.organization != null) { - return OxTrustConstants.RESULT_SUCCESS; - } - - this.organization = organizationService.getOrganization(); - this.scimGroup = getScimGroup(this.organization); - if (this.scimGroup == null) { - return OxTrustConstants.RESULT_FAILURE; - } - - this.initialized = true; - - return OxTrustConstants.RESULT_SUCCESS; - } - - @Restrict("#{s:hasPermission('scim', 'access')}") - public void cancel() { - } - - private GluuGroup getScimGroup(GluuOrganization organization) { - String scimGroupDn = organization.getScimGroup(); - if (StringHelper.isEmpty(scimGroupDn)) { - return null; - } - - try { - GluuGroup scimGroup = groupService.getGroupByDn(scimGroupDn); - if (scimGroup == null) { - return null; - } - - return scimGroup; - } catch (LdapMappingException ex) { - log.error("Failed to load SCIM group by DN: '{0}'", ex, scimGroupDn); - - return null; - } - } - - - @Restrict("#{s:hasPermission('scim', 'access')}") - public String changeScimStatus() { - try { - if (GluuStatus.ACTIVE.equals(this.organization.getScimStatus())) { - this.organization.setScimStatus(GluuStatus.INACTIVE); - } else { - this.organization.setScimStatus(GluuStatus.ACTIVE); - } - - this.organizationService.updateOrganization(this.organization); - } catch (Exception ex) { - log.error("Could not change ScimStatus", ex); - - return OxTrustConstants.RESULT_FAILURE; - } - - return OxTrustConstants.RESULT_SUCCESS; - } - - @Restrict("#{s:hasPermission('scim', 'access')}") - public String changeAuthMode() { - try { - if (StringHelper.equalsIgnoreCase(this.organization.getScimAuthMode(), "bearer")) { - this.organization.setScimAuthMode("basic"); - } else { - this.organization.setScimAuthMode("bearer"); - } - - this.organizationService.updateOrganization(this.organization); - } catch (Exception ex) { - log.error("Could not change ScimStatus", ex); - - return OxTrustConstants.RESULT_FAILURE; - } - - return OxTrustConstants.RESULT_SUCCESS; - } - - public boolean isInitialized() { - return initialized; - } - - public GluuOrganization getOrganization() { - return organization; - } - - public GluuGroup getScimGroup() { - return scimGroup; - } - -} diff --git a/src/main/webapp/organization/scimConfiguration.page.xml b/src/main/webapp/organization/scimConfiguration.page.xml deleted file mode 100644 index 6c0f3be19..000000000 --- a/src/main/webapp/organization/scimConfiguration.page.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - #{s:hasPermission('configuration', 'access')} - - - - - - - - - - - You don't have permissions to modify SCIM configuration - - - - - - - SCIM doesn't enabled on this server - - - - - - - Failed to prepare form for SCIM configuration update - - - - - - - - - SCIM configuration updated - - - - - - - - SCIM configuration update canceled - - - - diff --git a/src/main/webapp/organization/scimConfiguration.xhtml b/src/main/webapp/organization/scimConfiguration.xhtml deleted file mode 100644 index be6ad3277..000000000 --- a/src/main/webapp/organization/scimConfiguration.xhtml +++ /dev/null @@ -1,27 +0,0 @@ - - - - -
- - - - -
- - -
-
-
-
-
- -
\ No newline at end of file diff --git a/src/main/webapp/resources/images/loginbox_bg.jpg b/src/main/webapp/resources/images/loginbox_bg.jpg deleted file mode 100644 index 67b6c1f49..000000000 Binary files a/src/main/webapp/resources/images/loginbox_bg.jpg and /dev/null differ diff --git a/src/main/webapp/resources/images/menu_bg.png b/src/main/webapp/resources/images/menu_bg.png deleted file mode 100644 index d0303e150..000000000 Binary files a/src/main/webapp/resources/images/menu_bg.png and /dev/null differ diff --git a/src/main/webapp/resources/images/personinventorytable_bg.jpg b/src/main/webapp/resources/images/personinventorytable_bg.jpg deleted file mode 100644 index 1a0449279..000000000 Binary files a/src/main/webapp/resources/images/personinventorytable_bg.jpg and /dev/null differ diff --git a/src/main/webapp/resources/images/seam2_bg.jpg b/src/main/webapp/resources/images/seam2_bg.jpg deleted file mode 100644 index e28f3c60e..000000000 Binary files a/src/main/webapp/resources/images/seam2_bg.jpg and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/blank.gif b/src/main/webapp/resources/img/colorpicker/blank.gif deleted file mode 100644 index 75b945d25..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/blank.gif and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_background.png b/src/main/webapp/resources/img/colorpicker/colorpicker_background.png deleted file mode 100644 index 8401572f1..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_background.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_hex.png b/src/main/webapp/resources/img/colorpicker/colorpicker_hex.png deleted file mode 100644 index 4e532d7c6..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_hex.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_b.png b/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_b.png deleted file mode 100644 index dfac595d0..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_b.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_h.png b/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_h.png deleted file mode 100644 index 3977ed9f2..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_h.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_s.png b/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_s.png deleted file mode 100644 index a2a699736..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_s.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_indic.gif b/src/main/webapp/resources/img/colorpicker/colorpicker_indic.gif deleted file mode 100644 index f9fa95e28..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_indic.gif and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_overlay.png b/src/main/webapp/resources/img/colorpicker/colorpicker_overlay.png deleted file mode 100644 index 561cdd9c5..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_overlay.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_b.png b/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_b.png deleted file mode 100644 index dfac595d0..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_b.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_g.png b/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_g.png deleted file mode 100644 index 72b32760a..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_g.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_r.png b/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_r.png deleted file mode 100644 index 4855fe03f..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_r.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_select.gif b/src/main/webapp/resources/img/colorpicker/colorpicker_select.gif deleted file mode 100644 index 599f7f13a..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_select.gif and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_submit.png b/src/main/webapp/resources/img/colorpicker/colorpicker_submit.png deleted file mode 100644 index 7f4c0825f..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_submit.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/custom_background.png b/src/main/webapp/resources/img/colorpicker/custom_background.png deleted file mode 100644 index cf55ffdd6..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/custom_background.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/custom_hex.png b/src/main/webapp/resources/img/colorpicker/custom_hex.png deleted file mode 100644 index 888f44449..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/custom_hex.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/custom_hsb_b.png b/src/main/webapp/resources/img/colorpicker/custom_hsb_b.png deleted file mode 100644 index 2f99dae8e..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/custom_hsb_b.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/custom_hsb_h.png b/src/main/webapp/resources/img/colorpicker/custom_hsb_h.png deleted file mode 100644 index a217e9218..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/custom_hsb_h.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/custom_hsb_s.png b/src/main/webapp/resources/img/colorpicker/custom_hsb_s.png deleted file mode 100644 index 7826b4150..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/custom_hsb_s.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/custom_indic.gif b/src/main/webapp/resources/img/colorpicker/custom_indic.gif deleted file mode 100644 index 222fb94cf..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/custom_indic.gif and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/custom_rgb_b.png b/src/main/webapp/resources/img/colorpicker/custom_rgb_b.png deleted file mode 100644 index 80764e5d6..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/custom_rgb_b.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/custom_rgb_g.png b/src/main/webapp/resources/img/colorpicker/custom_rgb_g.png deleted file mode 100644 index fc9778be1..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/custom_rgb_g.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/custom_rgb_r.png b/src/main/webapp/resources/img/colorpicker/custom_rgb_r.png deleted file mode 100644 index 91b0cd4c5..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/custom_rgb_r.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/custom_submit.png b/src/main/webapp/resources/img/colorpicker/custom_submit.png deleted file mode 100644 index cd202cd93..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/custom_submit.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/select.png b/src/main/webapp/resources/img/colorpicker/select.png deleted file mode 100644 index 21213bfd5..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/select.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/select2.png b/src/main/webapp/resources/img/colorpicker/select2.png deleted file mode 100644 index 2cd2cabeb..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/select2.png and /dev/null differ diff --git a/src/main/webapp/resources/img/colorpicker/slider.png b/src/main/webapp/resources/img/colorpicker/slider.png deleted file mode 100644 index 8b03da96e..000000000 Binary files a/src/main/webapp/resources/img/colorpicker/slider.png and /dev/null differ diff --git a/src/main/webapp/resources/img/msgwarn.png b/src/main/webapp/resources/img/msgwarn.png deleted file mode 100644 index 69a83fb98..000000000 Binary files a/src/main/webapp/resources/img/msgwarn.png and /dev/null differ diff --git a/src/main/webapp/resources/js/attributesSlide.js b/src/main/webapp/resources/js/attributesSlide.js deleted file mode 100644 index 46a0337e2..000000000 --- a/src/main/webapp/resources/js/attributesSlide.js +++ /dev/null @@ -1,57 +0,0 @@ -var visible = false; - -function slideUpAndDown() { - $(document).ready(function() { - var element = document.getElementById("personForm:attrs"); - if (element.style.display == "none") { - sh(); - } else { - hi(); - - } - }); -}; - -Effect.BlindRight = function(element) { - element = $(element); - var elementDimensions = element.getDimensions(); - return new Effect.Scale(element, 100, Object.extend({ - scaleContent : true, - scaleY : false, - scaleFrom : 0, - scaleMode : { - originalHeight : elementDimensions.height, - originalWidth : elementDimensions.width - }, - restoreAfterFinish : true, - afterSetup : function(effect) { - effect.element.makeClipping().setStyle({ - width : '0px', - height : effect.dims[0] + 'px' - }).show(); - }, - afterFinishInternal : function(effect) { - effect.element.undoClipping(); - } - }, arguments[1] || {})); -}; - -Effect.BlindLeft = function(element) { - element = $(element); - element.makeClipping(); - return new Effect.Scale(element, 0, Object.extend({ - scaleContent : false, - scaleY : false, - scaleMode : 'box', - scaleContent : true, - restoreAfterFinish : true, - afterSetup : function(effect) { - effect.element.makeClipping().setStyle({ - height : effect.dims[0] + 'px' - }).show(); - }, - afterFinishInternal : function(effect) { - effect.element.hide().undoClipping(); - } - }, arguments[1] || {})); -}; \ No newline at end of file diff --git a/src/main/webapp/resources/js/colorpicker.js b/src/main/webapp/resources/js/colorpicker.js deleted file mode 100644 index 00be7a35a..000000000 --- a/src/main/webapp/resources/js/colorpicker.js +++ /dev/null @@ -1 +0,0 @@ -eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(d($){k 1w=d(){k 3h={},3f,23=34,3e,2C=\'\',3b={2W:\'22\',2s:d(){},2m:d(){},2q:d(){},2Z:d(){},2j:d(){},x:\'3g\',1I:1q,2a:T},1k=d(p,7){k a=1B(p);$(7).9(\'j\').M.L(1).C(a.r).13().L(2).C(a.g).13().L(3).C(a.b).13()},1y=d(p,7){$(7).9(\'j\').M.L(4).C(p.h).13().L(5).C(p.s).13().L(6).C(p.b).13()},1h=d(p,7){$(7).9(\'j\').M.L(0).C(1i(p)).13()},1H=d(p,7){$(7).9(\'j\').29.19(\'2c\',\'#\'+1i({h:p.h,s:N,b:N}));$(7).9(\'j\').2Y.19({18:K(U*p.s/N,10),12:K(U*(N-p.b)/N,10)})},1A=d(p,7){$(7).9(\'j\').2H.19(\'12\',K(U-U*p.h/1f,10))},1R=d(p,7){$(7).9(\'j\').2G.19(\'2c\',\'#\'+1i(p))},1M=d(p,7){$(7).9(\'j\').2E.19(\'2c\',\'#\'+1i(p))},33=d(c){k 1P=c.3c||c.3l||-1;n((1P>23&&1P<=3n)||1P==32){z T}k 7=$(f).G().G();n(7.9(\'j\').1I===1q){15.11(f)}},15=d(c){k 7=$(f).G().G(),e;n(f.1b.1K.1o(\'38\')>0){7.9(\'j\').x=e=1X(2x(f.3m))}F n(f.1b.1K.1o(\'35\')>0){7.9(\'j\').x=e=1W({h:K(7.9(\'j\').M.L(4).C(),10),s:K(7.9(\'j\').M.L(5).C(),10),b:K(7.9(\'j\').M.L(6).C(),10)})}F{7.9(\'j\').x=e=1C(2A({r:K(7.9(\'j\').M.L(1).C(),10),g:K(7.9(\'j\').M.L(2).C(),10),b:K(7.9(\'j\').M.L(3).C(),10)}))}n(c){1k(e,7.u(0));1h(e,7.u(0));1y(e,7.u(0))}1H(e,7.u(0));1A(e,7.u(0));1M(e,7.u(0));7.9(\'j\').2Z.11(7,[e,1i(e),1B(e)])},2g=d(c){k 7=$(f).G().G();7.9(\'j\').M.G().1V(\'1D\')},1F=d(){23=f.1b.1K.1o(\'38\')>0?3p:34;$(f).G().G().9(\'j\').M.G().1V(\'1D\');$(f).G().24(\'1D\')},2X=d(c){k 1l=$(f).G().V(\'Z\').1F();k Q={14:$(f).G().24(\'2I\'),E:f.1b.1K.1o(\'3j\')>0?1f:(f.1b.1K.1o(\'35\')>0?N:W),y:c.1U,1l:1l,C:K(1l.C(),10),1r:$(f).G().G().9(\'j\').1I};$(B).I(\'1p\',Q,2b);$(B).I(\'1s\',Q,2d)},2d=d(c){c.9.1l.C(A.E(0,A.P(c.9.E,K(c.9.C+c.1U-c.9.y,10))));n(c.9.1r){15.11(c.9.1l.u(0),[1q])}z T},2b=d(c){15.11(c.9.1l.u(0),[1q]);c.9.14.1V(\'2I\').V(\'Z\').1F();$(B).1e(\'1p\',2b);$(B).1e(\'1s\',2d);z T},2D=d(c){k Q={7:$(f).G(),y:$(f).2h().12};Q.1r=Q.7.9(\'j\').1I;$(B).I(\'1p\',Q,21);$(B).I(\'1s\',Q,2e)},2e=d(c){15.11(c.9.7.9(\'j\').M.L(4).C(K(1f*(U-A.E(0,A.P(U,(c.1U-c.9.y))))/U,10)).u(0),[c.9.1r]);z T},21=d(c){1k(c.9.7.9(\'j\').x,c.9.7.u(0));1h(c.9.7.9(\'j\').x,c.9.7.u(0));$(B).1e(\'1p\',21);$(B).1e(\'1s\',2e);z T},2L=d(c){k Q={7:$(f).G(),1u:$(f).2h()};Q.1r=Q.7.9(\'j\').1I;$(B).I(\'1p\',Q,1Z);$(B).I(\'1s\',Q,25)},25=d(c){15.11(c.9.7.9(\'j\').M.L(6).C(K(N*(U-A.E(0,A.P(U,(c.1U-c.9.1u.12))))/U,10)).13().L(5).C(K(N*(A.E(0,A.P(U,(c.3o-c.9.1u.18))))/U,10)).u(0),[c.9.1r]);z T},1Z=d(c){1k(c.9.7.9(\'j\').x,c.9.7.u(0));1h(c.9.7.9(\'j\').x,c.9.7.u(0));$(B).1e(\'1p\',1Z);$(B).1e(\'1s\',25);z T},2N=d(c){$(f).24(\'1D\')},2U=d(c){$(f).1V(\'1D\')},2V=d(c){k 7=$(f).G();k e=7.9(\'j\').x;7.9(\'j\').1T=e;1R(e,7.u(0));7.9(\'j\').2j(e,1i(e),1B(e),7.9(\'j\').14)},1x=d(c){k 7=$(\'#\'+$(f).9(\'17\'));7.9(\'j\').2m.11(f,[7.u(0)]);k 1u=$(f).2h();k 1N=2B();k 12=1u.12+f.2i;k 18=1u.18;n(12+2w>1N.t+1N.h){12-=f.2i+2w}n(18+2n>1N.l+1N.w){18-=2n}7.19({18:18+\'2r\',12:12+\'2r\'});n(7.9(\'j\').2s.11(f,[7.u(0)])!=T){7.1x()}$(B).I(\'1L\',{7:7},1z);z T},1z=d(c){n(!2o(c.9.7.u(0),c.3C,c.9.7.u(0))){n(c.9.7.9(\'j\').2q.11(f,[c.9.7.u(0)])!=T){c.9.7.1z()}$(B).1e(\'1L\',1z)}},2o=d(1d,14,2l){n(1d==14){z 1q}n(1d.2u){z 1d.2u(14)}n(1d.2z){z!!(1d.2z(14)&16)}k 1t=14.1b;3U(1t&&1t!=2l){n(1t==1d)z 1q;1t=1t.1b}z T},2B=d(){k m=B.3V==\'3T\';z{l:1O.3S||(m?B.1Q.2p:B.1G.2p),t:1O.3Q||(m?B.1Q.2y:B.1G.2y),w:1O.3R||(m?B.1Q.2t:B.1G.2t),h:1O.3X||(m?B.1Q.2v:B.1G.2v)}},1W=d(p){z{h:A.P(1f,A.E(0,p.h)),s:A.P(N,A.E(0,p.s)),b:A.P(N,A.E(0,p.b))}},2A=d(a){z{r:A.P(W,A.E(0,a.r)),g:A.P(W,A.E(0,a.g)),b:A.P(W,A.E(0,a.b))}},2x=d(H){k 27=6-H.30;n(27>0){k o=[];3W(k i=0;i<27;i++){o.2k(\'0\')}o.2k(H);H=o.37(\'\')}z H},36=d(H){k H=K(((H.1o(\'#\')>-1)?H.3Z(1):H),16);z{r:H>>16,g:(H&3Y)>>8,b:(H&3O)}},1X=d(H){z 1C(36(H))},1C=d(a){k p={h:0,s:0,b:0};k P=A.P(a.r,a.g,a.b);k E=A.E(a.r,a.g,a.b);k 1J=E-P;p.b=E;n(E!=0){}p.s=E!=0?W*1J/E:0;n(p.s!=0){n(a.r==E){p.h=(a.g-a.b)/1J}F n(a.g==E){p.h=2+(a.b-a.r)/1J}F{p.h=4+(a.r-a.g)/1J}}F{p.h=-1}p.h*=1S;n(p.h<0){p.h+=1f}p.s*=N/W;p.b*=N/W;z p},1B=d(p){k a={};k h=A.1n(p.h);k s=A.1n(p.s*W/N);k v=A.1n(p.b*W/N);n(s==0){a.r=a.g=a.b=v}F{k Y=v;k X=(W-s)*v/W;k 1g=(Y-X)*(h%1S)/1S;n(h==1f)h=0;n(h<1S){a.r=Y;a.b=X;a.g=X+1g}F n(h<3B){a.g=Y;a.b=X;a.r=Y-1g}F n(h<3P){a.g=Y;a.r=X;a.b=X+1g}F n(h<3u){a.b=Y;a.r=X;a.g=Y-1g}F n(h<3A){a.b=Y;a.g=X;a.r=X+1g}F n(h<1f){a.r=Y;a.g=X;a.b=Y-1g}F{a.r=0;a.g=0;a.b=0}}z{r:A.1n(a.r),g:A.1n(a.g),b:A.1n(a.b)}},3a=d(a){k H=[a.r.20(16),a.g.20(16),a.b.20(16)];$.1E(H,d(31,C){n(C.30==1){H[31]=\'0\'+C}});z H.37(\'\')},1i=d(p){z 3a(1B(p))},2J=d(){k 7=$(f).G();k e=7.9(\'j\').1T;7.9(\'j\').x=e;1k(e,7.u(0));1h(e,7.u(0));1y(e,7.u(0));1H(e,7.u(0));1A(e,7.u(0));1M(e,7.u(0))};z{2O:d(J){J=$.26({},3b,J||{});n(2T J.x==\'2S\'){J.x=1X(J.x)}F n(J.x.r!=S&&J.x.g!=S&&J.x.b!=S){J.x=1C(J.x)}F n(J.x.h!=S&&J.x.s!=S&&J.x.b!=S){J.x=1W(J.x)}F{z f}z f.1E(d(){n(!$(f).9(\'17\')){k D=$.26({},J);D.1T=J.x;k 1Y=\'3z\'+K(A.3v()*3w);$(f).9(\'17\',1Y);k 7=$(2C).3x(\'1Y\',1Y);n(D.2a){7.39(f).1x()}F{7.39(B.1G)}D.M=7.V(\'Z\').I(\'3y\',33).I(\'15\',15).I(\'2g\',2g).I(\'1F\',1F);7.V(\'R\').I(\'1L\',2X).13().V(\'>q.2f\').I(\'22\',2J);D.29=7.V(\'q.2K\').I(\'1L\',2L);D.2Y=D.29.V(\'q q\');D.14=f;D.2H=7.V(\'q.28 q\');7.V(\'q.28\').I(\'1L\',2D);D.2E=7.V(\'q.2F\');D.2G=7.V(\'q.2f\');7.9(\'j\',D);7.V(\'q.2M\').I(\'3E\',2N).I(\'3F\',2U).I(\'22\',2V);1k(D.x,7.u(0));1y(D.x,7.u(0));1h(D.x,7.u(0));1A(D.x,7.u(0));1H(D.x,7.u(0));1R(D.x,7.u(0));1M(D.x,7.u(0));n(D.2a){7.19({3L:\'3M\',3N:\'3K\'})}F{$(f).I(D.2W,1x)}}})},2Q:d(){z f.1E(d(){n($(f).9(\'17\')){1x.11(f)}})},2P:d(){z f.1E(d(){n($(f).9(\'17\')){$(\'#\'+$(f).9(\'17\')).1z()}})},2R:d(e){n(2T e==\'2S\'){e=1X(e)}F n(e.r!=S&&e.g!=S&&e.b!=S){e=1C(e)}F n(e.h!=S&&e.s!=S&&e.b!=S){e=1W(e)}F{z f}z f.1E(d(){n($(f).9(\'17\')){k 7=$(\'#\'+$(f).9(\'17\'));7.9(\'j\').x=e;7.9(\'j\').1T=e;1k(e,7.u(0));1y(e,7.u(0));1h(e,7.u(0));1A(e,7.u(0));1H(e,7.u(0));1R(e,7.u(0));1M(e,7.u(0))}})}}}();$.3J.26({1w:1w.2O,3G:1w.2P,3H:1w.2Q,3I:1w.2R})})(3D)',62,248,'|||||||cal||data|rgb||ev|function|col|this||||colorpicker|var|||if||hsb|div||||get|||color||return|Math|document|val|options|max|else|parent|hex|bind|opt|parseInt|eq|fields|100|class|min|current|span|undefined|false|150|find|255|t2|t1|input||apply|top|end|el|change||colorpickerId|left|css|size|parentNode|maxlength|parentEl|unbind|360|t3|fillHexFields|HSBToHex|text|fillRGBFields|field|type|round|indexOf|mouseup|true|preview|mousemove|prEl|pos|colorpicker_field|ColorPicker|show|fillHSBFields|hide|setHue|HSBToRGB|RGBToHSB|colorpicker_focus|each|focus|body|setSelector|livePreview|delta|className|mousedown|setNewColor|viewPort|window|pressedKey|documentElement|setCurrentColor|60|origColor|pageY|removeClass|fixHSB|HexToHSB|id|upSelector|toString|upHue|click|charMin|addClass|moveSelector|extend|len|colorpicker_hue|selector|flat|upIncrement|backgroundColor|moveIncrement|moveHue|colorpicker_current_color|blur|offset|offsetHeight|onSubmit|push|container|onBeforeShow|356|isChildOf|scrollLeft|onHide|px|onShow|clientWidth|contains|clientHeight|176|fixHex|scrollTop|compareDocumentPosition|fixRGB|getViewport|tpl|downHue|newColor|colorpicker_new_color|currentColor|hue|colorpicker_slider|restoreOriginal|colorpicker_color|downSelector|colorpicker_submit|enterSubmit|init|hidePicker|showPicker|setColor|string|typeof|leaveSubmit|clickSubmit|eventName|downIncrement|selectorIndic|onChange|length|nr||keyDown|65|_hsb|HexToRGB|join|_hex|appendTo|RGBToHex|defaults|charCode|colorpicker_hex|visible|inAction|ff0000|ids|colorpicker_rgb_r|_hsb_h|colorpicker_rgb_b|keyCode|value|90|pageX|70|colorpicker_hsb_h|colorpicker_hsb_s|colorpicker_hsb_b|colorpicker_rgb_g|240|random|1000|attr|keyup|collorpicker_|300|120|target|jQuery|mouseenter|mouseleave|ColorPickerHide|ColorPickerShow|ColorPickerSetColor|fn|block|position|relative|display|0x0000FF|180|pageYOffset|innerWidth|pageXOffset|CSS1Compat|while|compatMode|for|innerHeight|0x00FF00|substring'.split('|'),0,{})) diff --git a/src/main/webapp/resources/js/deployJava.js b/src/main/webapp/resources/js/deployJava.js deleted file mode 100644 index 8a2bb571a..000000000 --- a/src/main/webapp/resources/js/deployJava.js +++ /dev/null @@ -1,72 +0,0 @@ - -var deployJava={debug:null,firefoxJavaVersion:null,myInterval:null,preInstallJREList:null,returnPage:null,brand:null,locale:null,installType:null,EAInstallEnabled:false,EarlyAccessURL:null,getJavaURL:'http://java.sun.com/webapps/getjava/BrowserRedirect?host=java.com',appleRedirectPage:'http://www.apple.com/support/downloads/',oldMimeType:'application/npruntime-scriptable-plugin;DeploymentToolkit',mimeType:'application/java-deployment-toolkit',launchButtonPNG:'http://java.sun.com/products/jfc/tsc/articles/swing2d/webstart.png',browserName:null,browserName2:null,getJREs:function(){var list=new Array();if(deployJava.isPluginInstalled()){var plugin=deployJava.getPlugin();var VMs=plugin.jvms;for(var i=0;i';document.write(s);} -if(!codebaseParam){document.write('');}} -document.write('<'+'/'+'applet'+'>');},versionCheck:function(versionPattern) -{var index=0;var regex="^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?(\\*|\\+)?$";var matchData=versionPattern.match(regex);if(matchData!=null){var familyMatch=true;var patternArray=new Array();for(var i=1;i<'+'img '+'src="'+deployJava.launchButtonPNG+'" '+'border="0" /><'+'/'+'a'+'>');},createWebStartLaunchButton:function(jnlp,minimumVersion){if(deployJava.returnPage==null){deployJava.returnPage=jnlp;} -var url='javascript:'+'if (!deployJava.isWebStartInstalled("'+ -minimumVersion+'")) {'+'if (deployJava.installLatestJRE()) {'+'if (deployJava.launch("'+jnlp+'")) {}'+'}'+'} else {'+'if (deployJava.launch("'+jnlp+'")) {}'+'}';document.write('<'+'a href="'+url+'" onMouseOver="window.status=\'\'; '+'return true;"><'+'img '+'src="'+deployJava.launchButtonPNG+'" '+'border="0" /><'+'/'+'a'+'>');},launch:function(jnlp){document.location=jnlp;return true;},isPluginInstalled:function(){var plugin=deployJava.getPlugin();if(plugin&&plugin.jvms){return true;}else{return false;}},isAutoUpdateEnabled:function(){if(deployJava.isPluginInstalled()){return deployJava.getPlugin().isAutoUpdateEnabled();} -return false;},setAutoUpdateEnabled:function(){if(deployJava.isPluginInstalled()){return deployJava.getPlugin().setAutoUpdateEnabled();} -return false;},setInstallerType:function(type){deployJava.installType=type;if(deployJava.isPluginInstalled()){return deployJava.getPlugin().setInstallerType(type);} -return false;},setAdditionalPackages:function(packageList){if(deployJava.isPluginInstalled()){return deployJava.getPlugin().setAdditionalPackages(packageList);} -return false;},setEarlyAccess:function(enabled){deployJava.EAInstallEnabled=enabled;},isPlugin2:function(){if(deployJava.isPluginInstalled()){if(deployJava.versionCheck('1.6.0_10+')){try{return deployJava.getPlugin().isPlugin2();}catch(err){}}} -return false;},allowPlugin:function(){deployJava.getBrowser();var ret=('Safari'!=deployJava.browserName2&&'Opera'!=deployJava.browserName2);return ret;},getPlugin:function(){deployJava.refresh();var ret=null;if(deployJava.allowPlugin()){ret=document.getElementById('deployJavaPlugin');} -return ret;},compareVersionToPattern:function(version,patternArray,familyMatch){var regex="^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?$";var matchData=version.match(regex);if(matchData!=null){var index=0;var result=new Array();for(var i=1;ipatternArray[i]){return true;}} -return true;}}else{return false;}},getBrowser:function(){if(deployJava.browserName==null){var browser=navigator.userAgent.toLowerCase();if(deployJava.debug){alert('userAgent -> '+browser);} -if(browser.indexOf('msie')!=-1){deployJava.browserName='MSIE';deployJava.browserName2='MSIE';}else if(browser.indexOf('firefox')!=-1){deployJava.browserName='Netscape Family';deployJava.browserName2='Firefox';}else if(browser.indexOf('chrome')!=-1){deployJava.browserName='Netscape Family';deployJava.browserName2='Chrome';}else if(browser.indexOf('safari')!=-1){deployJava.browserName='Netscape Family';deployJava.browserName2='Safari';}else if(browser.indexOf('mozilla')!=-1){deployJava.browserName='Netscape Family';deployJava.browserName2='Other';}else if(browser.indexOf('opera')!=-1){deployJava.browserName='Netscape Family';deployJava.browserName2='Opera';}else{deployJava.browserName='?';deployJava.browserName2='unknown';} -if(deployJava.debug){alert('Detected browser name:'+deployJava.browserName+', '+deployJava.browserName2);}} -return deployJava.browserName;},testUsingActiveX:function(version){var objectName='JavaWebStart.isInstalled.'+version+'.0';if(!ActiveXObject){if(deployJava.debug){alert('Browser claims to be IE, but no ActiveXObject object?');} -return false;} -try{return(new ActiveXObject(objectName)!=null);}catch(exception){return false;}},testForMSVM:function(){var clsid='{08B0E5C0-4FCB-11CF-AAA5-00401C608500}';if(typeof oClientCaps!='undefined'){var v=oClientCaps.getComponentVersion(clsid,"ComponentID");if((v=='')||(v=='5,0,5000,0')){return false;}else{return true;}}else{return false;}},testUsingMimeTypes:function(version){if(!navigator.mimeTypes){if(deployJava.debug){alert('Browser claims to be Netscape family, but no mimeTypes[] array?');} -return false;} -for(var i=0;ib[0])return true;if(a[0]b[1])return true;if(a[1]b[2])return true;if(a[2]'+'<'+'/'+'object'+'>');}else if(browser=='Netscape Family'&&deployJava.allowPlugin()){deployJava.writeEmbedTag();}},refresh:function(){navigator.plugins.refresh(false);var browser=deployJava.getBrowser();if(browser=='Netscape Family'&&deployJava.allowPlugin()){var plugin=document.getElementById('deployJavaPlugin');if(plugin==null){deployJava.writeEmbedTag();}}},writeEmbedTag:function(){var written=false;if(navigator.mimeTypes!=null){for(var i=0;i