Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
novo helper para auxiliar a criacao de slugs adicionado. Adicionado t…
…ambem slug nas paginas
- Loading branch information
Demetrius F. Campos
committed
May 14, 2012
1 parent
b4044e1
commit accc685
Showing
19 changed files
with
90 additions
and
41 deletions.
There are no files selected for viewing
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
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
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
2 changes: 1 addition & 1 deletion
2
...main/java/br/com/umake/helper/Column.java → ...br/com/umake/helper/flexigrid/Column.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
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
2 changes: 1 addition & 1 deletion
2
...ava/br/com/umake/helper/FlexiGridRow.java → .../umake/helper/flexigrid/FlexiGridRow.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package br.com.umake.helper; | ||
package br.com.umake.helper.flexigrid; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/main/java/br/com/umake/helper/Id.java → ...ava/br/com/umake/helper/flexigrid/Id.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
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,23 @@ | ||
package br.com.umake.helper.utils; | ||
|
||
public final class TextHelper { | ||
|
||
public static String createSlug( String originalForm ){ | ||
|
||
String generateSlug = originalForm.replaceAll("[ÁáÀàÃãÂâÄä]", "a"); | ||
generateSlug = generateSlug.replaceAll("[ÉéÈèÊêËë]", "e"); | ||
generateSlug = generateSlug.replaceAll("[ÍíÌìÎîÏï]", "i"); | ||
generateSlug = generateSlug.replaceAll("[ÓóÒòÕõÔôÖö]", "o"); | ||
generateSlug = generateSlug.replaceAll("[ÚúÙùÛûÜü]", "u"); | ||
generateSlug = generateSlug.replaceAll("[Ññ]", "n"); | ||
generateSlug = generateSlug.replaceAll("[Çç]", "c"); | ||
generateSlug = generateSlug.replaceAll("[ÿÝý]", "y"); | ||
generateSlug = generateSlug.replaceAll("[ª]", "a."); | ||
generateSlug = generateSlug.replaceAll("[º]", "o."); | ||
generateSlug = generateSlug.replaceAll("(\\s)++", "-"); | ||
|
||
return generateSlug; | ||
|
||
} | ||
|
||
} |
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
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