This file contains hidden or 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
| ### LIST users | |
| userCount = com.liferay.portal.service.UserLocalServiceUtil.getUsersCount(); | |
| users = com.liferay.portal.service.UserLocalServiceUtil.getUsers(0, userCount); | |
| users.each{ |user| $out.print user.getFullName() + "\n"} | |
| userCount = com.liferay.portal.service.UserLocalServiceUtil.getUsersCount(); | |
| users = com.liferay.portal.service.UserLocalServiceUtil.getUsers(0, userCount); | |
| users.each{ |user| $out.print user.toString()+ "\n" } | |
| ### UPDATE user properties |
This file contains hidden or 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
| /* | |
| * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: | |
| * | |
| * - Redistributions of source code must retain the above copyright | |
| * notice, this list of conditions and the following disclaimer. | |
| * |
This file contains hidden or 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
| var selfDestructMessage = function(element) { | |
| // Do some stuff | |
| selfDestructMessage = function(element) { /* Replace myself with an empty block */ } | |
| }; |
This file contains hidden or 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
| #!/bin/bash -ex | |
| perl -pi -e 's/^#?Port 22$/Port 2222/' /etc/ssh/sshd_config | |
| service sshd restart || service ssh restart |
NewerOlder