Skip navigation links
C G M O P R S T 

C

calculateMD5(String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Calculate an MD5 hash of a string
checkContentTypeForProfileImage(String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Check content type against allowed types. only JPEG,GIF and PNG are support at the moment
convertDateForStatus(Date) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Convert a date into a field like "just then, 2 minutes ago, 4 hours ago, yesterday, on sunday, etc"
convertDateToString(Date, String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Convert a Date into a String according to format, or, if format is set to null, do a current locale based conversion.
convertStringToDate(String, String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Convert a string into a Date object (reverse of above
createAvatar(byte[], String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Creates a square avatar image by taking a segment out of the centre of the original image and resizing to the appropriate dimensions
createEventRef(String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Creates a full profile event reference for a given reference

G

generateUuid() - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Generate a UUID
getDayName(int, Locale) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Get the localised name of the day (ie Monday for en, Maandag for nl)
getInformalFormatForMimeType(String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Helper to get the informal format name that is used by ImageIO.
getListFromString(String, char) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Method to chop a String into it's parts based on the separator and return as a List.
getSkypeMeURL(String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Returns the SkypeMe URL for the specified Skype username.
getString(String) - Static method in class org.sakaiproject.profile2.util.Messages
Get a simple message from the bundle
getString(String, Object[]) - Static method in class org.sakaiproject.profile2.util.Messages
Get a parameterised message from the bundle and perform the parameter substitution on it
getUserPreferredLocale() - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Gets the users preferred locale, either from the user's session or Sakai preferences and returns it This depends on Sakai's ResourceLoader.
getUserPreferredOrientation() - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Gets the users preferred orientation, either from the user's session or Sakai preferences and returns it This depends on Sakai's ResourceLoader.
getValueFromMapOrDefault(Map<?, ?>, Object, Object) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Method for getting a value from a map based on the given key, but if it does not exist, use the given default

M

Messages - Class in org.sakaiproject.profile2.util
Messages.java Handles the retrieval of localised messages and parameter substitution.
Messages() - Constructor for class org.sakaiproject.profile2.util.Messages
 

O

org.sakaiproject.profile2.util - package org.sakaiproject.profile2.util
 

P

processHtml(String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Processes HTML and escapes evils tags like <script>, also converts newlines to proper HTML breaks.
ProfileUtils - Class in org.sakaiproject.profile2.util
 
ProfileUtils() - Constructor for class org.sakaiproject.profile2.util.ProfileUtils
 

R

removeDuplicates(List<T>) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Remove duplicates from a list, order is not retained.
removeDuplicatesWithOrder(List<T>) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Remove duplicates from a list, order is retained.

S

scaleImage(byte[], int, String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
 
scaleImage(InputStream, int, String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Scale an image so it is fit within a give width and height, whilst maintaining its original proportions
stripAndCleanHtml(String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Strips string of HTML, escaping anything that is left to return plain text.
stripHtml(String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Strips string of HTML and returns plain text.
stripHtmlFromText(String, boolean, boolean) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Strips html/xml tags from a string and returns the cleaned version.
stripYear(Date) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Strip the year from a given date (actually just sets it to 1)

T

toProperCase(String) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Convert a string to propercase. ie This Is Proper Text
truncate(String, int, boolean) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Trims text to the given maximum number of displayed characters.
truncateAndAbbreviate(String, int, boolean) - Static method in class org.sakaiproject.profile2.util.ProfileUtils
Trims and abbreviates text to the given maximum number of displayed characters (less 3 characters, in case "..." must be appended).
C G M O P R S T 
Skip navigation links

Copyright © 2008–2019 The Sakai Foundation. All rights reserved.