1 package org.jahia.content; 2 3 11 12 public class ContentPageKey extends ContentObjectKey { 13 14 public static final String PAGE_TYPE = "ContentPage"; 15 16 static { 17 ObjectKey.registerType(PAGE_TYPE, ContentPageKey.class.getName()); 18 } 19 20 public ContentPageKey(int pageID) { 21 super(PAGE_TYPE, Integer.toString(pageID)); 22 } 23 24 public int getPageID() { 25 return getIdInType(); 26 } 27 28 public static ObjectKey getChildInstance(String IDInType) { 29 return new ContentPageKey(Integer.parseInt(IDInType)); 30 } 31 32 } | Popular Tags |