Package org.silverpeas.core.calendar
Class CalendarComponentPath
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<T>
-
- org.silverpeas.core.util.ContributionPath<Contribution>
-
- org.silverpeas.core.calendar.CalendarComponentPath
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Contribution>
,Collection<Contribution>
,List<Contribution>
,RandomAccess
,ResourcePath<Contribution>
public class CalendarComponentPath extends ContributionPath<Contribution>
Path of aCalendarComponent
instance.- Author:
- silveryocha
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.silverpeas.core.util.ResourcePath
ResourcePath.Constants
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.util.ContributionPath
lastPathByLanguage
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(String language, boolean fullSpacePath, String pathSep)
Formats a path from the node that the list contains by using the specified path separator.protected String
getLabel(Contribution contribution, String language)
static CalendarComponentPath
getPath(CalendarEvent event)
Gets a calendar component path without taking care about right accesses.static CalendarComponentPath
getPath(CalendarEventOccurrence occurrence)
Gets a calendar component path without taking care about right accesses.protected boolean
isRoot(Contribution contribution)
-
Methods inherited from class org.silverpeas.core.util.ContributionPath
equals, hashCode, rootIsComponentInstance
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Methods inherited from interface org.silverpeas.core.util.ResourcePath
format, format
-
-
-
-
Method Detail
-
getPath
public static CalendarComponentPath getPath(CalendarEvent event)
Gets a calendar component path without taking care about right accesses.- Parameters:
event
- aCalendarEvent
instance.- Returns:
- an initialized
CalendarComponentPath
.
-
getPath
public static CalendarComponentPath getPath(CalendarEventOccurrence occurrence)
Gets a calendar component path without taking care about right accesses.- Parameters:
occurrence
- aCalendarEventOccurrence
instance.- Returns:
- an initialized
CalendarComponentPath
.
-
isRoot
protected boolean isRoot(Contribution contribution)
- Specified by:
isRoot
in classContributionPath<Contribution>
-
getLabel
protected String getLabel(Contribution contribution, String language)
- Specified by:
getLabel
in classContributionPath<Contribution>
-
format
public String format(String language, boolean fullSpacePath, String pathSep)
Description copied from class:ContributionPath
Formats a path from the node that the list contains by using the specified path separator.- Specified by:
format
in interfaceResourcePath<Contribution>
- Overrides:
format
in classContributionPath<Contribution>
- Parameters:
language
- the aimed translation.fullSpacePath
- if false, the space host is taken into account, if true the space host and all of its parents are taken into account.pathSep
- the path separator to use.- Returns:
- a string.
-
-