1 28 package com.opencms.defaults; 29 30 import org.opencms.file.CmsObject; 31 import org.opencms.util.CmsUUID; 32 33 import java.util.Vector ; 34 35 42 public interface I_CmsExtendedContentDefinition { 43 44 47 int C_PERMISSION_READ = 1; 48 49 52 int C_PERMISSION_WRITE = 2; 53 54 57 int C_PERMISSION_VIEW = 4; 58 59 64 CmsUUID getId(); 65 66 74 int getProjectId(); 75 76 82 int getState(); 83 84 91 int getLockedInProject(); 92 93 98 long getDateLastModified(); 99 100 105 long getDateCreated(); 106 107 112 CmsUUID getLastModifiedBy(); 113 114 119 String getLastModifiedByName(); 120 121 126 int getVersionId(); 127 128 133 String getTitle(); 134 135 140 CmsUUID getOwner(); 141 142 147 CmsUUID getGroupId(); 148 149 154 int getAccessFlags(); 155 156 162 void publishResource(CmsObject cms) throws Exception ; 163 164 171 void undelete(CmsObject cms) throws Exception ; 172 173 174 182 void restore(CmsObject cms, int versionId) throws Exception ; 183 184 192 void chown(CmsObject cms, CmsUUID ownerId) throws Exception ; 193 194 202 void chgrp(CmsObject cms, CmsUUID groupId) throws Exception ; 203 204 212 void chmod(CmsObject cms, int accessflags) throws Exception ; 213 214 222 CmsUUID copy(CmsObject cms) throws Exception ; 223 224 232 Vector getHistory(CmsObject cms) throws Exception ; 233 234 243 Object getVersionFromHistory(CmsObject cms, int versionId) throws Exception ; 244 }
| Popular Tags
|