syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmarte...@apache.org
Subject [1/2] syncope git commit: [SYNCOPE-156] fix provision and attribute mapping management + binary attributes default preview provided
Date Tue, 22 Dec 2015 11:06:40 GMT
Repository: syncope
Updated Branches:
  refs/heads/master 84445355e -> a9c262454


[SYNCOPE-156] fix provision and attribute mapping management + binary attributes default preview
provided


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/6e41db3b
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/6e41db3b
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/6e41db3b

Branch: refs/heads/master
Commit: 6e41db3b9fbd23f750e21d245fb97736b0b0aa91
Parents: 8444535
Author: fmartelli <fabio.martelli@gmail.com>
Authored: Tue Dec 22 12:06:12 2015 +0100
Committer: fmartelli <fabio.martelli@gmail.com>
Committed: Tue Dec 22 12:06:12 2015 +0100

----------------------------------------------------------------------
 .../html/form/preview/DefaultPreviewer.java     | 37 ++++++++++++++++++++
 .../html/form/preview/DefaultPreviewer.html     | 28 +++++++++++++++
 2 files changed, 65 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/6e41db3b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/DefaultPreviewer.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/DefaultPreviewer.java
b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/DefaultPreviewer.java
new file mode 100644
index 0000000..462500a
--- /dev/null
+++ b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/DefaultPreviewer.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.syncope.client.console.wicket.markup.html.form.preview;
+
+import org.apache.syncope.client.console.annotations.BinaryPreview;
+import org.apache.wicket.Component;
+
+@BinaryPreview(mimeTypes = {})
+public class DefaultPreviewer extends AbstractBinaryPreviewer {
+
+    private static final long serialVersionUID = 3338812359368457349L;
+
+    public DefaultPreviewer(final String id, final String mimeType) {
+        super(id, mimeType);
+    }
+
+    @Override
+    public Component preview(final byte[] uploadedBytes) {
+        return this;
+    }
+}

http://git-wip-us.apache.org/repos/asf/syncope/blob/6e41db3b/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/preview/DefaultPreviewer.html
----------------------------------------------------------------------
diff --git a/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/preview/DefaultPreviewer.html
b/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/preview/DefaultPreviewer.html
new file mode 100644
index 0000000..c96fd4b
--- /dev/null
+++ b/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/preview/DefaultPreviewer.html
@@ -0,0 +1,28 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org">
+  <head><title></title></head>
+  <body>
+    <wicket:extend>
+      <div style="padding: 8px 0px 1px 10px">
+        <i class=" glyphicon glyphicon-paperclip fa-2x" title="Preview not available"
alt="Default preview icon"></i>
+      </div>
+    </wicket:extend>
+  </body>
+</html>


Mime
View raw message